2 ms·
> make a custom Settings class class which just loads settings via good old `Environment.GetEnvironmentVariable Why would you prefer that, to the the built-in
by SideburnsOfDoom 6y ago
> make a custom Settings class class which just loads settings via good old `Environment.GetEnvironmentVariable
Why would you prefer that, to the the built-in classes to load settings via good old environment variables, among other sources? Which do you think new people coming to your team would prefer to see?
- FridgeSeal 6y agoBecause the morass that is HostSetting/HostedServices/etc and friends is a confusing tangle of dependencies (some unspecified) bizarre calls that you've missed and general confusion. I seriously don't understand how MS managed to make loading some configs so outrageously confusing. Every time I have to write in .net and I'm forced to go down this path, I've got to go back to the one project where it worked, and copy code across and install dependencies until the whole thing decides it's finally happy.