I was wondering if there was a way to access Configuration (Microsoft.Extensions.Configuration) without the use of dependency injection. Only examples I see are through con
I just made the config property in Startup static:
Startup
public static IConfiguration Configuration { get; set; }
Now I can access it anywhere in the application with just Startup.Configuration.
Startup.Configuration