weird things can go wrong with asp.net core configuration



Been working on .net core configuration lately and take me a bit longer to wire up this up.

When you create the configuration, create a configuration that matches the entire appsettings.json file. For example,

We have a configuration called AppConfig which contains a property called BlommbergAimConfiguration.(highlighted in orange) Under this, we have some other tokens settings (highlighted in green)




Once you have this, as long as you call Configure(Configuration), any configuration will be populated accordingly.


Comments

Popular posts from this blog

A quick tutorial for OWASP ZAP tool for beginners

ionic2 cordova build android - Unable resolve gradle 2.2.3