18 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.Components.Server (1)
Circuits\DefaultInMemoryCircuitPersistenceProvider.cs (1)
33
Clock
= clock
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
CacheTagHelperTest.cs (3)
332
var cache = new MemoryCache(new MemoryCacheOptions {
Clock
= clock.Object });
385
var cache = new MemoryCache(new MemoryCacheOptions {
Clock
= clock.Object });
438
var cache = new MemoryCache(new MemoryCacheOptions {
Clock
= clock.Object });
DistributedCacheTagHelperTest.cs (3)
354
var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions {
Clock
= clock.Object }));
416
var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions {
Clock
= clock.Object }));
478
var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions {
Clock
= clock.Object }));
Microsoft.AspNetCore.OutputCaching.Tests (7)
MemoryOutputCacheStoreTests.cs (7)
29
var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions {
Clock
= testClock }));
65
var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions {
Clock
= testClock }));
93
var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions {
Clock
= testClock }));
113
var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions {
Clock
= testClock }));
129
var store = new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions {
Clock
= testClock }));
159
var cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = 1000,
Clock
= testClock, ExpirationScanFrequency = TimeSpan.FromMilliseconds(1) });
204
var cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = 1000,
Clock
= testClock, ExpirationScanFrequency = TimeSpan.FromMilliseconds(1) });
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
481
services.Configure<MemoryCacheOptions>(o => o.
Clock
= clock);
Microsoft.Extensions.Caching.Hybrid.Tests (2)
ExpirationTests.cs (2)
21
using var l1 = new MemoryCache(new MemoryCacheOptions {
Clock
= clock });
22
var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions {
Clock
= clock })));
1 reference to Clock
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
70
private DateTime UtcNow => _options.
Clock
?.UtcNow.UtcDateTime ?? DateTime.UtcNow;