Esempio n. 1
0
 public static IApplicationBuilder UseSpaFallback(this IApplicationBuilder builder, SpaFallbackOptions options)
 {
     if (options == null)
     {
         options = new SpaFallbackOptions();
     }
     return(builder.UseMiddleware <SpaFallbackMiddleware>(options));
 }
Esempio n. 2
0
 public SpaFallbackMiddleware(RequestDelegate next, ILoggerFactory loggerFactory, SpaFallbackOptions options)
 {
     _next    = next;
     _logger  = loggerFactory.CreateLogger <SpaFallbackMiddleware>();
     _options = options;
 }