News for hackers. Stuff that matters.
Re:A todo list for new ASP.NET Core projects by dustinmoris on Thursday February 08, 2018 @09:19AM (#16332134)
I don't see how injecting is crazy? You mean you find it crazy that you have to add an additional config parameter to your controller constructors? If that is what bothers you then you can create one base constructor where you inject the config and then have other classes derive from it...
Re:A todo list for new ASP.NET Core projects by mattmanser on Friday February 09, 2018 @10:36AM (#16340899)
It's simply not an appropriate thing to be injecting. App settings are that, settings for the app. They don't change on the fly, if they do change the app should restart, and it's definitely not something that should be injected.