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