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