5 writes to _now
Microsoft.Extensions.TimeProvider.Testing (5)
FakeTimeProvider.cs (5)
46
_now
= startDateTime;
80
_now
+= AutoAdvanceAmount;
107
_now
= value;
130
_now
+= delta;
150
_now
= value;
12 references to _now
Microsoft.Extensions.TimeProvider.Testing (12)
FakeTimeProvider.cs (12)
32
Start =
_now
;
47
Start =
_now
;
79
result =
_now
;
102
if (value <
_now
)
104
Throw.ArgumentOutOfRangeException(nameof(value), $"Cannot go back in time. Current time is {
_now
}.");
149
var delta = value -
_now
;
199
public override string ToString() =>
_now
.ToString("yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture);
221
waiter.ScheduledOn =
_now
.Ticks;
222
waiter.WakeupTime =
_now
.Ticks + dueTime;
247
if (waiter.WakeupTime >
_now
.Ticks)
281
var oldTicks =
_now
.Ticks;
286
var newTicks =
_now
.Ticks;