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

The specified initialization vector (IV) does not match the block size for this algorithm