3 references to AddKeyedSingleton
Microsoft.Extensions.Caching.Hybrid (1)
HybridCacheServiceExtensions.cs (1)
100
_ = services.
AddKeyedSingleton
<HybridCache, DefaultHybridCache>(serviceKey, (sp, key) =>
Microsoft.Extensions.Caching.Hybrid.Tests (1)
ServiceConstructionTests.cs (1)
246
services.
AddKeyedSingleton
<IDistributedCache, SqlServerCache>("SqlServer",
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
AutoActivationExtensions.Keyed.cs (1)
113
.
AddKeyedSingleton
<TService, TImplementation>(serviceKey, implementationFactory)