Is there a way to override resolution of values from connectionStrings
or appSettings
sections at run-time? Can't find any appropriate methods in ConfigurationManager class to do that.
The issue I've got is a Nuget package which relies on ConfigurationManager
but my application has custom settings storage (I'm talking to you Azure WebJobs SDK where INameResolver
doesn't work with ServiceBusAccountAttribute
). So the solution (if any) needs to be Azure friendly.
If you'd like to override the existing settings that you set in
App.config
orWeb.config
at runtime, you can try to specify App settings with same key under Application Strings on Azure portal.For detailed information about Application settings, please refer to this article.