public StartupTest(IHostingEnvironment env) { var builder = new ConfigurationBuilder(); Configuration = builder.Build(); ApplicationLogging.InitializeWithBasicConfiguration(); Log.Information("Finishing up in ASP.NET Core Startup method!"); }
public Startup(IHostingEnvironment env) { var builder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json", true, true) .AddEnvironmentVariables(); Configuration = builder.Build(); ApplicationLogging.InitializeWithBasicConfiguration(); }