5 writes to _now
Microsoft.Extensions.TimeProvider.Testing (5)
FakeTimeProvider.cs (5)
49
_now
= startDateTime;
83
_now
+= _autoAdvanceAmount;
110
_now
= value;
133
_now
+= delta;
154
_now
= value;
12 references to _now
Microsoft.Extensions.TimeProvider.Testing (12)
FakeTimeProvider.cs (12)
35
Start =
_now
;
50
Start =
_now
;
82
result =
_now
;
105
if (value <
_now
)
107
Throw.ArgumentOutOfRangeException(nameof(value), $"Cannot go back in time. Current time is {
_now
}.");
153
var delta = value -
_now
;
203
public override string ToString() =>
_now
.ToString("yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture);
225
waiter.ScheduledOn =
_now
.Ticks;
226
waiter.WakeupTime =
_now
.Ticks + dueTime;
251
if (waiter.WakeupTime >
_now
.Ticks)
285
var oldTicks =
_now
.Ticks;
290
var newTicks =
_now
.Ticks;