Esempio n. 1
0
 public static IServiceCollection AddMaintenance(this IServiceCollection services, MaintenanceWindow window)
 {
     services.AddSingleton(window);
     return(services);
 }
Esempio n. 2
0
 public MaintenanceMiddleware(RequestDelegate next, MaintenanceWindow window, ILogger <MaintenanceMiddleware> logger)
 {
     this.next   = next;
     this.logger = logger;
     this.window = window;
 }