7 references to CustomMemoryDistributedCache2
Microsoft.Extensions.Caching.Hybrid.Tests (7)
ServiceConstructionTests.cs (7)
186
services.TryAddKeyedSingleton<IDistributedCache,
CustomMemoryDistributedCache2
>(typeof(
CustomMemoryDistributedCache2
));
189
services.AddKeyedHybridCache("two", options => options.DistributedCacheServiceKey = typeof(
CustomMemoryDistributedCache2
));
200
var
cacheTwoBackend = Assert.IsType<
CustomMemoryDistributedCache2
>(cacheTwo.BackendCache);
201
Assert.Same(typeof(
CustomMemoryDistributedCache2
), cacheTwoOptions.DistributedCacheServiceKey);
202
Assert.Same(cacheTwoBackend, provider.GetRequiredKeyedService<IDistributedCache>(typeof(
CustomMemoryDistributedCache2
)));