title: Azure class library access GetConfigurationSettingValue vs. web.config
body: <p>I have a class library shared between an Azure Worker Role and a ASP.NET Website. A method in the library needs to pull a value from the config to determine if it should send an email or not. </p>
  
  <p>In the ASP.NET site, the setting is in web.config:</p>
  
  <pre><code>&lt;add key="SendEmails" value="true"/&gt;
  </code></pre>
  
  <p>And in the Azure worker role it is in ServiceConfiguration.Cloud.cscfg:</p>
  
  <pre><code>&lt;Setting name="SendEmails" value="true"/&gt;
  </code></pre>
  
  <p>What I am trying to do is have my class library be able to access either config setting, depending on what environment it is running under. </p>