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)
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; 203public override string ToString() => _now.ToString("yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture); 225waiter.ScheduledOn = _now.Ticks; 226waiter.WakeupTime = _now.Ticks + dueTime; 251if (waiter.WakeupTime > _now.Ticks) 285var oldTicks = _now.Ticks; 290var newTicks = _now.Ticks;