Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyouzeng committed Sep 21, 2024
1 parent 965a86c commit 8784172
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void TryAddDistributedCache(
services.TryAddTransient<IDistributedCacheClientFactory, DefaultDistributedCacheClientFactory>();
services.TryAddTransient<IManualDistributedCacheClient>(serviceProvider =>
{
var cacheClient = serviceProvider.GetRequiredService<ScopedService<IManualDistributedCacheClient>>().Service;
var cacheClient = serviceProvider.GetRequiredService<IManualDistributedCacheClient>();
return new DefaultDistributedCacheClient(cacheClient);
});
services.TryAddTransient<IDistributedCacheClient>(serviceProvider
Expand Down

0 comments on commit 8784172

Please sign in to comment.