Esempio n. 1
0
 public Startup(IWebHostEnvironment environment)
 {
     Configuration = new ConfigurationBuilder()
                     .SetBasePath(environment.ContentRootPath)
                     .AddJsonFile("appsettings.json", true, true)
                     .AddJsonFile($"appsettings.{environment.EnvironmentName}.json", true, true)
                     .AddEnvironmentVariables()
                     .Build();
     LogEventLevel = (LogEventLevel)Enum.Parse(LogEventLevel.GetType(), Configuration["Logging:Level"]);
 }