public void Configure( IApplicationBuilder app, IHostingEnvironment env, DiagnosticService diagnosticService, SimpleLogger logger) { logger.Log(LogLevel.IMPORTANT_INFO, Source.MONITOR, "Старт монитора"); diagnosticService.StartPingAsync(); // app.UseHttpsRedirection(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); app.UseHsts(); } //my app.UseAuthentication(); app.UseStaticFiles(); app.UseCookiePolicy(); app.UseMvc(routes => { routes.MapRoute( "default", "{controller=Home}/{action=Index}/{id?}"); }); }