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