280 references to Timeout
mscorlib (84)
system\runtime\compilerservices\TaskAwaiter.cs (1)
148bool taskCompleted = task.InternalWait(Timeout.Infinite, default(CancellationToken));
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (4)
480s_eventCacheRWLock.AcquireWriterLock(Timeout.Infinite); 581s_eventCacheRWLock.AcquireReaderLock(Timeout.Infinite); 703s_eventCacheRWLock.AcquireReaderLock(Timeout.Infinite); 780s_eventCacheRWLock.AcquireReaderLock(Timeout.Infinite);
system\runtime\remoting\leasemanager.cs (4)
88leaseTimer = new Timer(leaseTimeAnalyzerDelegate, null, Timeout.Infinite, Timeout.Infinite); 89leaseTimer.Change((int)pollTime.TotalMilliseconds, Timeout.Infinite); 265leaseTimer.Change((int)pollTime.TotalMilliseconds, Timeout.Infinite);
system\runtime\remoting\realproxy.cs (1)
593Timeout.Infinite,
system\threading\CountdownEvent.cs (4)
442Wait(Timeout.Infinite, new CancellationToken()); 465Wait(Timeout.Infinite, cancellationToken); 528/// cref="Timeout.Infinite"/>(-1) to wait indefinitely.</param> 546/// cref="Timeout.Infinite"/>(-1) to wait indefinitely.</param>
system\threading\ManualResetEventSlim.cs (5)
426Wait(Timeout.Infinite, new CancellationToken()); 446Wait(Timeout.Infinite, cancellationToken); 511/// cref="Timeout.Infinite"/>(-1) to wait indefinitely.</param> 530/// cref="Timeout.Infinite"/>(-1) to wait indefinitely.</param> 566if (millisecondsTimeout != Timeout.Infinite)
system\threading\monitor.cs (1)
223return Wait(obj, Timeout.Infinite, false);
system\threading\SemaphoreSlim.cs (12)
210Wait(Timeout.Infinite, new CancellationToken()); 226Wait(Timeout.Infinite, cancellationToken); 290/// cref="Timeout.Infinite"/>(-1) to wait indefinitely.</param> 306/// <param name="millisecondsTimeout">The number of milliseconds to wait, or <see cref="Timeout.Infinite"/>(-1) to 327if (millisecondsTimeout != Timeout.Infinite && millisecondsTimeout > 0) 451int remainingWaitMilliseconds = Timeout.Infinite; 459if (millisecondsTimeout != Timeout.Infinite) 484return WaitAsync(Timeout.Infinite, default(CancellationToken)); 500return WaitAsync(Timeout.Infinite, cancellationToken); 508/// The number of milliseconds to wait, or <see cref="Timeout.Infinite"/>(-1) to wait indefinitely. 588/// The number of milliseconds to wait, or <see cref="Timeout.Infinite"/>(-1) to wait indefinitely. 631return (millisecondsTimeout == Timeout.Infinite && !cancellationToken.CanBeCanceled) ?
system\threading\SpinLock.cs (7)
171ContinueTryEnter(Timeout.Infinite, ref lockTaken); // Then try the slow path if any of the above conditions is met 249/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> 302if (millisecondsTimeout != Timeout.Infinite && millisecondsTimeout != 0) 370(millisecondsTimeout != Timeout.Infinite && 420if (millisecondsTimeout != Timeout.Infinite && TimeoutHelper.UpdateTimeOut(startTime, millisecondsTimeout) <= 0) 479if (millisecondsTimeout != Timeout.Infinite && TimeoutHelper.UpdateTimeOut(startTime, millisecondsTimeout) <= 0) 565(millisecondsTimeout != Timeout.Infinite && spinner.NextSpinWillYield &&
system\threading\SpinWait.cs (6)
205SpinUntil(condition, Timeout.Infinite); 242/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> 249if (millisecondsTimeout < Timeout.Infinite) 259if (millisecondsTimeout != 0 && millisecondsTimeout != Timeout.Infinite) 273if (millisecondsTimeout != Timeout.Infinite && spinner.NextSpinWillYield) 355Contract.Assert(originalWaitMillisecondsTimeout != Timeout.Infinite);
system\threading\Tasks\Future.cs (1)
556if (!IsCompleted) InternalWait(Timeout.Infinite, default(CancellationToken)); // won't throw if task faulted or canceled; that's handled below
system\threading\Tasks\FutureFactory.cs (1)
750Timeout.Infinite,
system\threading\Tasks\Task.cs (21)
1229SpinThenBlockingWait(Timeout.Infinite, default(CancellationToken)); 3049Wait(Timeout.Infinite, default(CancellationToken)); 3102Wait(Timeout.Infinite, cancellationToken); 3110/// The number of milliseconds to wait, or <see cref="System.Threading.Timeout.Infinite"/> (-1) to 3133/// The number of milliseconds to wait, or <see cref="System.Threading.Timeout.Infinite"/> (-1) to 3252if (millisecondsTimeout == Timeout.Infinite && !cancellationToken.CanBeCanceled && 3263Contract.Assert(IsCompleted || millisecondsTimeout != Timeout.Infinite); 3309bool infiniteWait = millisecondsTimeout == Timeout.Infinite; 3320returnValue = mres.Wait(Timeout.Infinite, cancellationToken); 4893WaitAll(tasks, Timeout.Infinite); 4950/// The number of milliseconds to wait, or <see cref="System.Threading.Timeout.Infinite"/> (-1) to 5003WaitAll(tasks, Timeout.Infinite, cancellationToken); 5017/// The number of milliseconds to wait, or <see cref="System.Threading.Timeout.Infinite"/> (-1) to 5084if (millisecondsTimeout != Timeout.Infinite || cancellationToken.CanBeCanceled) 5267task.SpinThenBlockingWait(Timeout.Infinite, default(CancellationToken)); 5324int waitResult = WaitAny(tasks, Timeout.Infinite); 5390return WaitAny(tasks, Timeout.Infinite, cancellationToken); 5400/// The number of milliseconds to wait, or <see cref="System.Threading.Timeout.Infinite"/> (-1) to 5430/// The number of milliseconds to wait, or <see cref="System.Threading.Timeout.Infinite"/> (-1) to 5894if (millisecondsDelay != Timeout.Infinite) // no need to create the timer if it's an infinite timeout 5896promise.Timer = new Timer(state => ((DelayPromise)state).Complete(), promise, millisecondsDelay, Timeout.Infinite);
system\threading\thread.cs (1)
687JoinInternal(Timeout.Infinite);
system\threading\timeout.cs (1)
21public static readonly TimeSpan InfiniteTimeSpan = new TimeSpan(0, 0, 0, 0, Timeout.Infinite);
system\threading\timer.cs (12)
283Contract.Assert(timer.m_dueTime != Timeout.UnsignedInfinite); 357Contract.Assert(timer.m_dueTime != Timeout.UnsignedInfinite); 367if (timer.m_period != Timeout.UnsignedInfinite) 452if (timer.m_dueTime == Timeout.UnsignedInfinite) 462timer.m_period = (period == 0) ? Timeout.UnsignedInfinite : period; 469if (timer.m_dueTime != Timeout.UnsignedInfinite) 478timer.m_dueTime = Timeout.UnsignedInfinite; 479timer.m_period = Timeout.UnsignedInfinite; 542m_dueTime = Timeout.UnsignedInfinite; 543m_period = Timeout.UnsignedInfinite; 556if (dueTime != Timeout.UnsignedInfinite) 576if (dueTime == Timeout.UnsignedInfinite)
system\threading\waithandle.cs (2)
391return WaitAll(waitHandles, Timeout.Infinite, true); 502return WaitAny(waitHandles, Timeout.Infinite, true);
PresentationCore (5)
Core\CSharp\MS\Internal\IO\Packaging\PseudoWebRequest.cs (2)
285if (value < 0 && value != System.Threading.Timeout.Infinite) 357_timeout = System.Threading.Timeout.Infinite; // ftp default and appropriate for cached file
Core\CSharp\System\IO\Packaging\PackWebRequest.cs (1)
429if (value < 0 && value != System.Threading.Timeout.Infinite)
Core\CSharp\System\IO\Packaging\PackWebResponse.cs (2)
116if (innerRequest.Timeout != Timeout.Infinite) 125_timeoutTimer = new Timer(new TimerCallback(TimeoutCallback), null, innerRequest.Timeout, Timeout.Infinite);
System (95)
net\System\Net\_ConnectStream.cs (8)
99private static volatile int responseDrainTimeoutMilliseconds = Timeout.Infinite; 116if (value<=0 && value!=System.Threading.Timeout.Infinite) { 129if (value<=0 && value!=System.Threading.Timeout.Infinite) { 204m_ReadTimeout = m_WriteTimeout = System.Threading.Timeout.Infinite; 259m_ReadTimeout = m_WriteTimeout = System.Threading.Timeout.Infinite; 2976if (responseDrainTimeoutMilliseconds == Timeout.Infinite) { 3158m_ReadTimeout = m_WriteTimeout = System.Threading.Timeout.Infinite; 3163m_ReadTimeout = m_WriteTimeout = System.Threading.Timeout.Infinite;
net\System\Net\_LazyAsyncResult.cs (1)
493waitHandle.WaitOne(Timeout.Infinite, false);
net\System\Net\_PooledStream.cs (1)
255if (timeout == System.Threading.Timeout.Infinite) {
net\System\Net\_TimerThread.cs (6)
138if (Duration == Timeout.Infinite) { 139return Timeout.Infinite; 202if (durationMilliseconds == Timeout.Infinite) { 225if (durationMilliseconds == Timeout.Infinite) { 398internal InfiniteTimerQueue() : base(Timeout.Infinite) { } 595internal InfiniteTimer() : base(Timeout.Infinite) { }
net\System\Net\Cache\_SingleItemRequestCache.cs (4)
330if (value<=0 && value!=System.Threading.Timeout.Infinite) 338if (value<=0 && value!=System.Threading.Timeout.Infinite) 485if (value<=0 && value!=System.Threading.Timeout.Infinite) 493if (value<=0 && value!=System.Threading.Timeout.Infinite)
net\System\Net\Cache\IERequestCache.cs (2)
632m_ReadTimeout = m_WriteTimeout = System.Threading.Timeout.Infinite; 821m_ReadTimeout = m_WriteTimeout = System.Threading.Timeout.Infinite;
net\System\Net\Configuration\SettingsSection.cs (1)
180this.downloadTimeout = (ts == TimeSpan.MaxValue || ts == TimeSpan.Zero) ? Timeout.Infinite : (int) ts.TotalMilliseconds;
net\System\Net\Configuration\TimeoutValidationAttribute.cs (1)
34if (timeout <= 0 && timeout != System.Threading.Timeout.Infinite) {
net\System\Net\connectionpool.cs (1)
766PutConnection(pooledStream, null, Timeout.Infinite);
net\System\Net\filewebrequest.cs (3)
198if ((value < 0) && (value != System.Threading.Timeout.Infinite)) { 376if ((Timeout != System.Threading.Timeout.Infinite) && !result.IsCompleted) { 405if ((Timeout != System.Threading.Timeout.Infinite) && !result.IsCompleted) {
net\System\Net\FtpWebRequest.cs (6)
368if (value<0 && value!=System.Threading.Timeout.Infinite) { 405if (value<=0 && value!=System.Threading.Timeout.Infinite) { 586if (Timeout != System.Threading.Timeout.Infinite) 906if (Timeout != System.Threading.Timeout.Infinite) 1093if (Timeout != System.Threading.Timeout.Infinite) 1111if (Timeout != System.Threading.Timeout.Infinite)
net\System\Net\HttpWebRequest.cs (3)
1024if (value<0 && value!=System.Threading.Timeout.Infinite) { 1063if (value<=0 && value!=System.Threading.Timeout.Infinite) { 1078if ((value < 0) && (value != System.Threading.Timeout.Infinite)) {
net\System\Net\NetWebProxyFinder.cs (1)
238request.Timeout = Timeout.Infinite;
net\System\Net\ServicePoint.cs (7)
124m_ConnectionLeaseTimeout = System.Threading.Timeout.Infinite; 155m_ConnectionLeaseTimeout = System.Threading.Timeout.Infinite; 427if ( !ValidationHelper.ValidateRange(value, Timeout.Infinite, Int32.MaxValue)) { 508if ( !ValidationHelper.ValidateRange(value, Timeout.Infinite, Int32.MaxValue)) { 526int timeLeft = value == Timeout.Infinite ? Timeout.Infinite : elapsed >= value ? 0 : value - elapsed; 1578return dnsRefreshTimeout != Timeout.Infinite &&
net\System\Net\ServicePointManager.cs (1)
438if ( !ValidationHelper.ValidateRange(value, Timeout.Infinite, Int32.MaxValue)) {
net\System\Net\Sockets\NetworkStream.cs (2)
271if (value<=0 && value!=System.Threading.Timeout.Infinite) { 303if (value <= 0 && value != System.Threading.Timeout.Infinite) {
net\System\Net\Sockets\Socket.cs (1)
7541m_RegisteredWait = ThreadPool.UnsafeRegisterWaitForSingleObject(m_AsyncEvent, s_RegisteredWaitCallback, this, Timeout.Infinite, true);
net\System\Net\WebSockets\ClientWebSocket.cs (2)
592if (value < Timeout.InfiniteTimeSpan) 596Timeout.InfiniteTimeSpan.ToString()));
net\System\Net\WebSockets\WebSocket.cs (1)
41defaultKeepAliveInterval = Timeout.InfiniteTimeSpan;
net\System\Net\WebSockets\WebSocketBase.cs (7)
2277m_KeepAliveTimer = new Timer(s_KeepAliveTimerElapsedCallback, webSocket, Timeout.Infinite, 2278Timeout.Infinite); 2280m_KeepAliveTimer.Change(keepAliveIntervalMilliseconds, Timeout.Infinite); 2286m_KeepAliveTimer = new Timer(s_KeepAliveTimerElapsedCallback, webSocket, Timeout.Infinite, 2287Timeout.Infinite); 2289m_KeepAliveTimer.Change(keepAliveIntervalMilliseconds, Timeout.Infinite); 2313m_KeepAliveTimer.Change(dueInMilliseconds, Timeout.Infinite);
net\System\Net\WebSockets\WebSocketHelpers.cs (2)
463if (keepAliveInterval < Timeout.InfiniteTimeSpan) // -1 466SR.GetString(SR.net_WebSockets_ArgumentOutOfRange_TooSmall, Timeout.InfiniteTimeSpan.ToString()));
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
746return Timeout.InfiniteTimeSpan;
regex\system\text\regularexpressions\Regex.cs (1)
77public static readonly TimeSpan InfiniteMatchTimeout = Timeout.InfiniteTimeSpan;
services\timers\system\timers\Timer.cs (2)
133timer = new System.Threading.Timer(callback, cookie, i, autoReset? i:Timeout.Infinite); 147timer.Change(i, autoReset? i :Timeout.Infinite );
sys\system\collections\concurrent\BlockingCollection.cs (25)
271TryAddWithNoTimeValidation(item, Timeout.Infinite, new CancellationToken()); 301TryAddWithNoTimeValidation(item, Timeout.Infinite, cancellationToken); 352/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> 376/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> 554if (!TryTake(out item, Timeout.Infinite, CancellationToken.None)) 578if (!TryTake(out item, Timeout.Infinite, cancellationToken)) 629/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> 652/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> 812TryAddToAny(collections, item, Timeout.Infinite, CancellationToken.None); 854TryAddToAny(collections, item, Timeout.Infinite, cancellationToken); 922/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> /// <returns>The index of the collection in the <paramref name="collections"/> 951/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> 999if (millisecondsTimeout != Timeout.Infinite) 1025while (millisecondsTimeout == Timeout.Infinite || timeout >= 0) 1057if (millisecondsTimeout != Timeout.Infinite) 1147Debug.Assert(originalWaitMillisecondsTimeout != Timeout.Infinite); 1217int returnValue = TryTakeFromAnyCore(collections, out item, Timeout.Infinite, true, cancellationToken); 1288/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> 1320/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> 1406if (millisecondsTimeout != Timeout.Infinite) 1418while (millisecondsTimeout == Timeout.Infinite || timeout >= 0) 1472if (millisecondsTimeout != Timeout.Infinite) 1679if (TryTakeWithNoTimeValidation(out item, Timeout.Infinite, cancellationToken, linkedTokenSource)) 1781if ((totalMilliseconds < 0 || totalMilliseconds > Int32.MaxValue) && (totalMilliseconds != Timeout.Infinite)) 1795if ((millisecondsTimeout < 0) && (millisecondsTimeout != Timeout.Infinite))
sys\system\threading\Barrier.cs (5)
532SignalAndWait(Timeout.Infinite, cancellationToken); 600/// cref="Timeout.Infinite"/>(-1) to wait indefinitely.</param> 622/// cref="Timeout.Infinite"/>(-1) to wait indefinitely.</param> 901int waitTime = totalTimeout == Timeout.Infinite ? maxWait : Math.Min(maxWait, totalTimeout); 906if (totalTimeout != Timeout.Infinite)
System.Core (8)
System\IO\Pipes\Pipe.cs (7)
1155Connect(Timeout.Infinite); 1166if (timeout < 0 && timeout != Timeout.Infinite) { 1233while (timeout == Timeout.Infinite || (elapsed = unchecked(Environment.TickCount - startTime)) < timeout); 1243return ConnectAsync(Timeout.Infinite, CancellationToken.None); 1251return ConnectAsync(Timeout.Infinite, cancellationToken); 1257if (timeout < 0 && timeout != Timeout.Infinite) { 1358while (timeout == Timeout.Infinite || (elapsed = unchecked(Environment.TickCount - startTime)) < timeout);
System\Linq\Parallel\Scheduling\Scheduling.cs (1)
53internal const int ZOMBIED_PRODUCER_TIMEOUT = Timeout.Infinite;
System.Data (24)
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (6)
850Timer t = new Timer(new TimerCallback(this.ErrorCallback), null, Timeout.Infinite, Timeout.Infinite); 1097if (next.DueTime == Timeout.Infinite) { 1098delay = unchecked((uint)Timeout.Infinite); 1181waitForMultipleObjectsTimeout = unchecked((uint)Timeout.Infinite); 1203CreationTimeout == 0 ? Timeout.Infinite : ADP.TimerCurrent() + ADP.TimerFromSeconds(CreationTimeout/1000),
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (1)
731_retryTimer = new Timer(new TimerCallback(Restart), null, _defaultWaitforTimeout, Timeout.Infinite);
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (4)
104_timeoutTimer = new Timer(new TimerCallback(TimeoutTimerCallback), null, Timeout.Infinite, Timeout.Infinite); 368_timeoutTimer.Change(Timeout.Infinite, Timeout.Infinite);
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (2)
34_readTimeout = Timeout.Infinite; 77if ((value > 0) || (value == Timeout.Infinite))
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
178Task<int> getBytesTask = reader.GetBytesAsync(_columnIndex, byteBuffer, byteBufferUsed, byteBuffer.Length - byteBufferUsed, Timeout.Infinite, _disposalTokenSource.Token, out bytesRead);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
154task.Wait(timeout > 0 ? (1000 * timeout) : Timeout.Infinite);
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (1)
148timeout = Timeout.Infinite; // -1 == native SNIOPEN_TIMEOUT_VALUE / INFINITE
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (8)
2141_networkPacketTimeout = new Timer(OnTimeout, null, Timeout.Infinite, Timeout.Infinite); 2149ChangeNetworkPacketTimeout(msecsRemaining, Timeout.Infinite); 2194ChangeNetworkPacketTimeout(Timeout.Infinite, Timeout.Infinite); 2198ChangeNetworkPacketTimeout(0, Timeout.Infinite); 2489ChangeNetworkPacketTimeout(Timeout.Infinite, Timeout.Infinite);
System.Data.Entity (2)
System\Data\Common\QueryCache\QueryCacheManager.cs (2)
432this._timer.Change(Timeout.Infinite, Timeout.Infinite);
System.Data.Linq (14)
Mapping\AttributedMetaModel.cs (7)
114@lock.AcquireReaderLock(Timeout.Infinite); 126@lock.AcquireWriterLock(Timeout.Infinite); 160@lock.AcquireWriterLock(Timeout.Infinite); 210@lock.AcquireReaderLock(Timeout.Infinite); 219@lock.AcquireWriterLock(Timeout.Infinite); 269@lock.AcquireReaderLock(Timeout.Infinite); 285@lock.AcquireWriterLock(Timeout.Infinite);
Mapping\MappedMetaModel.cs (5)
60@lock.AcquireWriterLock(Timeout.Infinite); 186@lock.AcquireReaderLock(Timeout.Infinite); 195@lock.AcquireWriterLock(Timeout.Infinite); 268@lock.AcquireReaderLock(Timeout.Infinite); 288@lock.AcquireWriterLock(Timeout.Infinite);
Mapping\MappingSource.cs (2)
60this.rwlock.AcquireReaderLock(Timeout.Infinite); 70this.rwlock.AcquireWriterLock(Timeout.Infinite);
System.Drawing (7)
commonui\System\Drawing\ImageAnimator.cs (7)
112rwImgListLock.AcquireReaderLock(Timeout.Infinite); 157rwImgListLock.AcquireReaderLock(Timeout.Infinite); 205lockDowngradeCookie = rwImgListLock.UpgradeToWriterLock(Timeout.Infinite); 208rwImgListLock.AcquireWriterLock(Timeout.Infinite); 290lockDowngradeCookie = rwImgListLock.UpgradeToWriterLock(Timeout.Infinite); 293rwImgListLock.AcquireWriterLock(Timeout.Infinite); 340rwImgListLock.AcquireReaderLock(Timeout.Infinite);
System.Runtime.Remoting (2)
channels\http\httpclientchannel.cs (2)
59private int _timeout = System.Threading.Timeout.Infinite; // default timeout is infinite 444private int _timeout = System.Threading.Timeout.Infinite; // timeout value in milliseconds (only used if greater than 0)
System.ServiceModel (8)
System\ServiceModel\Channels\HttpPipeline.cs (1)
568this.cancellationTokenSource.CancelAfter(Timeout.Infinite);
System\ServiceModel\Channels\OverlappedContext.cs (3)
91ThreadPool.UnsafeRegisterWaitForSingleObject(this.rootedHolder.EventHolder, OverlappedContext.cleanupCallback, this, Timeout.Infinite, true); 210this.registration = ThreadPool.UnsafeRegisterWaitForSingleObject(this.completionEvent, OverlappedContext.eventCallback, this, Timeout.Infinite, true); 289ThreadPool.UnsafeRegisterWaitForSingleObject(this.completionEvent, OverlappedContext.cleanupCallback, this, Timeout.Infinite, true);
System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
91if (value < TimeSpan.Zero && value != Timeout.InfiniteTimeSpan)
System\ServiceModel\Transactions\TransactionCache.cs (3)
67cacheLock.AcquireWriterLock(Timeout.Infinite); 96cacheLock.AcquireWriterLock(Timeout.Infinite); 125cacheLock.AcquireReaderLock(Timeout.Infinite);
System.ServiceModel.Internals (4)
System\Runtime\AsyncWaitHandle.cs (1)
125if (!Monitor.Wait(syncObject, Timeout.Infinite))
System\Runtime\TaskExtensions.cs (1)
147return task.Wait(Timeout.Infinite);
System\Runtime\TimeoutHelper.cs (2)
38if (milliseconds == Timeout.Infinite) 52return Timeout.Infinite;
System.Transactions (8)
System\Transactions\Oletx\OletxResourceManager.cs (4)
623Timeout.Infinite 653if ( !this.reenlistThreadTimer.Change( 0, Timeout.Infinite )) 929if ( !localTimer.Change( 10000, Timeout.Infinite )) 944if ( !localTimer.Change( 10000, Timeout.Infinite ))
System\Transactions\Oletx\OletxTransactionManager.cs (1)
1040OletxTransactionManager.resourceManagerHashTableLock.AcquireReaderLock( Timeout.Infinite );
System\Transactions\TransactionTable.cs (3)
172this.timer = new Timer( new TimerCallback(ThreadTimer), null, Timeout.Infinite, this.timerInterval ); 468if (!this.timer.Change(Timeout.Infinite, Timeout.Infinite))
System.Web (3)
Hosting\HostingEnvironment.cs (1)
1545}, null, Timeout.Infinite, executeOnlyOnce: true);
Management\webeventbuffer.cs (2)
260null, waitTimeMs, Timeout.Infinite); 263_timer.Change(waitTimeMs, Timeout.Infinite);
System.Web.Extensions (2)
UI\WebControls\Dynamic.cs (2)
288rwLock.AcquireReaderLock(Timeout.Infinite); 293LockCookie cookie = rwLock.UpgradeToWriterLock(Timeout.Infinite);
System.Web.Mobile (2)
UI\MobileControls\IndividualDeviceConfig.cs (2)
360_lock.AcquireWriterLock(Timeout.Infinite); 364_lock.AcquireReaderLock(Timeout.Infinite);
System.Web.Services (2)
System\Web\Services\Protocols\ClientProtocol.cs (2)
212set { timeout = (value < Threading.Timeout.Infinite) ? Threading.Timeout.Infinite : value; }
System.Workflow.Runtime (9)
DebugEngine\DebugController.cs (4)
391this.attachTimer.Change(Timeout.Infinite, Timeout.Infinite); 449this.attachTimer.Change(Timeout.Infinite, Timeout.Infinite);
DebugEngine\DebugControllerThread.cs (1)
166Thread.Sleep(Timeout.Infinite);
Hosting\DefaultWorkflowSchedulerService.cs (1)
23private static TimeSpan infinite = new TimeSpan(Timeout.Infinite);
Hosting\ManualWorkflowSchedulerService.cs (1)
56private static TimeSpan infinite = new TimeSpan(Timeout.Infinite);
Hosting\SqlWorkflowPersistenceService.cs (2)
694TimeSpan infinite = new TimeSpan(Timeout.Infinite); 1196private TimeSpan infinite = new TimeSpan(Timeout.Infinite);
System.Xml (1)
System\Xml\Schema\XmlSchemaCollection.cs (1)
33private int timeout = Timeout.Infinite;