From 8784172ae529108fba4591f9268732d336c7b7b9 Mon Sep 17 00:00:00 2001 From: qinyouzeng Date: Sat, 21 Sep 2024 17:01:29 +0800 Subject: [PATCH] chore: update --- .../Internal/ServiceCollectionExtensions.Core.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BuildingBlocks/Caching/Masa.BuildingBlocks.Caching/Internal/ServiceCollectionExtensions.Core.cs b/src/BuildingBlocks/Caching/Masa.BuildingBlocks.Caching/Internal/ServiceCollectionExtensions.Core.cs index 98db42a3e..424714ad8 100644 --- a/src/BuildingBlocks/Caching/Masa.BuildingBlocks.Caching/Internal/ServiceCollectionExtensions.Core.cs +++ b/src/BuildingBlocks/Caching/Masa.BuildingBlocks.Caching/Internal/ServiceCollectionExtensions.Core.cs @@ -22,7 +22,7 @@ public static void TryAddDistributedCache( services.TryAddTransient(); services.TryAddTransient(serviceProvider => { - var cacheClient = serviceProvider.GetRequiredService>().Service; + var cacheClient = serviceProvider.GetRequiredService(); return new DefaultDistributedCacheClient(cacheClient); }); services.TryAddTransient(serviceProvider