221 references to MaxValue
SMSvcHost (2)
System\ServiceModel\Activation\SharingService.cs (1)
49customBinding.ReceiveTimeout = TimeSpan.MaxValue;
System\ServiceModel\Activation\WorkerProcess.cs (1)
191((IContextChannel)this.connectionDuplicator).OperationTimeout = TimeSpan.MaxValue;
System (16)
net\System\Net\_PooledStream.cs (1)
256connectionLifetime = TimeSpan.MaxValue;
net\System\Net\Cache\_Rfc2616CacheValidators.cs (6)
100if (ctx.Policy.MaxAge != TimeSpan.MaxValue) { 509TimeSpan age = TimeSpan.MaxValue; 537if (ctx.CacheAge > age || age == TimeSpan.MaxValue) { 891if (ctx.Policy.MaxAge != TimeSpan.MaxValue) 909if (adjustedMaxAge < TimeSpan.MaxValue - ctx.Policy.MaxStale) 915adjustedMaxAge = TimeSpan.MaxValue;
net\System\Net\Cache\FtpRequestCacheValidator.cs (1)
151TimeSpan age = TimeSpan.MaxValue;
net\System\Net\Cache\RequestCacheEntry.cs (1)
64m_MaxStale = TimeSpan.MaxValue;
net\System\Net\Cache\RequestCachePolicy.cs (2)
150private TimeSpan m_MaxAge = TimeSpan.MaxValue; 275(m_MaxAge == TimeSpan.MaxValue? string.Empty: " MaxAge:" + m_MaxAge.ToString()) +
net\System\Net\Configuration\HttpCachePolicyElement.cs (1)
87new ConfigurationProperty(ConfigurationStrings.MaximumAge, typeof(TimeSpan), TimeSpan.MaxValue,
net\System\Net\Configuration\SettingsSection.cs (1)
180this.downloadTimeout = (ts == TimeSpan.MaxValue || ts == TimeSpan.Zero) ? Timeout.Infinite : (int) ts.TotalMilliseconds;
net\System\Net\Configuration\WebProxyScriptElement.cs (1)
93new TimeSpanValidator(new TimeSpan(0, 0, 0), TimeSpan.MaxValue, false),
net\System\Net\FtpWebRequest.cs (1)
1669return (PooledStream) new FtpControlStream(pool, TimeSpan.MaxValue, false);
net\System\Net\mail\smtpconnection.cs (1)
21return (PooledStream)new SmtpPooledStream(pool, TimeSpan.MaxValue, false);
System.Activities (7)
System\Activities\ActivityDefaults.cs (2)
17public static TimeSpan InvokeTimeout = TimeSpan.MaxValue; 22public static TimeSpan InternalSaveTimeout = TimeSpan.MaxValue;
System\Activities\AsyncOperationContext.cs (1)
112completeData, TimeSpan.MaxValue, onResumeAsyncCodeActivityBookmark, this.executor);
System\Activities\Hosting\WorkflowInstanceProxy.cs (1)
37return BeginResumeBookmark(bookmark, value, TimeSpan.MaxValue, callback, state);
System\Activities\Statements\DurableTimerExtension.cs (2)
88if (timeout < TimeSpan.MaxValue) 161result = targetInstance.BeginResumeBookmark(timerBookmark, null, TimeSpan.MaxValue,
System\Activities\WorkflowInvoker.cs (1)
208IAsyncResult result = context.WorkflowApplication.BeginCancel(TimeSpan.MaxValue, cancelCallback, context);
System.Activities.DurableInstancing (4)
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (4)
183double lockBuffer = Math.Min(SqlWorkflowInstanceStoreConstants.LockOwnerTimeoutBuffer.TotalSeconds, (TimeSpan.MaxValue.Subtract(this.HostLockRenewalPeriod)).TotalSeconds); 501this.BeginTryCommandInternal(null, command, TimeSpan.MaxValue, this.unlockInstanceCallback, command); 630this.BeginTryCommandInternal(null, command, TimeSpan.MaxValue, unlockInstanceCallback, command); 682BackoffTimeoutHelper = new BackoffTimeoutHelper(TimeSpan.MaxValue)
System.Configuration (8)
System\Configuration\InfiniteTimeSpanConverter.cs (2)
27if ((TimeSpan)value == TimeSpan.MaxValue) { 39return TimeSpan.MaxValue;
System\Configuration\TimeSpanMinutesOrInfiniteConverter.cs (2)
26if ((TimeSpan)value == TimeSpan.MaxValue) { 39return TimeSpan.MaxValue;
System\Configuration\TimeSpanSecondsOrInfiniteConverter.cs (2)
26if ((TimeSpan)value == TimeSpan.MaxValue) { 38return TimeSpan.MaxValue;
System\Configuration\TimeSpanValidator.cs (1)
31private TimeSpan _maxValue = TimeSpan.MaxValue;
System\Configuration\TimeSpanValidatorAttribute.cs (1)
27private TimeSpan _max = TimeSpan.MaxValue;
System.Core (2)
System\Diagnostics\Eventing\Reader\EventLogReader.cs (2)
143if (ts == TimeSpan.MaxValue) 166return ReadEvent(TimeSpan.MaxValue);
System.Data (1)
fx\src\data\System\Data\Common\TimeSpanStorage.cs (1)
31TimeSpan min = TimeSpan.MaxValue;
System.IdentityModel (4)
System\IdentityModel\Configuration\TimeSpanOrInfiniteConverter.cs (2)
27if ((TimeSpan)value == TimeSpan.MaxValue) 41return TimeSpan.MaxValue;
System\IdentityModel\Configuration\TimeSpanOrInfiniteValidator.cs (1)
19if (value.GetType() == typeof(TimeSpan) && (TimeSpan)value == TimeSpan.MaxValue)
System\IdentityModel\Tokens\SecurityTokenHandlerConfiguration.cs (1)
52public static readonly TimeSpan DefaultTokenReplayCacheExpirationPeriod = TimeSpan.MaxValue;
System.Management (2)
ManagementDatetime.cs (1)
319 /// <see cref='System.TimeSpan.MaxValue'/> then <see cref='System.ArgumentOutOfRangeException'/> is thrown.
managementoptions.cs (1)
130public static readonly TimeSpan InfiniteTimeout = TimeSpan.MaxValue;
System.Runtime.DurableInstancing (2)
System\Runtime\DurableInstancing\InstanceHandle.cs (1)
1041if (this.timeout != TimeSpan.Zero && this.timeout != TimeSpan.MaxValue)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (1)
230AsyncWaitHandle wait = InitiateBindReclaimedLockHelper("CreateBindReclaimedLockException", instanceVersion, TimeSpan.MaxValue);
System.ServiceModel (94)
System\ServiceModel\Channels\ChannelDemuxer.cs (2)
674result = this.BeginReceive(TimeSpan.MaxValue, onReceiveComplete, this); 1711result = this.innerListener.BeginAcceptChannel(TimeSpan.MaxValue, onAcceptComplete, this);
System\ServiceModel\Channels\ChannelReliableSession.cs (1)
762return TimeSpan.MaxValue;
System\ServiceModel\Channels\DatagramAdapter.cs (4)
137result = this.listener.BeginAcceptChannel(TimeSpan.MaxValue, acceptCallbackDelegate, this); 664if (timeout != TimeSpan.MaxValue) 770return channel.BeginReceive(TimeSpan.MaxValue, callback, state); 859return channel.BeginReceiveRequest(TimeSpan.MaxValue, callback, state);
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1720if (timeout == TimeSpan.MaxValue)
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
1057TimeSpan timeSpan = this.CanTimeout ? TimeoutHelper.FromMilliseconds(this.ReadTimeout) : TimeSpan.MaxValue; 3708return SocketConnectionInitiator.ConvertConnectException((SocketException)webException.InnerException, request.RequestUri, TimeSpan.MaxValue, webException);
System\ServiceModel\Channels\IdlingCommunicationPool.cs (2)
46if (idleTimeout != TimeSpan.MaxValue || leaseTimeout != TimeSpan.MaxValue)
System\ServiceModel\Channels\Msmq4PoisonHandler.cs (2)
85handler.retryQueueForPeek.BeginPeek(handler.retryQueueMessage, TimeSpan.MaxValue, onPeekCompleted, handler); 320this.retryQueueForPeek.BeginPeek(this.retryQueueMessage, TimeSpan.MaxValue, onPeekCompleted, this);
System\ServiceModel\Channels\MsmqInputSessionChannel.cs (4)
188this.sessiongramReceiveContext.Abandon(TimeSpan.MaxValue); 196this.sessiongramReceiveContext.Abandon(TimeSpan.MaxValue); 478this.sessiongramReceiveContext.Abandon(TimeSpan.MaxValue); 492this.sessiongramReceiveContext.Complete(TimeSpan.MaxValue);
System\ServiceModel\Channels\MsmqOutputMessage.cs (1)
60if (factory.TimeToLive != TimeSpan.MaxValue)
System\ServiceModel\Channels\NamedPipeConnectionPool.cs (1)
29: base(settings, TimeSpan.MaxValue)
System\ServiceModel\Channels\OneWayChannelFactory.cs (1)
558channel.BeginReceive(TimeSpan.MaxValue, this.onReceive, channel);
System\ServiceModel\Channels\OneWayChannelListener.cs (1)
734result = this.innerChannelListener.BeginAcceptChannel(TimeSpan.MaxValue, onAcceptInnerChannel, this);
System\ServiceModel\Channels\PeerService.cs (1)
135this.binding.ReceiveTimeout = TimeSpan.MaxValue;
System\ServiceModel\Channels\PipeConnection.cs (2)
269if (this.readTimeout != TimeSpan.MaxValue) 856if (this.readTimeout != TimeSpan.MaxValue && !this.ReadTimer.Cancel())
System\ServiceModel\Channels\ReliableChannelBinder.cs (1)
2735TimeoutHelper.WaitOne(this.completeEvent, TimeSpan.MaxValue);
System\ServiceModel\Channels\ReliableChannelListener.cs (5)
868IAsyncResult result = this.typedListener.BeginAcceptChannel(TimeSpan.MaxValue, onAcceptCompleted, this); 1296return channel.BeginTryReceive(TimeSpan.MaxValue, callback, state); 1334return channel.BeginTryReceiveRequest(TimeSpan.MaxValue, callback, state); 1588return channel.BeginTryReceive(TimeSpan.MaxValue, callback, channel); 1626return channel.BeginTryReceiveRequest(TimeSpan.MaxValue, callback, channel);
System\ServiceModel\Channels\ReliableDuplexSessionChannel.cs (1)
1301IAsyncResult result = this.binder.BeginTryReceive(TimeSpan.MaxValue, onReceiveCompleted, this);
System\ServiceModel\Channels\ReliableInputSessionChannel.cs (1)
364IAsyncResult result = this.Binder.BeginTryReceive(TimeSpan.MaxValue, onReceiveCompleted, this);
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
2507if (this.timeout != TimeSpan.MaxValue)
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (3)
1067this.Binder.BeginTryReceive(TimeSpan.MaxValue, onReceiveCompleted, this); 1080this.Binder.BeginTryReceive(TimeSpan.MaxValue, onReceiveCompleted, this); 1101this.Binder.BeginTryReceive(TimeSpan.MaxValue, onReceiveCompleted, this);
System\ServiceModel\Channels\ReliableReplySessionChannel.cs (1)
1235IAsyncResult result = this.binder.BeginTryReceive(TimeSpan.MaxValue, onReceiveCompleted, this);
System\ServiceModel\Channels\ServerReliableChannelBinder.cs (1)
494IAsyncResult result = this.listener.BeginAcceptChannel(TimeSpan.MaxValue,
System\ServiceModel\Channels\ServiceChannel.cs (5)
495manager.CallOnce(TimeSpan.MaxValue, null); 505return manager.BeginCallOnce(TimeSpan.MaxValue, null, callback, state); 2173if (timeout != TimeSpan.MaxValue) 2515if (timeout != TimeSpan.MaxValue) 2593if (binder.HasSession && (idle != TimeSpan.MaxValue))
System\ServiceModel\Channels\SharedConnectionListener.cs (4)
76return connectionQueue.BeginDequeue(TimeSpan.MaxValue, callback, state); 269new BackoffTimeoutHelper(TimeSpan.MaxValue, TimeSpan.FromMinutes(5), TimeSpan.FromSeconds(30)); 870if (this.proxy.validateUriCallThrottle.EnterAsync(TimeSpan.MaxValue, onEnterThrottle, this)) 1252new BackoffTimeoutHelper(TimeSpan.MaxValue, TimeSpan.FromMilliseconds(pollMax), TimeSpan.FromMilliseconds(pollMin));
System\ServiceModel\Channels\SocketConnection.cs (13)
93this.asyncSendTimeout = this.asyncReceiveTimeout = TimeSpan.MaxValue; 94this.socketSyncSendTimeout = this.socketSyncReceiveTimeout = TimeSpan.MaxValue; 570ConvertSendException(socketException, TimeSpan.MaxValue, this.socketSyncSendTimeout), ExceptionEventType); 696TransferOperation.Undefined, false, null, TransferOperation.Undefined, null, TimeSpan.MaxValue); 890ConvertSendException(socketException, TimeSpan.MaxValue, this.asyncSendTimeout), ExceptionEventType); 950this.asyncWriteException = ConvertSendException(socketException, TimeSpan.MaxValue, this.asyncSendTimeout); 1210throw DiagnosticUtility.ExceptionUtility.ThrowHelper(ConvertReceiveException(socketException, TimeSpan.MaxValue, this.asyncReceiveTimeout), ExceptionEventType); 1279this.asyncReadException = ConvertReceiveException(socketException, TimeSpan.MaxValue, this.asyncReceiveTimeout); 1315asyncReadException = ConvertReceiveException(socketException, TimeSpan.MaxValue, this.asyncReceiveTimeout); 1456if (timeout == TimeSpan.MaxValue) 1493if (timeout == TimeSpan.MaxValue) 1596if (timeSpent == TimeSpan.MaxValue) 1617if (timeSpent == TimeSpan.MaxValue)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
472thisPtr.webSocketStream.WriteEndOfMessage(TimeSpan.MaxValue); 700WebSocketHelper.ThrowCorrectException(ex, TimeSpan.MaxValue, WebSocketHelper.ReceiveOperation); 731this.pendingException = WebSocketHelper.ConvertAndTraceException(ex, TimeSpan.MaxValue, WebSocketHelper.ReceiveOperation);
System\ServiceModel\Configuration\TimeSpanOrInfiniteConverter.cs (2)
27if ((TimeSpan)value == TimeSpan.MaxValue) 41return TimeSpan.MaxValue;
System\ServiceModel\Configuration\TimeSpanOrInfiniteValidator.cs (1)
19if (value.GetType() == typeof(TimeSpan) && (TimeSpan)value == TimeSpan.MaxValue)
System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (1)
192if (binder.channelBinder.TryReceive(TimeSpan.MaxValue, out requestContext))
System\ServiceModel\Dispatcher\ChannelHandler.cs (3)
135Fx.Assert((this.idleManager != null) == (this.binder.HasSession && this.listener.ChannelDispatcher.DefaultCommunicationTimeouts.ReceiveTimeout != TimeSpan.MaxValue), "idle manager is present only when there is a session with a finite receive timeout"); 380return this.receiver.BeginTryReceive(TimeSpan.MaxValue, ChannelHandler.onAsyncReceiveComplete, this); 1467while (!TryReceive(TimeSpan.MaxValue, out request))
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
885if (timeout != TimeSpan.MaxValue) 1225result = this.innerChannel.BeginReceive(TimeSpan.MaxValue, receiveAsyncCallback, this);
System\ServiceModel\Dispatcher\ErrorHandlingAcceptor.cs (2)
200this.binder.Listener.WaitForChannel(TimeSpan.MaxValue); 222return this.binder.Listener.BeginWaitForChannel(TimeSpan.MaxValue, callback, state);
System\ServiceModel\Dispatcher\ErrorhandlingReceiver.cs (2)
186this.binder.WaitForMessage(TimeSpan.MaxValue); 208return this.binder.BeginWaitForMessage(TimeSpan.MaxValue, callback, state);
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
1085receiveContext.Complete(this, ref rpc, TimeSpan.MaxValue, rpc.Transaction.Current);
System\ServiceModel\Dispatcher\ListenerHandler.cs (1)
288IAsyncResult result = this.acceptor.BeginTryAccept(TimeSpan.MaxValue, ListenerHandler.acceptCallback, this);
System\ServiceModel\Dispatcher\MessageRpc.cs (2)
225TimeSpan.MaxValue, 303TimeSpan.MaxValue,
System\ServiceModel\Dispatcher\ReceiveContextRPCFacet.cs (2)
52TimeSpan.MaxValue, 326TimeSpan.MaxValue,
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (2)
102Fx.Assert(TimeSpan.Parse(defaultClientMaxTokenCachingTimeString, CultureInfo.InvariantCulture) == TimeSpan.MaxValue, "TimeSpan value not correct"); 103return TimeSpan.MaxValue;
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (1)
523if (this.negotiationTimeout < TimeSpan.MaxValue)
System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
1073if (this.MaxClockSkew == TimeSpan.MaxValue || this.ReplayWindow == TimeSpan.MaxValue)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (1)
3306return this.BeginReceiveInternal(TimeSpan.MaxValue, null, onReceive, this);
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (1)
25internal static readonly TimeSpan defaultSessionTokenLifetime = TimeSpan.MaxValue;
System\ServiceModel\Security\SecuritySessionServerSettings.cs (3)
546if (this.inactivityTimeout < TimeSpan.MaxValue) 768handler.BeginReceive(TimeSpan.MaxValue); 1016this.BeginReceive(TimeSpan.MaxValue);
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (1)
85authenticator.SessionTokenLifetime = TimeSpan.MaxValue;
System.ServiceModel.Activities (24)
System\ServiceModel\Activities\ChannelCacheDefaults.cs (1)
24internal static TimeSpan DefaultFactoryLeaseTimeout = TimeSpan.MaxValue;
System\ServiceModel\Activities\Configuration\WorkflowIdleElement.cs (3)
61properties.Add(new ConfigurationProperty(TimeToPersistString, typeof(TimeSpan), TimeSpan.MaxValue, new TimeSpanOrInfiniteConverter(), new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue), ConfigurationPropertyOptions.None)); 62properties.Add(new ConfigurationProperty(TimeToUnloadString, typeof(TimeSpan), TimeSpan.Parse(WorkflowIdleBehavior.defaultTimeToUnloadString, CultureInfo.InvariantCulture), new TimeSpanOrInfiniteConverter(), new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue), ConfigurationPropertyOptions.None));
System\ServiceModel\Activities\CorrelationRequestContext.cs (1)
71return this.receivedReplyEvent.WaitAsync(onReceiveReply, state, TimeSpan.MaxValue);
System\ServiceModel\Activities\Description\WorkflowIdleBehavior.cs (1)
17internal static TimeSpan defaultTimeToPersist = TimeSpan.MaxValue;
System\ServiceModel\Activities\Dispatcher\BufferedReceiveManager.cs (1)
270TimeSpan.MaxValue, onEndAbandon, receiveContext);
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
177return new ControlOperationAsyncResult(this, inputs, notification, TimeSpan.MaxValue, callback, state); 760IAsyncResult result = this.receiveContext.BeginAbandon(TimeSpan.MaxValue, this.PrepareAsyncCompletion(handleEndAbandonReceiveContext), this);
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (1)
1450IAsyncResult result = this.currentInstance.BeginRun(null, TimeSpan.MaxValue, PrepareAsyncCompletion(handleEndRunInstance), this);
System\ServiceModel\Activities\Dispatcher\TransactionContext.cs (1)
147result = this.context.durableInstance.BeginPersist(TimeSpan.MaxValue, PrepareAsyncCompletion(PrepareAsyncResult.onEndPersist), this);
System\ServiceModel\Activities\Dispatcher\TransactionWaitAsyncResult.cs (1)
64if (timeout != TimeSpan.MaxValue)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (12)
158this.acquireLockTimeout = TimeSpan.MaxValue; 1602return new UnloadOrPersistAsyncResult(this, PersistenceOperation.Save, true, false, TimeSpan.MaxValue, callback, state); 2188IAsyncResult result = this.BeginReleaseInstance(false, TimeSpan.MaxValue, handleEndReleaseInstance, this); 5661this.unloadEnabled = this.instance.persistenceContext.CanPersist && this.timeToUnload < TimeSpan.MaxValue; 5731IAsyncResult result = this.instance.BeginPersist(true, TimeSpan.MaxValue, onPersistCallback, this); 5815IAsyncResult result = BeginUnlockAndAbort(TimeSpan.MaxValue, onUnlockAndAbortCallback, this); 5823IAsyncResult result = this.instance.BeginReleaseInstance(true, TimeSpan.MaxValue, onUnloadCallback, this); 6054result = this.instance.BeginCancel(null, TimeSpan.MaxValue, operationCallback, data); 6058result = this.instance.BeginTerminate(data.Exception, null, TimeSpan.MaxValue, operationCallback, data); 6066result = this.instance.BeginAbandonAndSuspend(data.Exception, TimeSpan.MaxValue, operationCallback, data); 6070result = this.instance.BeginAbandon(data.Exception, TimeSpan.MaxValue, operationCallback, data); 6076result = this.instance.BeginAbandon(data.Exception, TimeSpan.MaxValue, operationCallback, data);
System.ServiceModel.Discovery (12)
System\ServiceModel\Discovery\Configuration\AnnouncementEndpointElement.cs (1)
76new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\DiscoveryEndpointElement.cs (1)
90new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\FindCriteriaElement.cs (1)
151new TimeSpanOrInfiniteValidator(TimeSpan.FromMilliseconds(1), TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\UdpAnnouncementEndpointElement.cs (1)
89new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\UdpDiscoveryEndpointElement.cs (1)
105new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\DiscoveryClient.cs (1)
390if ((criteria.MaxResults == int.MaxValue) && (criteria.Duration.Equals(TimeSpan.MaxValue)))
System\ServiceModel\Discovery\FindCriteria.cs (2)
300this.duration = TimeSpan.MaxValue; 381if (this.duration != TimeSpan.MaxValue)
System\ServiceModel\Discovery\RandomDelayQueuedSendsAsyncResult.cs (1)
102(thisPtr, t, c, s) => thisPtr.itemQueue.BeginDequeue(TimeSpan.MaxValue, c, s),
System\ServiceModel\Discovery\ResolveCriteria.cs (2)
111this.duration = TimeSpan.MaxValue; 149if (this.duration != TimeSpan.MaxValue)
System\ServiceModel\Discovery\SerializationUtility.cs (1)
224TimeSpan timeout = TimeSpan.MaxValue;
System.ServiceModel.Internals (17)
System\Runtime\AsyncWaitHandle.cs (2)
57if (timeout != TimeSpan.MaxValue) 123if (timeout == TimeSpan.MaxValue)
System\Runtime\BackoffTimeoutHelper.cs (1)
54if (timeout == TimeSpan.MaxValue)
System\Runtime\Collections\ObjectCache.cs (2)
44this.idleTimeoutEnabled = (settings.IdleTimeout != TimeSpan.MaxValue); 47this.leaseTimeoutEnabled = (settings.LeaseTimeout != TimeSpan.MaxValue);
System\Runtime\InputQueue.cs (2)
813if (timeout != TimeSpan.MaxValue) 871if (timeout != TimeSpan.MaxValue)
System\Runtime\IOThreadTimer.cs (1)
97if (timeFromNow != TimeSpan.MaxValue)
System\Runtime\TaskExtensions.cs (1)
145if (timeout == TimeSpan.MaxValue)
System\Runtime\TimeoutHelper.cs (8)
23this.deadlineSet = (timeout == TimeSpan.MaxValue); 33return (timeout > TimeoutHelper.MaxWait) && (timeout != TimeSpan.MaxValue); 40return TimeSpan.MaxValue; 50if (timeout == TimeSpan.MaxValue) 102if (timeout == TimeSpan.MaxValue) 104return TimeSpan.MaxValue; 119return TimeSpan.MaxValue; 177if (timeout == TimeSpan.MaxValue)
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpPage.cs (1)
102HttpContext.Current.Response.Cache.SetMaxAge(TimeSpan.MaxValue);
System.Transactions (2)
System\Transactions\Configuration\DefaultSettingsSection.cs (1)
65new TimeSpanValidator( TimeSpan.Zero, TimeSpan.MaxValue ),
System\Transactions\Configuration\MachineSettingsSection.cs (1)
57new TimeSpanValidator( TimeSpan.Zero, TimeSpan.MaxValue ),
System.Web (15)
CachedPathData.cs (1)
82else if (slidingExp == TimeSpan.MaxValue) {
Configuration\FormsAuthenticationConfiguration.cs (1)
141new TimeSpanValidator(TimeSpan.FromMinutes(1), TimeSpan.MaxValue),
Configuration\HostingEnvironmentSection.cs (2)
22internal static readonly TimeSpan DefaultIdleTimeout = TimeSpan.MaxValue; // default is Infinite 49new TimeSpanValidator(TimeSpan.Zero, TimeSpan.MaxValue),
Configuration\MembershipSection.cs (1)
99new TimeSpanValidator(TimeSpan.FromMinutes(1), TimeSpan.MaxValue),
Configuration\ProcessModelSection.cs (4)
87TimeSpan.MaxValue, 94TimeSpan.MaxValue, 201TimeSpan.MaxValue, 208TimeSpan.MaxValue,
Configuration\SessionStateSection.cs (1)
156new TimeSpanValidator(TimeSpan.FromMinutes(1), TimeSpan.MaxValue),
IdleTimeoutMonitor.cs (1)
58if (_idleTimeout == TimeSpan.MaxValue)
Management\webeventbuffer.cs (2)
145if (bufferModeInfo.RegularFlushInterval == TimeSpan.MaxValue) { 157if (bufferModeInfo.UrgentFlushInterval == TimeSpan.MaxValue) {
UI\PartialCachingControl.cs (2)
301return TimeSpan.MaxValue; 307if (value == TimeSpan.MaxValue) {
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
1119this.Timeout = TimeSpan.MaxValue;
System.Workflow.Runtime (2)
Hosting\SqlWorkflowPersistenceService.cs (2)
729if (_ownershipDelta == TimeSpan.MaxValue) 750_ownershipDelta = TimeSpan.MaxValue; // default is to never timeout
System.WorkflowServices (5)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (4)
144(value > TimeSpan.FromSeconds(int.MaxValue) && value != TimeSpan.MaxValue)) 191else if (this.lockTimeout == TimeSpan.MaxValue) 293if (timeout == TimeSpan.MaxValue) 703(timeout > SqlPersistenceProviderFactory.maxSecondsTimeSpan && timeout != TimeSpan.MaxValue))
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (1)
315return TimeSpan.MaxValue;