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