IOptionMonitor: another way to manage you .NetCore configuration; How to use IOptionMonitor to listen for .NetCore configuration changes and make this changes available in your code
Resolving instances with ASP.NET Core DI in static classes when is no possible use Dependency Injection, but you need to use some injected services