Implemented interface member:
property
UtcNow
Microsoft.Extensions.Internal.ISystemClock.UtcNow
2 writes to UtcNow
Microsoft.Extensions.Caching.SqlServer.Tests (2)
TestClock.cs (2)
18UtcNow = new DateTimeOffset(2013, 1, 1, 1, 0, 0, offset: TimeSpan.Zero); 25UtcNow = UtcNow.Add(timeSpan);
19 references to UtcNow
Microsoft.Extensions.Caching.SqlServer.Tests (19)
SqlServerCacheWithDatabaseTest.cs (18)
86new DistributedCacheEntryOptions().SetAbsoluteExpiration(testClock.UtcNow.AddHours(-1))); 129var expectedExpirationTime = testClock.UtcNow.Add(cacheOptions.DefaultSlidingExpiration); 170var expectedExpirationTime = testClock.UtcNow.Add(cacheOptions.DefaultSlidingExpiration); 260var expectedExpirationTime = testClock.UtcNow.AddSeconds(expected); 286var utcNow = testClock.UtcNow; 301utcNow = testClock.Add(TimeSpan.FromSeconds(accessItemAt)).UtcNow; 343.SetAbsoluteExpiration(absolute: testClock.UtcNow.Add(TimeSpan.FromSeconds(30)))); 365var expectedAbsoluteExpiration = testClock.UtcNow.Add(absoluteExpirationRelativeToUtcNow); 421var absoluteExpiration = testClock.UtcNow.Add(TimeSpan.FromSeconds(10)); 438absoluteExpiration = testClock.UtcNow.Add(TimeSpan.FromMinutes(30)); 461var absoluteExpiration = testClock.UtcNow.Add(TimeSpan.FromSeconds(10)); 491var expectedExpiresAtTime = testClock.UtcNow.AddSeconds(15); 516var utcNow = testClock.UtcNow; 536utcNow = testClock.Add(TimeSpan.FromSeconds(5)).UtcNow; 546utcNow = testClock.Add(TimeSpan.FromSeconds(5)).UtcNow; 556utcNow = testClock.Add(TimeSpan.FromSeconds(5)).UtcNow; 574var expectedExpiresAtTime = testClock.UtcNow.Add(absoluteExpirationRelativeToNow); 608var expectedExpiresAtTime = testClock.UtcNow.AddSeconds(15);
TestClock.cs (1)
25UtcNow = UtcNow.Add(timeSpan);