11 references to MaxSupportedTimeout
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (2)
163if (totalMilliseconds < -1 || totalMilliseconds > Timer.MaxSupportedTimeout) 380if (totalMilliseconds < -1 || totalMilliseconds > Timer.MaxSupportedTimeout)
src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
113if ((ms >= 1 && ms <= Timer.MaxSupportedTimeout) || value == Timeout.InfiniteTimeSpan)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5782if (totalMilliseconds < -1 || totalMilliseconds > Timer.MaxSupportedTimeout)
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (7)
500ArgumentOutOfRangeException.ThrowIfGreaterThan(tm, Timer.MaxSupportedTimeout, parameter); 858ArgumentOutOfRangeException.ThrowIfGreaterThan(dueTm, MaxSupportedTimeout, nameof(dueTime)); 862ArgumentOutOfRangeException.ThrowIfGreaterThan(periodTm, MaxSupportedTimeout, nameof(period)); 883ArgumentOutOfRangeException.ThrowIfGreaterThan(dueTime, MaxSupportedTimeout); 884ArgumentOutOfRangeException.ThrowIfGreaterThan(period, MaxSupportedTimeout); 932ArgumentOutOfRangeException.ThrowIfGreaterThan(dueTime, MaxSupportedTimeout); 933ArgumentOutOfRangeException.ThrowIfGreaterThan(period, MaxSupportedTimeout);