From 4dfd99b7f7ebac96f3bea54a9bf15d8a1d3fac73 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Tue, 21 Dec 2021 13:17:59 +0800 Subject: [PATCH] Fix the performance problem of blazor-server --- .../Mvc/Client/MvcCachedApplicationConfigurationClient.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.Client/Volo/Abp/AspNetCore/Mvc/Client/MvcCachedApplicationConfigurationClient.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.Client/Volo/Abp/AspNetCore/Mvc/Client/MvcCachedApplicationConfigurationClient.cs index 6c67031da9..ece23347e1 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.Client/Volo/Abp/AspNetCore/Mvc/Client/MvcCachedApplicationConfigurationClient.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.Client/Volo/Abp/AspNetCore/Mvc/Client/MvcCachedApplicationConfigurationClient.cs @@ -45,9 +45,8 @@ namespace Volo.Abp.AspNetCore.Mvc.Client var cacheKey = CreateCacheKey(); var httpContext = HttpContextAccessor?.HttpContext; - if (httpContext != null && !httpContext.WebSockets.IsWebSocketRequest && httpContext.Items[cacheKey] is ApplicationConfigurationDto configuration) + if (httpContext != null && httpContext.Items[cacheKey] is ApplicationConfigurationDto configuration) { - return configuration; } @@ -61,7 +60,7 @@ namespace Volo.Abp.AspNetCore.Mvc.Client } ); - if (httpContext != null && !httpContext.WebSockets.IsWebSocketRequest) + if (httpContext != null) { httpContext.Items[cacheKey] = configuration; }