title: Does RoleEnvironment.GetConfigurationSettingValue read every time from cfg file?
body: <p>The azure role setting, is very useful since it lets you change values on-the-fly while <strong>IIS</strong> is running. But the problem is, if you have plenty users, and if it reads every time the config value from file, it is not best practice to use it without putting it in a static variable. The next problem, if you put it in a <strong>static variable</strong>, then you have to reset <strong>IIS</strong> every time you change it. I did some research, and found similar question on <strong>stackoverflow</strong>, which tells that only first time reads conf on file, then it stores it on cache. But that question which was answered was for <strong>ConfigurationManager</strong>, mine is about <strong>RoleManager</strong> from <strong>Azure</strong>.</p>
  
  <p>This is the line which gets the current setting on <strong>azure</strong>:</p>
  
  <pre><code>RoleEnvironment.GetConfigurationSettingValue("Appname.settingKey");
  </code></pre>
  
  <p>This is the one that saves it in cache, which I know how it works, and gets current setting ex.: <strong>connectionstring</strong> in <strong>webconfig</strong>:</p>
  
  <pre><code>ConfigurationManager.ConnectionStrings["SettingKey"].ConnectionString;
  </code></pre>