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