// This method gets called by the runtime. Use this method to configure the HTTP request pipeline public void Configure(IApplicationBuilder app, IHostEnvironment env, ILoggingBuilder loggerFactory, ISeriLogger seriLogger, IHostApplicationLifetime appLifetime, EnvironmentConfig environmentConfig) { seriLogger.Configure(loggerFactory, Configuration, appLifetime, env, environmentConfig); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); loggerFactory.AddConfiguration(Configuration.GetSection("Logging")); loggerFactory.AddConsole(); loggerFactory.AddDebug(); } else { app.UseHsts(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IApplicationLifetime appLifetime, ISeriLogger seriLogger, ILogEventEnricher eventEnricher) { seriLogger.Configure(loggerFactory, Configuration, appLifetime, eventEnricher); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvc(routes => { routes.MapRoute("default", "{*url}", new { controller = "Default", action = "Index" }); }); }