79 instantiations of Timer
dotnet-svcutil-lib (11)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (2)
814_timer = new Timer(new TimerCallback(s_timerCallback), this, timeout, TimeSpan.FromMilliseconds(-1)); 871_timer = new Timer(new TimerCallback(s_timerCallback), this, timeout, TimeSpan.FromMilliseconds(-1));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedConnection.cs (1)
96_flushTimer = new Timer(new TimerCallback(new Action<object>(OnFlushTimer)), null, TimeSpan.FromMilliseconds(-1), TimeSpan.FromMilliseconds(-1));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
65_sendTimer = new Timer(s_onSendTimeout, this, TimeSpan.FromMilliseconds(-1), TimeSpan.FromMilliseconds(-1)); 83_receiveTimer = new Timer(s_onReceiveTimeout, this, TimeSpan.FromMilliseconds(-1), TimeSpan.FromMilliseconds(-1));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
200_idleTimer = new Timer(new TimerCallback(new Action<object>(s_onIdle)), this, _idleTimeout, TimeSpan.FromMilliseconds(-1));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (1)
288_timer = new Timer(new TimerCallback(new Action<object>(TimeoutCallback)), this, timeout, TimeSpan.FromMilliseconds(-1));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (2)
2278_timer = new Timer(new TimerCallback(s_timerCallback), this, timeout, TimeSpan.FromMilliseconds(-1)); 2345_timer = new Timer(new TimerCallback(GetTimerCallback()), this, idle, TimeSpan.FromMilliseconds(-1));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
824_timer = new Timer(new TimerCallback(AsyncDuplexRequest.s_timerCallback), this, timeout, TimeSpan.FromMilliseconds(-1));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (1)
106_purgingTimer = new Timer(new TimerCallback(PurgeCallback), this, _purgeInterval, TimeSpan.FromMilliseconds(-1));
Infrastructure.Common (1)
xunit\WcfTestCase.cs (1)
61timer = new Timer((s) => Environment.FailFast($"Test timed out after duration {_failFastDuration}"),
Microsoft.AspNetCore.Http.Connections (1)
src\aspnetcore\src\Shared\NonCapturingTimer\NonCapturingTimer.cs (1)
30return new Timer(callback, state, dueTime, period);
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (1)
743var timer = new Timer(
src\aspnetcore\src\Shared\NonCapturingTimer\NonCapturingTimer.cs (1)
30return new Timer(callback, state, dueTime, period);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\aspnetcore\src\Shared\NonCapturingTimer\NonCapturingTimer.cs (1)
30return new Timer(callback, state, dueTime, period);
Microsoft.Build (1)
BackEnd\BuildManager\CoordinatorClient.HeartbeatTimer.cs (1)
33_timer = new Timer(
Microsoft.Build.Framework (1)
BackEnd\RedirectConsoleWriter.cs (1)
30_timer = new Timer(TimerCallback, null, 0, 40);
Microsoft.Build.Utilities.Core (1)
ToolTask.cs (1)
818_toolTimer = new Timer(ReceiveTimeoutNotification, null, Timeout, System.Threading.Timeout.Infinite /* no periodic timeouts */);
Microsoft.Extensions.Diagnostics (1)
Metrics\DebugConsoleMetricListener.cs (1)
24_timer = new Timer(OnTimer, null, Timeout.Infinite, Timeout.Infinite);
Microsoft.Extensions.Diagnostics.HealthChecks (1)
src\aspnetcore\src\Shared\NonCapturingTimer\NonCapturingTimer.cs (1)
30return new Timer(callback, state, dueTime, period);
Microsoft.Extensions.FileProviders.Physical (1)
src\runtime\src\libraries\Common\src\Extensions\NonCapturingTimer\NonCapturingTimer.cs (1)
28return new Timer(callback, state, dueTime, period);
Microsoft.Extensions.Http (1)
src\runtime\src\libraries\Common\src\Extensions\NonCapturingTimer\NonCapturingTimer.cs (1)
28return new Timer(callback, state, dueTime, period);
Microsoft.Extensions.ML (1)
ModelLoaders\UriModelLoader.cs (1)
122_reloadTimer = new Timer(ReloadTimerTick, this, Convert.ToInt32(_timerPeriod.Value.TotalMilliseconds), Timeout.Infinite);
Microsoft.ML.AutoML (2)
Experiment\Experiment.cs (2)
124_maxExperimentTimeTimer = new Timer( 139_mainContextCanceledTimer = new Timer(new TimerCallback(MainContextCanceledEvent), null, 1000, 1000);
Microsoft.TestPlatform.CrossPlatEngine (1)
Execution\TestRunCache.cs (1)
100_timer = new Timer(OnCacheTimeHit, this, cacheTimeout, cacheTimeout);
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
InactivityTimer.cs (1)
20_timer = new Timer((object? state) => timerCallback());
Microsoft.VisualStudio.TestPlatform.Client (1)
Execution\TestRunRequest.cs (1)
147_timer = new Timer(OnTestSessionTimeout, null, TimeSpan.FromMilliseconds(_testSessionTimeout), TimeSpan.FromMilliseconds(0));
MSBuild.Coordinator (2)
CoordinatorServer.cs (2)
64_heartbeatMonitor = new Timer( 608var newTimer = new Timer(
NuGet.Protocol (3)
Plugins\AutomaticProgressReporter.cs (1)
34_timer = new Timer(OnTimer, state: null, dueTime: interval, period: interval);
Plugins\OutboundRequestContext`1.cs (1)
113_timer = new Timer(
Plugins\Plugin.cs (1)
124_idleTimer = new Timer(OnIdleTimer, state: null, dueTime: idleTimeout, period: Timeout.InfiniteTimeSpan);
PresentationCore (1)
System\IO\Packaging\PackWebResponse.cs (1)
94_timeoutTimer = new Timer(new TimerCallback(TimeoutCallback), null, innerRequest.Timeout, Timeout.Infinite);
System.ComponentModel.TypeConverter (1)
System\Timers\Timer.cs (1)
138_timer = new Threading.Timer(_callback, _cookie, Timeout.Infinite, Timeout.Infinite);
System.Data.Odbc (2)
Common\System\Data\ProviderBase\DbConnectionPool.cs (1)
442Timer t = new Timer(new TimerCallback(this.ErrorCallback), null, Timeout.Infinite, Timeout.Infinite);
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.Drivers.cs (1)
24return new Timer(callback, state, dueTime, period);
System.Data.OleDb (3)
System\Data\ProviderBase\DbConnectionFactory.cs (1)
107return new Timer(callback, null, PruningDueTime, PruningPeriod);
System\Data\ProviderBase\DbConnectionPool.cs (2)
650return (new Timer(new TimerCallback(this.CleanupCallback), null, _cleanupWait, _cleanupWait)); 716Timer t = new Timer(new TimerCallback(this.ErrorCallback), null, Timeout.Infinite, Timeout.Infinite);
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\AggregationManager.cs (1)
184_pollingTimer = new Timer(CollectOnTimer, null, (int)delayTime.TotalMilliseconds, 0);
System.Net.Http (6)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
737_authorityExpireTimer = new Timer(static o =>
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
348await using (new Timer(static s =>
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
460timer = new Timer(static o => ((Http3RequestStream)o!)._expect100ContinueCompletionSource!.TrySetResult(true),
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
591var expect100Timer = new Timer(
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
116_cleaningTimer = new Timer(static s => 137_heartBeatTimer = new Timer(static state =>
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
116_certificateCleanupTimer = new Timer(
System.Net.HttpListener (1)
System\Net\Managed\HttpConnection.cs (1)
108_timer = new Timer(OnTimeout, null, Timeout.Infinite, Timeout.Infinite);
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
559timer = new Timer(new TimerCallback(TimeOutCallback), null, Timeout, Timeout);
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
111s_availabilityTimer = new Timer(s_availabilityTimerFiredCallback, null, Timeout.Infinite, Timeout.Infinite);
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
190_keepAliveTimer = new Timer(static s =>
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (2)
1406s_flushTimer ??= new Timer(PeriodicFlush, null, Timeout.Infinite, Timeout.Infinite, false); 1423s_cleanupTimer ??= new Timer(Cleanup, null, Timeout.Infinite, Timeout.Infinite, false);
System.Runtime.Caching (2)
System\Runtime\Caching\CacheExpires.cs (1)
857timer = new Timer(new TimerCallback(this.TimerCallback), null,
System\Runtime\Caching\MemoryCacheStatistics.cs (1)
182timer = new Timer(new TimerCallback(CacheManagerTimerCallback), null, _configPollingInterval, _configPollingInterval);
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\BufferedConnection.cs (1)
100_flushTimer = new Timer(new TimerCallback(OnFlushTimer), this, _flushTimeout, Timeout.Infinite);
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
183_idleTimer = new Timer(new TimerCallback(new Action<object>(s_onIdle)), this, _idleTimeout, Timeout.InfiniteTimeSpan);
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
772return new Timer(callback, this, Timeout.Infinite, Timeout.Infinite);
System.ServiceModel.Primitives (7)
Internals\System\Runtime\InputQueue.cs (2)
910_timer = new Timer(new TimerCallback(s_timerCallback), this, timeout, Timeout.InfiniteTimeSpan); 961_timer = new Timer(new TimerCallback(s_timerCallback), this, timeout, Timeout.InfiniteTimeSpan);
System\ServiceModel\Channels\ServiceChannel.cs (2)
2419_timer = new Timer(s_timeoutCallback, this, timeout, Timeout.InfiniteTimeSpan); 2486_timer = new Timer(new TimerCallback(GetTimerCallback()), this, idle, Timeout.InfiniteTimeSpan);
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
825_timer = new Timer(new TimerCallback(AsyncDuplexRequest.s_timerCallback), this, timeout, Timeout.InfiniteTimeSpan);
System\ServiceModel\Dispatcher\TerminatingOperationBehavior.cs (1)
52var timer = new Timer(s_abortChannelTimerCallback, rpc.Channel.Binder.Channel, rpc.Channel.CloseTimeout, Timeout.InfiniteTimeSpan);
System\ServiceModel\Security\TimeBoundedCache.cs (1)
93_purgingTimer = new Timer(new TimerCallback(PurgeCallback), this, _purgeInterval, Timeout.InfiniteTimeSpan);
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
736return new Timer(callback, this, Timeout.Infinite, Timeout.Infinite);
System.Threading.RateLimiting (4)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
85_renewTimer = new Timer(Replenish, this, _options.Window, _options.Window);
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
99_renewTimer = new Timer(Replenish, this, ReplenishmentPeriod, ReplenishmentPeriod);
System\Threading\RateLimiting\TimerAwaitable.cs (1)
55_timer = new Timer(static state =>
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
86_renewTimer = new Timer(Replenish, this, _options.ReplenishmentPeriod, _options.ReplenishmentPeriod);
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlock.cs (1)
1065target._timer = new Timer(
System.Transactions.Local (6)
System\Transactions\Oletx\OletxResourceManager.cs (1)
475ReenlistThreadTimer = new Timer(ReenlistThread, this, 10, Timeout.Infinite);
System\Transactions\TransactionScope.cs (4)
137_scopeTimer = new Timer( 223_scopeTimer = new Timer( 305_scopeTimer = new Timer( 477_scopeTimer = new Timer(
System\Transactions\TransactionTable.cs (1)
149_timer = new Timer(new TimerCallback(ThreadTimer), null, Timeout.Infinite, _timerInterval);
138 references to Timer
dotnet-svcutil-lib (13)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (2)
802private Timer _timer; 865private Timer _timer;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedConnection.cs (1)
18private Timer _flushTimer;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (4)
35private Timer _receiveTimer; 37private Timer _sendTimer; 54private Timer SendTimer 72private Timer ReceiveTimer
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
106private Timer _idleTimer;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (1)
274private Timer _timer;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (2)
2267private Timer _timer; 2336private readonly Timer _timer;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
812private Timer _timer;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (1)
24private Timer _purgingTimer;
Infrastructure.Common (1)
xunit\WcfTestCase.cs (1)
58Timer timer = null;
Microsoft.AspNetCore.Http.Connections (1)
src\aspnetcore\src\Shared\NonCapturingTimer\NonCapturingTimer.cs (1)
16public static Timer Create(TimerCallback callback, object? state, TimeSpan dueTime, TimeSpan period)
Microsoft.AspNetCore.SignalR.Client.Core (9)
HubConnection.cs (7)
95private Timer? _authRefreshTimer; 734Timer? previousTimer; 743var timer = new Timer( 764if (!TryClaimAuthenticationRefreshTimer(timerState, out var timer)) 783private bool TryClaimAuthenticationRefreshTimer(AuthenticationRefreshTimerState timerState, [NotNullWhen(true)] out Timer? timer) 803Timer? timer; 817Timer? timer;
src\aspnetcore\src\Shared\NonCapturingTimer\NonCapturingTimer.cs (1)
16public static Timer Create(TimerCallback callback, object? state, TimeSpan dueTime, TimeSpan period)
src\aspnetcore\src\SignalR\common\Shared\TimerAwaitable.cs (1)
15private Timer? _timer;
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Internal\AckHandler.cs (1)
12private readonly Timer _timer;
src\aspnetcore\src\Shared\NonCapturingTimer\NonCapturingTimer.cs (1)
16public static Timer Create(TimerCallback callback, object? state, TimeSpan dueTime, TimeSpan period)
Microsoft.Build (1)
BackEnd\BuildManager\CoordinatorClient.HeartbeatTimer.cs (1)
24private readonly Timer _timer;
Microsoft.Build.Framework (1)
BackEnd\RedirectConsoleWriter.cs (1)
19private readonly Timer _timer;
Microsoft.Build.Utilities.Core (1)
ToolTask.cs (1)
1843private Timer _toolTimer;
Microsoft.Extensions.Diagnostics (1)
Metrics\DebugConsoleMetricListener.cs (1)
15private readonly Timer _timer;
Microsoft.Extensions.Diagnostics.HealthChecks (7)
HealthCheckPublisherHostedService.cs (6)
26private List<Timer>? _timers; 94foreach (var timer in _timers) 105private List<Timer> CreateTimers() 114var timers = new List<Timer>(delayPeriodGroups.Count); 117var timer = CreateTimer(group); 124private Timer CreateTimer((TimeSpan Delay, TimeSpan Period) timerOptions)
src\aspnetcore\src\Shared\NonCapturingTimer\NonCapturingTimer.cs (1)
16public static Timer Create(TimerCallback callback, object? state, TimeSpan dueTime, TimeSpan period)
Microsoft.Extensions.FileProviders.Physical (3)
PhysicalFilesWatcher.cs (2)
60private Timer? _timer; 63private readonly Func<Timer> _timerFactory;
src\runtime\src\libraries\Common\src\Extensions\NonCapturingTimer\NonCapturingTimer.cs (1)
14public static Timer Create(TimerCallback callback, object state, TimeSpan dueTime, TimeSpan period)
Microsoft.Extensions.Http (3)
ActiveHandlerTrackingEntry.cs (1)
19private Timer? _timer;
DefaultHttpClientFactory.cs (1)
41private Timer? _cleanupTimer;
src\runtime\src\libraries\Common\src\Extensions\NonCapturingTimer\NonCapturingTimer.cs (1)
14public static Timer Create(TimerCallback callback, object state, TimeSpan dueTime, TimeSpan period)
Microsoft.Extensions.ML (1)
ModelLoaders\UriModelLoader.cs (1)
28private Timer _reloadTimer;
Microsoft.ML.AutoML (2)
Experiment\Experiment.cs (2)
34private Timer _maxExperimentTimeTimer; 35private Timer _mainContextCanceledTimer;
Microsoft.TestPlatform.CrossPlatEngine (1)
Execution\TestRunCache.cs (1)
52private readonly Timer _timer;
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
InactivityTimer.cs (1)
11private readonly Timer _timer;
Microsoft.VisualStudio.TestPlatform.Client (1)
Execution\TestRunRequest.cs (1)
65private Timer? _timer;
MSBuild.Coordinator (3)
CoordinatorServer.cs (3)
36private Timer? _heartbeatMonitor; 37private Timer? _shutdownTimer; 608var newTimer = new Timer(
mscorlib (1)
parent\ref\mscorlib.cs (1)
1184[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Timer))]
netstandard (1)
netstandard.cs (1)
2147[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Timer))]
NuGet.Protocol (3)
Plugins\AutomaticProgressReporter.cs (1)
21private readonly Timer _timer;
Plugins\OutboundRequestContext`1.cs (1)
31private readonly Timer? _timer;
Plugins\Plugin.cs (1)
17private readonly Timer? _idleTimer;
PresentationCore (1)
System\IO\Packaging\PackWebResponse.cs (1)
932private Timer _timeoutTimer; // used if Timeout specified
System.ComponentModel.TypeConverter (1)
System\Timers\Timer.cs (1)
25private Threading.Timer? _timer;
System.Data.Odbc (9)
Common\System\Data\ProviderBase\DbConnectionPool.cs (6)
123private Timer? _errorTimer; 125private Timer? _cleanupTimer; 377private Timer CreateCleanupTimer() 442Timer t = new Timer(new TimerCallback(this.ErrorCallback), null, Timeout.Infinite, Timeout.Infinite); 569Timer? t = _errorTimer; 1132Timer? t = _cleanupTimer;
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.Drivers.cs (1)
11internal static Timer UnsafeCreateTimer(TimerCallback callback, object? state, int dueTime, int period)
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (2)
18private readonly Timer _pruningTimer; 110private Timer CreatePruningTimer() =>
System.Data.OleDb (8)
System\Data\ProviderBase\DbConnectionFactory.cs (2)
18private readonly Timer _pruningTimer; 104private Timer CreatePruningTimer()
System\Data\ProviderBase\DbConnectionPool.cs (6)
361private Timer? _errorTimer; 363private Timer? _cleanupTimer; 648private Timer CreateCleanupTimer() 716Timer t = new Timer(new TimerCallback(this.ErrorCallback), null, Timeout.Infinite, Timeout.Infinite); 915Timer? t = _errorTimer; 1671Timer? t = _cleanupTimer;
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\AggregationManager.cs (1)
32private Timer? _pollingTimer;
System\Diagnostics\Metrics\RuntimeMetrics.cs (1)
118() => Timer.ActiveCount,
System.Net.Http (6)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
45private Timer? _authorityExpireTimer;
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
454Timer? timer = null;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
591var expect100Timer = new Timer( 1001HttpContentWriteStream stream, Timer expect100Timer, bool async, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
39private readonly Timer? _cleaningTimer; 41private readonly Timer? _heartBeatTimer;
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
98private readonly Timer? _certificateCleanupTimer;
System.Net.HttpListener (1)
System\Net\Managed\HttpConnection.cs (1)
64private readonly Timer _timer;
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
512Timer? timer = null;
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
44private static Timer? s_availabilityTimer;
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
54private readonly Timer? _keepAliveTimer;
System.Private.CoreLib (13)
src\runtime\src\libraries\Common\src\System\TimeProvider.cs (3)
16/// and a timer based on <see cref="Timer"/>. 167/// <summary>Thin wrapper for a <see cref="Timer"/>.</summary> 235/// provided by <see cref="TimeProvider"/> which uses <see cref="DateTimeOffset.UtcNow"/>, <see cref="TimeZoneInfo.Local"/>, <see cref="Stopwatch"/>, and <see cref="Timer"/>.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (1)
91_timerCounter ??= new PollingCounter("active-timer-count", this, () => Timer.ActiveCount) { DisplayName = "Number of Active Timers" };
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (2)
1564private static Timer? s_flushTimer; 1567private static Timer? s_cleanupTimer;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (3)
33/// <summary>Delegate used with <see cref="Timer"/> to trigger cancellation of a <see cref="CancellationTokenSource"/>.</summary> 163if (totalMilliseconds < -1 || totalMilliseconds > Timer.MaxSupportedTimeout) 380if (totalMilliseconds < -1 || totalMilliseconds > Timer.MaxSupportedTimeout)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
113if ((ms >= 1 && ms <= Timer.MaxSupportedTimeout) || value == Timeout.InfiniteTimeSpan)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5964if (totalMilliseconds < -1 || totalMilliseconds > Timer.MaxSupportedTimeout)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (2)
491ArgumentOutOfRangeException.ThrowIfGreaterThan(tm, Timer.MaxSupportedTimeout, parameter); 740public TimerDebuggerTypeProxy(Timer timer) => _timer = timer._timer._timer;
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net12.0\System.Runtime.Forwards.cs (1)
860[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Timer))]
System.Runtime.Caching (9)
System\Runtime\Caching\CacheExpires.cs (4)
769private GCHandleRef<Timer> _timerHandleRef; 846Timer timer; 866_timerHandleRef = new GCHandleRef<Timer>(timer); 873GCHandleRef<Timer> timerHandleRef = _timerHandleRef;
System\Runtime\Caching\MemoryCacheStatistics.cs (5)
33private GCHandleRef<Timer> _timerHandleRef; 62Timer timer = _timerHandleRef.Target; 171Timer timer; 191_timerHandleRef = new GCHandleRef<Timer>(timer); 341GCHandleRef<Timer> timerHandleRef = _timerHandleRef;
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\BufferedConnection.cs (1)
16private Timer _flushTimer;
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
89private Timer _idleTimer;
System.ServiceModel.NetTcp (3)
System\ServiceModel\Channels\SocketConnection.cs (3)
58private Timer _receiveTimer; 62private Timer _sendTimer; 755private Timer CreateTimer(TimerCallback callback)
System.ServiceModel.Primitives (7)
Internals\System\Runtime\InputQueue.cs (2)
898private Timer _timer; 955private Timer _timer;
System\ServiceModel\Channels\ServiceChannel.cs (2)
2408private Timer _timer; 2477private readonly Timer _timer;
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
813private Timer _timer;
System\ServiceModel\Dispatcher\TerminatingOperationBehavior.cs (1)
52var timer = new Timer(s_abortChannelTimerCallback, rpc.Channel.Binder.Channel, rpc.Channel.CloseTimeout, Timeout.InfiniteTimeSpan);
System\ServiceModel\Security\TimeBoundedCache.cs (1)
23private Timer _purgingTimer;
System.ServiceModel.UnixDomainSocket (3)
System\ServiceModel\Channels\SocketConnection.cs (3)
40private Timer _receiveTimer; 44private Timer _sendTimer; 719private Timer CreateTimer(TimerCallback callback)
System.Threading.RateLimiting (4)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
32private readonly Timer? _renewTimer;
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
34private readonly Timer? _renewTimer;
System\Threading\RateLimiting\TimerAwaitable.cs (1)
15private Timer? _timer;
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
26private readonly Timer? _renewTimer;
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlock.cs (1)
1133internal Timer? _timer;
System.Threading.Timer (1)
System.Threading.Timer.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Timer))]
System.Transactions.Local (5)
System\Transactions\Oletx\OletxResourceManager.cs (3)
44internal Timer? ReenlistThreadTimer; 417Timer? localTimer = null; 520Timer? localTimer = null;
System\Transactions\TransactionScope.cs (1)
1202private Timer? _scopeTimer;
System\Transactions\TransactionTable.cs (1)
126private readonly Timer _timer;