How do I make CloudConfigurationManager.GetSetting less verbose?

后端 未结 8 1432
天命终不由人
天命终不由人 2021-01-04 01:05

I\'m currently using CloudConfigurationManager.GetSetting(\"setting\") to get settings for my application, but it\'s writing logs of everything it\'s checking to the console

8条回答
  •  清歌不尽
    2021-01-04 01:33

    I had quite similar problems. I updated from Azure SDK 2.0 to 2.2 - during this process I used the NuGet Manager to update the Microsoft.WindowsAzure.Storage to the latest. The PackageManager automatically took Microsoft.WindowsAzure.Configuration to 1.8.0.0. I was not able to get this running (it was for .Net 2.0!?). After I manually set all References to

    • Microsoft.WindowsAzure.Storage 2.1.0.0
    • Microsoft.WindowsAzure.Configuration 2.0.0.0

    everything worked.

    I think this is because of the way CloudConfigurationManager.GetSetting loads the assembly and calls the funktions (via reflection).

提交回复
热议问题