Fix UseVirtualFiles middleware return value

pull/2178/head
Xeevis 5 years ago
parent e597d1eb94
commit 6bb1987a1f

@ -5,9 +5,9 @@ namespace Microsoft.AspNetCore.Builder
{ {
public static class VirtualFileSystemApplicationBuilderExtensions public static class VirtualFileSystemApplicationBuilderExtensions
{ {
public static void UseVirtualFiles(this IApplicationBuilder app) public static IApplicationBuilder UseVirtualFiles(this IApplicationBuilder app)
{ {
app.UseStaticFiles( return app.UseStaticFiles(
new StaticFileOptions new StaticFileOptions
{ {
FileProvider = app.ApplicationServices.GetRequiredService<IWebContentFileProvider>() FileProvider = app.ApplicationServices.GetRequiredService<IWebContentFileProvider>()

Loading…
Cancel
Save