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)
35Start = _now; 50Start = _now; 82result = _now; 105if (value < _now) 107Throw.ArgumentOutOfRangeException(nameof(value), $"Cannot go back in time. Current time is {_now}."); 153var delta = value - _now; 178return _now.Ticks; 202public override string ToString() => _now.ToString("yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture); 224waiter.ScheduledOn = _now.Ticks; 225waiter.WakeupTime = _now.Ticks + dueTime; 250if (waiter.WakeupTime > _now.Ticks) 284var oldTicks = _now.Ticks; 289var newTicks = _now.Ticks;