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