14 writes to Clock
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateValidationCache.cs (1)
24_cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = _options.CacheSize, Clock = new CachingClock(timeProvider) });
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
CacheTagHelperTest.cs (3)
332var cache = new MemoryCache(new MemoryCacheOptions { Clock = clock.Object }); 385var cache = new MemoryCache(new MemoryCacheOptions { Clock = clock.Object }); 438var cache = new MemoryCache(new MemoryCacheOptions { Clock = clock.Object });
DistributedCacheTagHelperTest.cs (3)
354var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions { Clock = clock.Object })); 416var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions { Clock = clock.Object })); 478var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions { Clock = clock.Object }));
Microsoft.AspNetCore.OutputCaching.Tests (6)
MemoryOutputCacheStoreTests.cs (6)
29var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions { Clock = testClock })); 65var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions { Clock = testClock })); 93var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions { Clock = testClock })); 113var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions { Clock = testClock })); 129var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions { Clock = testClock })); 159var cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = 1000, Clock = testClock, ExpirationScanFrequency = TimeSpan.FromMilliseconds(1) });
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
481services.Configure<MemoryCacheOptions>(o => o.Clock = clock);
1 reference to Clock
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
67private DateTime UtcNow => _options.Clock?.UtcNow.UtcDateTime ?? DateTime.UtcNow;