.Net Core – Configuration Objects

Decoupling My Configurations

I’ve spent a lot of time over the last couple months re-thinking the configuration settings in my .net applications.  I love .net core’s configuration setup.  It is a breeze to set up, and it allows you to easily change application behavior without changing source.  I came across this concept while hunting down how to work Kestrel’s HTTPS settings after upgrading to .Net Core 2.0.  Like a bunch of developers, I discovered that I could no longer just pass in an HTTPS address as an application argument.  Luckily I was able to find a brilliant solution provided by the user raffaeler.  Raffler’s  solution, that i’ll dig into another time, was outstanding, and it is also what introduced me to the concept of Configuration Objects.

(more…)

Subscribe to our Newsletter

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.