1 override of CreateTimer
Microsoft.Extensions.TimeProvider.Testing (1)
FakeTimeProvider.cs (1)
206public override ITimer CreateTimer(TimerCallback callback, object? state, TimeSpan dueTime, TimeSpan period)
8 references to CreateTimer
Microsoft.Extensions.ServiceDiscovery (3)
Http\HttpServiceEndpointResolver.cs (1)
91_cleanupTimer = timeProvider.CreateTimer(s_cleanupCallback, this, s_cleanupPeriod, s_cleanupPeriod);
ServiceEndpointResolver.cs (1)
99_cleanupTimer = _timeProvider.CreateTimer(s_cleanupCallback, this, s_cleanupPeriod, s_cleanupPeriod);
ServiceEndpointWatcher.cs (1)
244_pollingTimer = _timeProvider.CreateTimer(s_pollingAction, this, _options.RefreshPeriod, TimeSpan.Zero);
System.Private.CoreLib (5)
src\libraries\Common\src\System\TimeProvider.cs (1)
156/// <see cref="CreateTimer"/> captures the <see cref="ExecutionContext"/> and stores that with the <see cref="ITimer"/> for use in invoking <paramref name="callback"/>
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
220_timer = timeProvider.CreateTimer(s_timerCallback, this, millisecondsDelay, Timeout.InfiniteTimeSpan);
src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
75_timer = timeProvider.CreateTimer(callback, _state, period, period);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
2891_timer = timeProvider.CreateTimer(callback, this, TimeSpan.FromMilliseconds(millisecondsDelay), Timeout.InfiniteTimeSpan); 5816_timer = timeProvider.CreateTimer(s_timerCallback, this, TimeSpan.FromMilliseconds(millisecondsDelay), Timeout.InfiniteTimeSpan);