From 6bb1987a1fd714b77f767eea3d6955dd70f579c4 Mon Sep 17 00:00:00 2001 From: Xeevis Date: Fri, 15 Nov 2019 08:36:03 +0100 Subject: [PATCH] Fix UseVirtualFiles middleware return value --- .../Builder/VirtualFileSystemApplicationBuilderExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Builder/VirtualFileSystemApplicationBuilderExtensions.cs b/framework/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Builder/VirtualFileSystemApplicationBuilderExtensions.cs index 90e4b8bcd6..0557c37380 100644 --- a/framework/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Builder/VirtualFileSystemApplicationBuilderExtensions.cs +++ b/framework/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Builder/VirtualFileSystemApplicationBuilderExtensions.cs @@ -5,9 +5,9 @@ namespace Microsoft.AspNetCore.Builder { 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 { FileProvider = app.ApplicationServices.GetRequiredService()