1 type derived from LoggingCache
Microsoft.Extensions.Caching.Hybrid.Tests (1)
L2Tests.cs (1)
209private class BufferLoggingCache : LoggingCache, IBufferDistributedCache
10 instantiations of LoggingCache
Microsoft.Extensions.Caching.Hybrid.Tests (10)
ExpirationTests.cs (1)
23var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions { Clock = clock })));
FactoryOptionsTests.cs (3)
35return GetDefaultCache(out cache, services => services.AddSingleton<IDistributedCache>(new LoggingCache(log, captured))); 163var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions { Clock = clock }))); 300var loggingB = new LoggingCache(log, sharedL2);
L2Tests.cs (1)
40services.AddSingleton<IDistributedCache>(buffers ? new BufferLoggingCache(Log, localCache) : new LoggingCache(Log, localCache));
LocalInvalidationTests.cs (1)
60l2 = new LoggingCache(log, mdc);
PayloadTests.cs (4)
115config.AddSingleton<IDistributedCache>(new LoggingCache(log, backend)); 435config.AddSingleton<IDistributedCache>(new LoggingCache(log, localCache)); 462config.AddSingleton<IDistributedCache>(new LoggingCache(log, localCache)); 501config.AddSingleton<IDistributedCache>(new LoggingCache(log, localCache));
7 references to LoggingCache
Microsoft.Extensions.Caching.Hybrid.Tests (7)
ExpirationTests.cs (1)
23var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions { Clock = clock })));
FactoryOptionsTests.cs (2)
163var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions { Clock = clock }))); 300var loggingB = new LoggingCache(log, sharedL2);
L2Tests.cs (4)
53var backend = Assert.IsAssignableFrom<LoggingCache>(cache.BackendCache); 111var backend = Assert.IsAssignableFrom<LoggingCache>(cache.BackendCache);