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)
32Start = _now; 47Start = _now; 79result = _now; 102if (value < _now) 104Throw.ArgumentOutOfRangeException(nameof(value), $"Cannot go back in time. Current time is {_now}."); 149var delta = value - _now; 199public override string ToString() => _now.ToString("yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture); 221waiter.ScheduledOn = _now.Ticks; 222waiter.WakeupTime = _now.Ticks + dueTime; 247if (waiter.WakeupTime > _now.Ticks) 281var oldTicks = _now.Ticks; 286var newTicks = _now.Ticks;