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