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;
13 references to _now
Microsoft.Extensions.TimeProvider.Testing (13)
FakeTimeProvider.cs (13)
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
;
178
return
_now
.Ticks;
202
public override string ToString() =>
_now
.ToString("yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture);
224
waiter.ScheduledOn =
_now
.Ticks;
225
waiter.WakeupTime =
_now
.Ticks + dueTime;
250
if (waiter.WakeupTime >
_now
.Ticks)
284
var oldTicks =
_now
.Ticks;
289
var newTicks =
_now
.Ticks;