5 writes to _now
Microsoft.Extensions.TimeProvider.Testing (5)
FakeTimeProvider.cs (5)
47
_now
= startDateTime;
81
_now
+= _autoAdvanceAmount;
108
_now
= value;
131
_now
+= delta;
151
_now
= value;
12 references to _now
Microsoft.Extensions.TimeProvider.Testing (12)
FakeTimeProvider.cs (12)
33
Start =
_now
;
48
Start =
_now
;
80
result =
_now
;
103
if (value <
_now
)
105
Throw.ArgumentOutOfRangeException(nameof(value), $"Cannot go back in time. Current time is {
_now
}.");
150
var delta = value -
_now
;
200
public override string ToString() =>
_now
.ToString("yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture);
222
waiter.ScheduledOn =
_now
.Ticks;
223
waiter.WakeupTime =
_now
.Ticks + dueTime;
248
if (waiter.WakeupTime >
_now
.Ticks)
282
var oldTicks =
_now
.Ticks;
287
var newTicks =
_now
.Ticks;