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