Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyouzeng committed Sep 19, 2024
1 parent 1a374f5 commit 04342e2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ public static void TryAddMultilevelCache(
services.TryAddTransient<IMultilevelCacheClientFactory, DefaultMultilevelCacheClientFactory>();
services.TryAddTransient<IManualMultilevelCacheClient>(serviceProvider =>
{
var cacheClient = serviceProvider.EnableIsolation() ?
serviceProvider.GetRequiredService<ScopedService<IManualMultilevelCacheClient>>().Service :
serviceProvider.GetRequiredService<SingletonService<IManualMultilevelCacheClient>>().Service;
var cacheClient = serviceProvider.GetRequiredService<IManualMultilevelCacheClient>();
return new DefaultMultilevelCacheClient(cacheClient);
});
services.TryAddTransient<IMultilevelCacheClient>(serviceProvider
Expand Down

0 comments on commit 04342e2

Please sign in to comment.