215 instantiations of TimeSpan
mscorlib (41)
system\appdomain.cs (1)
4795return new TimeSpan(i64ProcessorTime);
system\console.cs (1)
1766TimeSpan controlCWaitTime = new TimeSpan(0, 0, 30); // 30 seconds
system\currenttimezone.cs (3)
97TimeSpan offset = new TimeSpan(m_ticksOffset); 221delta = new TimeSpan(rawData[16] * TicksPerMinute); 239return new TimeSpan(TimeZone.CalculateUtcOffset(time, GetDaylightChanges(time.Year)).Ticks + m_ticksOffset);
system\datetime.cs (3)
1254return new TimeSpan(InternalTicks % TicksPerDay); 1333return new TimeSpan(InternalTicks - value.InternalTicks); 1504return new TimeSpan(d1.InternalTicks - d2.InternalTicks);
system\datetimeoffset.cs (2)
76offset = new TimeSpan(0); 312return new TimeSpan(0, m_offsetMinutes, 0);
system\globalization\datetimeparse.cs (8)
560result = new TimeSpan(hourOffset, minuteOffset, 0); 1062result.timeZoneOffset = new TimeSpan(0); 3029result = (new TimeSpan(hourOffset, minuteOffset, 0)); 3482result.timeZoneOffset = new TimeSpan(0); 3724TimeSpan tempTimeZoneOffset = new TimeSpan(0); 3744result.timeZoneOffset = new TimeSpan(0); 3767result.timeZoneOffset = new TimeSpan(0); 3772TimeSpan tempTimeZoneOffset = new TimeSpan(0);
system\globalization\juliancalendar.cs (1)
391return new DateTime(DateToTicks(year, month, day) + (new TimeSpan(0, hour, minute, second, millisecond)).Ticks);
system\resources\resourcereader.cs (2)
643return new TimeSpan(_store.ReadInt64()); 737return new TimeSpan(ticks);
system\runtime\remoting\soapinteroptypes.cs (1)
380return new TimeSpan(ticks);
system\runtime\serialization\formatters\binary\binaryparser.cs (1)
357return new TimeSpan(ReadInt64());
system\threading\timeout.cs (1)
21public static readonly TimeSpan InfiniteTimeSpan = new TimeSpan(0, 0, 0, 0, Timeout.Infinite);
system\timespan.cs (10)
66public static readonly TimeSpan Zero = new TimeSpan(0); 68public static readonly TimeSpan MaxValue = new TimeSpan(Int64.MaxValue); 69public static readonly TimeSpan MinValue = new TimeSpan(Int64.MinValue); 160return new TimeSpan(result); 201return new TimeSpan(_ticks >= 0? _ticks: -_ticks); 236return new TimeSpan((long)millis * TicksPerMillisecond); 251return new TimeSpan(-_ticks); 265return new TimeSpan(result); 269return new TimeSpan(value); 343return new TimeSpan(-t._ticks);
system\timezoneinfo.cs (6)
1094m_baseUtcOffset = new TimeSpan(0, -(zone.Bias), 0); 1382new TimeSpan(0, defaultBaseUtcOffset - timeZoneInformation.Bias, 0)); // Bias delta is all what we need from this rule 1406new TimeSpan(0, -timeZoneInformation.DaylightBias, 0), 1409new TimeSpan(0, defaultBaseUtcOffset - timeZoneInformation.Bias, 0)); 2815new TimeSpan(0, -(defaultTimeZoneInformation.Bias), 0), 3902return new TimeSpan(0 /* hours */, token /* minutes */, 0 /* seconds */);
system\variant.cs (1)
407return new TimeSpan(GetI8FromVar());
PresentationCore (6)
Core\CSharp\System\Windows\Media\Animation\AnimationTimeline.cs (1)
135return new TimeSpan(0, 0, 1);
Core\CSharp\System\Windows\Media\Animation\RepeatBehavior.cs (2)
58_repeatDuration = new TimeSpan(0); 70if (duration < new TimeSpan(0))
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (3)
80_globalTime = new TimeSpan(-1); 81_lastTickTime = new TimeSpan(-1); 84ParallelTimeline timeManagerTimeline = new ParallelTimeline(new TimeSpan(0), Duration.Forever);
PresentationFramework (13)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1143_throttleBackgroundTimer.Interval = new TimeSpan(0, 0, _throttleBackgroundSeconds);
src\Framework\MS\Internal\PtsHost\BackgroundFormatInfo.cs (1)
99_throttleBackgroundTimer.Interval = new TimeSpan(0, 0, (int)_throttleBackgroundSeconds);
src\Framework\System\Windows\Application.cs (1)
2049_browserCallbackSponsor = new SponsorHelper(lease, new TimeSpan(0, 5, 0));
src\Framework\System\Windows\Controls\AVElementHelper.cs (1)
69_position = new SettableState<TimeSpan>(new TimeSpan(0));
src\Framework\System\Windows\Controls\Control.cs (1)
501plainText = (string)Dispatcher.Invoke(DispatcherPriority.Send, new TimeSpan(0, 0, 0, 0, 20), new DispatcherOperationCallback(delegate(object o) {
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (1)
407Dispatcher.Invoke(DispatcherPriority.Send, new TimeSpan(0, 0, 0, 0, 20), new DispatcherOperationCallback(delegate(object o)
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (1)
351Dispatcher.Invoke(DispatcherPriority.Send, new TimeSpan(0, 0, 0, 0, 20), new DispatcherOperationCallback(delegate(object o)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
2924internal static TimeSpan AnimationDelayTime = new TimeSpan(0, 0, 0, 0, AnimationDelay);
src\Framework\System\Windows\Controls\Primitives\RangeBase.cs (1)
395Dispatcher.Invoke(DispatcherPriority.Send, new TimeSpan(0, 0, 0, 0, 20), new DispatcherOperationCallback(delegate(object o)
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (1)
314Dispatcher.Invoke(DispatcherPriority.Send, new TimeSpan(0, 0, 0, 0, 20), new DispatcherOperationCallback(delegate(object o)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10261bamlType.DefaultConstructor = delegate() { return new System.TimeSpan(); };
src\Framework\System\Windows\VisualTransition.cs (1)
90private Duration _generatedDuration = new Duration(new TimeSpan());
src\Framework\System\Windows\Window.cs (1)
6784_taskbarRetryTimer = new DispatcherTimer { Interval = new TimeSpan(0, 1, 0) };
System (22)
net\System\Net\_PooledStream.cs (1)
259connectionLifetime = new TimeSpan(0, 0, 0, 0, timeout);
net\System\Net\Configuration\WebProxyScriptElement.cs (1)
93new TimeSpanValidator(new TimeSpan(0, 0, 0), TimeSpan.MaxValue, false),
net\System\Net\HttpListenerTimeoutManager.cs (1)
70return new TimeSpan(0, 0, (int)timeouts[(int)type]);
net\System\Net\mail\SmtpDateTime.cs (10)
96tempTimeZoneOffsetLookup.Add("EDT", new TimeSpan(-4, 0, 0)); // -0400 97tempTimeZoneOffsetLookup.Add("EST", new TimeSpan(-5, 0, 0)); // -0500 98tempTimeZoneOffsetLookup.Add("CDT", new TimeSpan(-5, 0, 0)); // -0500 99tempTimeZoneOffsetLookup.Add("CST", new TimeSpan(-6, 0, 0)); // -0600 100tempTimeZoneOffsetLookup.Add("MDT", new TimeSpan(-6, 0, 0)); // -0600 101tempTimeZoneOffsetLookup.Add("MST", new TimeSpan(-7, 0, 0)); // -0700 102tempTimeZoneOffsetLookup.Add("PDT", new TimeSpan(-7, 0, 0)); // -0700 103tempTimeZoneOffsetLookup.Add("PST", new TimeSpan(-8, 0, 0)); // -0800 391timeZone = new TimeSpan((int) hours, (int) minutes, 0); 415TimeSpan sanitizedTimeSpan = new TimeSpan(span.Days, span.Hours, span.Minutes, 0, 0);
net\System\Net\ServicePoint.cs (1)
1579(m_LastDnsResolve + new TimeSpan(0, 0, 0, 0, dnsRefreshTimeout)) < DateTime.UtcNow;
regex\system\text\regularexpressions\Regex.cs (1)
326TimeSpan timeout = new TimeSpan(timeoutTicks);
security\system\security\cryptography\x509\x509certificate2.cs (1)
1142new TimeSpan(0, 0, 0), // default
security\system\security\cryptography\x509\x509certificate2collection.cs (1)
660new TimeSpan(0, 0, 0), // default
security\system\security\cryptography\x509\x509chainpolicy.cs (1)
134m_timeout = new TimeSpan(0, 0, 0); // default timeout
services\monitoring\system\diagnosticts\Process.cs (3)
2816return new TimeSpan(kernel); 2822return new TimeSpan(user); 2828return new TimeSpan(user + kernel);
services\monitoring\system\diagnosticts\Stopwatch.cs (1)
121get { return new TimeSpan( GetElapsedDateTimeTicks()); }
System.AddIn (1)
System\Addin\Hosting\AddInProcess.cs (1)
60private TimeSpan _startupTimeout = new TimeSpan(0, 0, 10);
System.Data (17)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
2427private static readonly TimeSpan x_timeMax = new TimeSpan(TimeSpan.TicksPerDay - 1);
fx\src\data\System\Data\Common\SQLConvert.cs (4)
555return new TimeSpan((Int64)(Int32)value); 557return new TimeSpan((Int64)value); 700return new TimeSpan((Int64)(Int32)value); 702return new TimeSpan((Int64)value);
fx\src\data\System\Data\Common\TimeSpanStorage.cs (2)
170return new TimeSpan((Int64)((Int32)value)); 173return new TimeSpan((Int64)value);
fx\src\data\System\Data\Filter\FunctionNode.cs (1)
480return new DateTimeOffset((DateTime)argumentValues[0], new TimeSpan((int)argumentValues[1], (int)argumentValues[2], 0));
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (1)
606return new TimeSpan(
fx\src\data\System\Data\ProviderBase\DbConnectionPoolOptions.cs (1)
36_loadBalanceTimeout = new TimeSpan(0, 0, loadBalanceTimeout);
fx\src\data\System\Data\Sql\SqlMetaData.cs (2)
1032return new TimeSpan(InternalAdjustTimeTicks(value.Ticks)); 1478private static readonly TimeSpan x_timeMax = new TimeSpan(TimeSpan.TicksPerDay - 1);
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (2)
402return new TimeSpan(_value._timeInfo.ticks); 414TimeSpan offset = new TimeSpan(0, _value._dateTimeOffsetInfo.offset, 0);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (2)
171private static readonly TimeSpan _dbAuthenticationContextLockedRefreshTimeSpan = new TimeSpan(hours: 0, minutes: 45, seconds: 00); 175private static readonly TimeSpan _dbAuthenticationContextUnLockedRefreshTimeSpan = new TimeSpan(hours: 0, minutes: 10, seconds: 00);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
220return new TimeSpan(value.m_day * TimeSpan.TicksPerDay +
System.Data.Entity (4)
System\Data\Common\EntitySql\AST\Literal.cs (3)
554TimeSpan offsetTimeSpan = new TimeSpan(offsetHours, offsetMinutes, 0); 593TimeSpan ts = new TimeSpan(hour, minute, second); 594ts = ts.Add(new TimeSpan(ticks));
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (1)
240value = new TimeSpan(temp.Ticks);
System.Data.Linq (1)
DbConvert.cs (1)
124return new TimeSpan((long)Convert.ChangeType(value, typeof(long), Globalization.CultureInfo.InvariantCulture));
System.Data.Services.Client (1)
System\Data\Services\Client\DataServiceContext.cs (1)
1962request.Timeout = (int)Math.Min(Int32.MaxValue, new TimeSpan(0, 0, this.timeout).TotalMilliseconds);
System.IdentityModel (2)
System\IdentityModel\Configuration\IdentityConfiguration.cs (1)
28public static readonly TimeSpan DefaultMaxClockSkew = new TimeSpan(0, 5, 0);
System\IdentityModel\Tokens\SecurityTokenHandlerConfiguration.cs (1)
42public static readonly TimeSpan DefaultMaxClockSkew = new TimeSpan(0, 5, 0); // 5 minutes
System.Management (2)
ManagementDatetime.cs (2)
391 timespan = new System.TimeSpan(days, hours, minutes, seconds, 0); 449 TimeSpan tsTemp = new TimeSpan(timespan.Days ,timespan.Hours,timespan.Minutes ,timespan.Seconds ,0);
System.Messaging (4)
System\Messaging\MessageQueue.cs (4)
120new CacheTable<string, string>("formatNameCache", 4, new TimeSpan(0, 0, 100)); // path -> formatname 123new CacheTable<QueueInfoKeyHolder, MQCacheableInfo>("queue info", 4, new TimeSpan(0, 0, 100)); // <formatname, accessMode> -> <readHandle. writeHandle, isTrans> 1583formatNameCache.ClearStale(new TimeSpan(0)); 1584queueInfoCache.ClearStale(new TimeSpan(0));
System.Runtime.Caching (1)
System\Caching\MemoryCache.cs (1)
26private static readonly TimeSpan OneYear = new TimeSpan(365, 0, 0, 0);
System.Runtime.Serialization (4)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (2)
48return new DateTimeOffset(value.UtcDateTime, new TimeSpan(0, value.OffsetMinutes, 0)); 56return deserialized.ToOffset(new TimeSpan(0, value.OffsetMinutes, 0));
System\Xml\ValueHandle.cs (1)
412return new TimeSpan(GetInt64());
System\Xml\XmlConverter.cs (1)
832TimeSpan ts = new TimeSpan(hourDelta, minuteDelta, 0);
System.Security (2)
system\security\cryptography\pkcs\signerinfo.cs (2)
402new TimeSpan(0, 0, 0), // default 693new TimeSpan(0, 0, 0),
System.ServiceModel (9)
System\ServiceModel\Channels\PeerHelpers.cs (3)
117this.maintainerRetryInterval = new TimeSpan(PeerTransportConstants.MaintainerRetryInterval * 10000); 118this.maintainerTimeout = new TimeSpan(PeerTransportConstants.MaintainerTimeout * 10000); 119this.unregisterTimeout = new TimeSpan(PeerTransportConstants.UnregisterTimeout * 10000);
System\ServiceModel\Channels\PeerSecurityHelpers.cs (1)
690static TimeSpan Timeout = new TimeSpan(0, 2, 0);
System\ServiceModel\Channels\PnrpPeerResolver.cs (2)
47static TimeSpan MaxTimeout = new TimeSpan(0, 10, 0); //PNRP validates the timeout to be no greater than 10 minutes 48static TimeSpan MaxResolveTimeout = new TimeSpan(0, 0, 45);
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
534TimeSpan elapsedTime = new TimeSpan(DateTime.UtcNow.Ticks - startTicks);
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
315DateTime effectiveExpirationTime = TimeoutHelper.Add(serviceToken.ValidFrom.ToUniversalTime(), new TimeSpan(effectiveTicksInterval));
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
25internal static readonly TimeSpan zeroOffset = new TimeSpan(0, 0, 0);
System.ServiceModel.Internals (1)
System\Runtime\Ticks.cs (1)
44return new TimeSpan(ticks);
System.ServiceModel.Web (1)
System\ServiceModel\Web\CachingParameterInspector.cs (1)
312cache.SetMaxAge(new TimeSpan(0, 0, this.cacheProfile.Duration));
System.Web (42)
Cache\CacheDependency.cs (1)
62static readonly TimeSpan FUTURE_FILETIME_BUFFER = new TimeSpan(0, 1, 0); // See VSWhidbey 400917
Cache\CacheEntry.cs (1)
87static readonly TimeSpan OneYear = new TimeSpan(365, 0, 0, 0);
Cache\SqlCacheDependency.cs (3)
605internal static TimeSpan OneSec = new TimeSpan(0, 0, 1); 800DateTime waitLimit = DateTime.UtcNow.Add(new TimeSpan(0, 0, timeout)); 1020DateTime waitLimit = DateTime.UtcNow.Add(new TimeSpan(0, 0, timeout));
Configuration\BrowserCapabilitiesCodeGenerator.cs (1)
255controller.WaitForStatus(ServiceControllerStatus.Stopped, new TimeSpan(0, 5, 0));
Configuration\CacheSection.cs (1)
39internal static TimeSpan DefaultPrivateBytesPollTime = new TimeSpan(0, 2, 0);
Configuration\ProcessModelSection.cs (1)
79internal static TimeSpan DefaultClientConnectedCheck = new TimeSpan(0, 0, 5);
HttpCachePolicy.cs (1)
446static TimeSpan s_oneYear = new TimeSpan(TimeSpan.TicksPerDay * 365);
HttpResponse.cs (1)
3138Cache.SetExpires(_context.Timestamp + new TimeSpan(0, _expiresInMinutes, 0));
httpserverutility.cs (1)
920_context.Timeout = new TimeSpan(0, 0, value);
IdleTimeoutMonitor.cs (1)
21private readonly TimeSpan _timerPeriod = new TimeSpan(0, 0, 30); // 30 secs
Management\WebEvents.cs (2)
2053static TimeSpan TS_ONE_SECOND = new TimeSpan(0, 0, 1); 2190static TimeSpan TS_ONE_SECOND = new TimeSpan(0, 0, 1);
RequestQueue.cs (1)
42private readonly TimeSpan _timerPeriod = new TimeSpan(0, 0, 10); // 10 seconds
RequestTimeoutManager.cs (1)
20private readonly TimeSpan _timerPeriod = new TimeSpan(0, 0, 15); // 15 second init precision
Security\ADMembershipProvider.cs (5)
2642inActiveWindow = (diffTime <= new TimeSpan(0, PasswordAttemptWindow, 0)); 2772bool isLockedOutByBadPasswordAnswer = (diffTime <= new TimeSpan(0, PasswordAnswerAttemptLockoutDuration, 0)); 3776request.TimeLimit = new TimeSpan(0, ServerSearchTimeout, 0); 3833adLockoutDuration = new TimeSpan(-int64Value); 4144request.TimeLimit = new TimeSpan(0, ServerSearchTimeout, 0);
Security\FormsAuthentication.cs (1)
672public static TimeSpan Timeout { get { Initialize(); return new TimeSpan(0, _Timeout, 0); } }
State\InProcStateClientManager.cs (2)
350SlidingExpiration = new TimeSpan(0, state._timeout, 0), 389SlidingExpiration = new TimeSpan(0, timeout, 0),
State\OutOfProcStateClientManager.cs (2)
177new ResourcePool(new TimeSpan(0, 0, 5), int.MaxValue), 484lockAge = new TimeSpan(0, 0, results.lockAge);
State\SessionStateModule.cs (2)
125static readonly TimeSpan LOCKED_ITEM_POLLING_DELTA = new TimeSpan(250 * TimeSpan.TicksPerMillisecond); 127static readonly TimeSpan DEFAULT_DBG_EXECUTION_TIMEOUT = new TimeSpan(0, 0, System.Web.Compilation.PageCodeDomTreeGenerator.DebugScriptTimeout);
State\sqlstateclientmanager.cs (3)
240return new SqlPartitionInfo(new ResourcePool(new TimeSpan(0, 0, 5), int.MaxValue), 528lockAge = new TimeSpan(0, 0, (int) cmd.Parameters[3].Value); 538if (lockAge > new TimeSpan(0, 0, Sec.ONE_YEAR)) {
State\StateRuntime.cs (1)
552timeout = new TimeSpan(0, timeoutMinutes, 0);
UI\Page.cs (1)
3704cache.SetMaxAge(new TimeSpan(0, 0, duration));
UI\PageParser.cs (1)
570value = (new TimeSpan(0, 0, timeoutInSeconds)).ToString();
UI\PartialCachingControl.cs (2)
697Duration = new TimeSpan(0 /*hours*/, 0 /*mins*/, duration /*seconds*/); 771Duration = new TimeSpan(0 /*hours*/, 0 /*mins*/, cacheAttrib.Duration /*seconds*/);
Util\altserialization.cs (1)
239value = new TimeSpan(reader.ReadInt64());
Util\DateTimeUtil.cs (5)
61return new TimeSpan(timeoutValue, 0, 0, 0); 63return new TimeSpan(timeoutValue, 0, 0); 65return new TimeSpan(0, 0, timeoutValue); 67return new TimeSpan(0, 0, 0, 0, timeoutValue); 69return new TimeSpan(0, timeoutValue, 0);
System.Web.ApplicationServices (1)
Security\MembershipUser.cs (1)
82TimeSpan ts = new TimeSpan(0, SystemWebProxy.Membership.UserIsOnlineTimeWindow, 0);
System.Web.DataVisualization (1)
Common\General\ChartElement.cs (1)
1285 TimeSpan span = new TimeSpan(0);
System.Web.Mobile (1)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (1)
33private static readonly TimeSpan _cacheExpirationTime = new TimeSpan(0, 20, 0);
System.Windows.Forms (1)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
434chain.ChainPolicy.UrlRetrievalTimeout = new TimeSpan(0, 1, 0);
System.Windows.Forms.DataVisualization (1)
Common\General\ChartElement.cs (1)
1285 TimeSpan span = new TimeSpan(0);
System.Workflow.Activities (7)
Delay.cs (7)
33public static readonly DependencyProperty TimeoutDurationProperty = DependencyProperty.Register("TimeoutDuration", typeof(TimeSpan), typeof(DelayActivity), new PropertyMetadata(new TimeSpan(0, 0, 0))); 259standardValuesCollection.Add(new TimeSpan(0, 0, 0)); 260standardValuesCollection.Add(new TimeSpan(0, 1, 0)); 261standardValuesCollection.Add(new TimeSpan(0, 30, 0)); 262standardValuesCollection.Add(new TimeSpan(1, 0, 0)); 263standardValuesCollection.Add(new TimeSpan(12, 0, 0)); 264standardValuesCollection.Add(new TimeSpan(1, 0, 0, 0));
System.Workflow.ComponentModel (4)
AuthoringOM\Behaviors\WorkflowTransactionOptions.cs (4)
25public static readonly DependencyProperty TimeoutDurationProperty = DependencyProperty.Register("TimeoutDuration", typeof(TimeSpan), typeof(WorkflowTransactionOptions), new PropertyMetadata(new TimeSpan(0, 0, 30), DependencyPropertyOptions.Metadata)); 122standardValuesCollection.Add(new TimeSpan(0, 0, 0)); 123standardValuesCollection.Add(new TimeSpan(0, 0, 15)); 124standardValuesCollection.Add(new TimeSpan(0, 1, 0));
System.Workflow.Runtime (11)
Hosting\DefaultWorkflowSchedulerService.cs (2)
23private static TimeSpan infinite = new TimeSpan(Timeout.Infinite); 25private static TimeSpan fiveMinutes = new TimeSpan(0, 5, 0);
Hosting\ManualWorkflowSchedulerService.cs (2)
56private static TimeSpan infinite = new TimeSpan(Timeout.Infinite); 58private static TimeSpan fiveMinutes = new TimeSpan(0, 5, 0);
Hosting\SqlWorkflowPersistenceService.cs (7)
690TimeSpan loadingInterval = new TimeSpan(0, 2, 0); 691private TimeSpan maxLoadingInterval = new TimeSpan(365, 0, 0, 0, 0); 694TimeSpan infinite = new TimeSpan(Timeout.Infinite); 764_ownershipDelta = new TimeSpan(0, 0, seconds); 776this.loadingInterval = new TimeSpan(0, 0, interval); 1195private TimeSpan minUpdate = new TimeSpan(0, 0, 5); 1196private TimeSpan infinite = new TimeSpan(Timeout.Infinite);
System.Xml (14)
System\Xml\BinaryXml\SqlUtils.cs (2)
799return SQLBaseDate.Add( new TimeSpan( dateticks * TimeSpan.TicksPerDay + 882DateTimeOffset dto = new DateTimeOffset(dateTicks + timeTicks + zoneTicks, new TimeSpan(zoneTicks));
System\Xml\Schema\XsdDateTime.cs (9)
348return new DateTime(dt.Subtract(new TimeSpan(ZoneHour, ZoneMinute, 0)).Ticks, DateTimeKind.Utc); 351return new DateTime(dt.Add(new TimeSpan(ZoneHour, ZoneMinute, 0)).Ticks, DateTimeKind.Utc); 403ticks = result.Ticks - new TimeSpan(xdt.ZoneHour, xdt.ZoneMinute, 0).Ticks; 416ticks = result.Ticks + new TimeSpan(xdt.ZoneHour, xdt.ZoneMinute, 0).Ticks; 455result = new DateTimeOffset(dt, new TimeSpan(xdt.ZoneHour, xdt.ZoneMinute, 0)); 458result = new DateTimeOffset(dt, new TimeSpan(-xdt.ZoneHour, -xdt.ZoneMinute, 0)); 461result = new DateTimeOffset(dt, new TimeSpan( 0 ) ); 652return dt.Subtract(new TimeSpan(ZoneHour, ZoneMinute, 0)); 654return dt.Add(new TimeSpan(ZoneHour, ZoneMinute, 0));
System\Xml\Schema\XsdDuration.cs (3)
333result = new TimeSpan(Int64.MinValue); 336result = new TimeSpan(-((long) ticks)); 340result = new TimeSpan((long) ticks);
7768 references to TimeSpan
ComSvcConfig (1)
ComplusEndpointConfigContainer.cs (1)
277opts.Timeout = TimeSpan.FromMinutes(5);
mscorlib (484)
microsoft\win32\oavariantlib.cs (1)
55typeof(TimeSpan),
system\appdomain.cs (1)
4786public TimeSpan MonitoringTotalProcessorTime
system\console.cs (1)
1766TimeSpan controlCWaitTime = new TimeSpan(0, 0, 30); // 30 seconds
system\currenttimezone.cs (5)
97TimeSpan offset = new TimeSpan(m_ticksOffset); 200m_CachedDaylightChanges.Add(objYear, new DaylightTime(DateTime.MinValue, DateTime.MinValue, TimeSpan.Zero)); 204TimeSpan delta; 234public override TimeSpan GetUtcOffset(DateTime time) { 236return TimeSpan.Zero;
system\datetime.cs (9)
432public DateTime Add(TimeSpan value) { 622return (TimeSpan.TimeToTicks(hour, minute, second)); 820TimeSpan offset = TimeZoneInfo.GetLocalUtcOffset(this, TimeZoneInfoOptions.NoThrowOnInvalidTime); 1252public TimeSpan TimeOfDay { 1332public TimeSpan Subtract(DateTime value) { 1336public DateTime Subtract(TimeSpan value) { 1485public static DateTime operator +(DateTime d, TimeSpan t) { 1494public static DateTime operator -(DateTime d, TimeSpan t) { 1503public static TimeSpan operator -(DateTime d1, DateTime d2) {
system\datetimeoffset.cs (44)
42internal const Int64 MaxOffset = TimeSpan.TicksPerHour * 14; 45private const long UnixEpochTicks = TimeSpan.TicksPerDay * DateTime.DaysTo1970; // 621,355,968,000,000,000 46private const long UnixEpochSeconds = UnixEpochTicks / TimeSpan.TicksPerSecond; // 62,135,596,800 47private const long UnixEpochMilliseconds = UnixEpochTicks / TimeSpan.TicksPerMillisecond; // 62,135,596,800,000 50public static readonly DateTimeOffset MinValue = new DateTimeOffset(DateTime.MinTicks, TimeSpan.Zero); 51public static readonly DateTimeOffset MaxValue = new DateTimeOffset(DateTime.MaxTicks, TimeSpan.Zero); 60public DateTimeOffset(long ticks, TimeSpan offset) { 70TimeSpan offset; 85public DateTimeOffset(DateTime dateTime, TimeSpan offset) { 92if (offset != TimeSpan.Zero) { 102public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, TimeSpan offset) { 122public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, TimeSpan offset) { 144public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar, TimeSpan offset) { 205public DateTimeOffset ToOffset(TimeSpan offset) { 310public TimeSpan Offset { 346public TimeSpan TimeOfDay { 365public DateTimeOffset Add(TimeSpan timeSpan) { 520const long MinSeconds = DateTime.MinTicks / TimeSpan.TicksPerSecond - UnixEpochSeconds; 521const long MaxSeconds = DateTime.MaxTicks / TimeSpan.TicksPerSecond - UnixEpochSeconds; 528long ticks = seconds * TimeSpan.TicksPerSecond + UnixEpochTicks; 529return new DateTimeOffset(ticks, TimeSpan.Zero); 533const long MinMilliseconds = DateTime.MinTicks / TimeSpan.TicksPerMillisecond - UnixEpochMilliseconds; 534const long MaxMilliseconds = DateTime.MaxTicks / TimeSpan.TicksPerMillisecond - UnixEpochMilliseconds; 541long ticks = milliseconds * TimeSpan.TicksPerMillisecond + UnixEpochTicks; 542return new DateTimeOffset(ticks, TimeSpan.Zero); 593TimeSpan offset; 611TimeSpan offset; 633TimeSpan offset; 644TimeSpan offset; 653public TimeSpan Subtract(DateTimeOffset value) { 657public DateTimeOffset Subtract(TimeSpan value) { 683long seconds = UtcDateTime.Ticks / TimeSpan.TicksPerSecond; 690long milliseconds = UtcDateTime.Ticks / TimeSpan.TicksPerMillisecond; 728TimeSpan offset; 741TimeSpan offset; 755TimeSpan offset; 770TimeSpan offset; 783private static Int16 ValidateOffset(TimeSpan offset) { 785if (ticks % TimeSpan.TicksPerMinute != 0) { 791return (Int16)(offset.Ticks / TimeSpan.TicksPerMinute); 795private static DateTime ValidateDate(DateTime dateTime, TimeSpan offset) { 837public static DateTimeOffset operator +(DateTimeOffset dateTimeOffset, TimeSpan timeSpan) { 842public static DateTimeOffset operator -(DateTimeOffset dateTimeOffset, TimeSpan timeSpan) { 846public static TimeSpan operator -(DateTimeOffset left, DateTimeOffset right) {
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (2)
933: TraceLoggingTypeInfo<TimeSpan> 943public override void WriteData(TraceLoggingDataCollector collector, ref TimeSpan value)
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
781else if (dataType == typeof(TimeSpan))
system\globalization\calendar.cs (1)
844return TimeSpan.TimeToTicks(hour, minute, second) + millisecond * TicksPerMillisecond;
system\globalization\datetimeformat.cs (12)
131internal static readonly TimeSpan NullOffset = TimeSpan.MinValue; 434private static String FormatCustomized(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset) { 717private static void FormatCustomizedTimeZone(DateTime dateTime, TimeSpan offset, String format, Int32 tokenLen, Boolean timeOnly, StringBuilder result) { 744if (offset >= TimeSpan.Zero) { 768private static void FormatCustomizedRoundripTimeZone(DateTime dateTime, TimeSpan offset, StringBuilder result) { 791if (offset >= TimeSpan.Zero) { 871private static String ExpandPredefinedFormat(String format, ref DateTime dateTime, ref DateTimeFormatInfo dtfi, ref TimeSpan offset) { 912internal static String Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset) 982internal static StringBuilder FastFormatRfc1123(DateTime dateTime, TimeSpan offset, DateTimeFormatInfo dtfi) 1013internal static StringBuilder FastFormatRoundtrip(DateTime dateTime, TimeSpan offset) 1031long fraction = dateTime.Ticks % TimeSpan.TicksPerSecond;
system\globalization\datetimeparse.cs (26)
61internal static DateTime ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style, out TimeSpan offset) { 63offset = TimeSpan.Zero; 86internal static bool TryParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result, out TimeSpan offset) { 88offset = TimeSpan.Zero; 138DateTimeFormatInfo dtfi, DateTimeStyles style, out TimeSpan offset) { 140offset = TimeSpan.Zero; 153DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result, out TimeSpan offset) { 155offset = TimeSpan.Zero; 504private static bool ParseTimeZone(ref __DTString str, ref TimeSpan result) { 2286internal static DateTime Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out TimeSpan offset) { 2311internal static bool TryParse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out DateTime result, out TimeSpan offset) { 2313offset = TimeSpan.Zero; 2605result.timeZoneOffset = TimeSpan.Zero; 2634result.timeZoneOffset = TimeSpan.Zero; 2667result.timeZoneOffset = TimeSpan.Zero; 2674result.timeZoneOffset = TimeSpan.Zero; 2803result.timeZoneOffset = TimeSpan.Zero; 2986private static bool ParseTimeZoneOffset(ref __DTString str, int len, ref TimeSpan result) { 3724TimeSpan tempTimeZoneOffset = new TimeSpan(0); 3738if ((result.flags & ParseFlags.TimeZoneUsed) != 0 && result.timeZoneOffset != TimeSpan.Zero) { 3761if ((result.flags & ParseFlags.TimeZoneUsed) != 0 && result.timeZoneOffset != TimeSpan.Zero) { 3772TimeSpan tempTimeZoneOffset = new TimeSpan(0); 3839result.timeZoneOffset = TimeSpan.Zero; 3843result.timeZoneOffset = TimeSpan.Zero; 3921result.timeZoneOffset = TimeSpan.Zero; 5004internal TimeSpan timeZoneOffset;
system\globalization\daylighttime.cs (5)
16internal TimeSpan m_delta; 21public DaylightTime(DateTime start, DateTime end, TimeSpan delta) { 42public TimeSpan Delta { 53public DaylightTimeStruct(DateTime start, DateTime end, TimeSpan delta) 62public TimeSpan Delta { get; }
system\globalization\gregoriancalendarhelper.cs (1)
347return (TimeSpan.TimeToTicks(hour, minute, second) + millisecond * TicksPerMillisecond);;
system\globalization\timespanformat.cs (15)
35internal static String Format(TimeSpan value, String format, IFormatProvider formatProvider) { 71private static String FormatStandard(TimeSpan value, bool isInvariant, String format, Pattern pattern) { 73int day = (int)(value._ticks / TimeSpan.TicksPerDay); 74long time = value._ticks % TimeSpan.TicksPerDay; 80int hours = (int)(time / TimeSpan.TicksPerHour % 24); 81int minutes = (int)(time / TimeSpan.TicksPerMinute % 60); 82int seconds = (int)(time / TimeSpan.TicksPerSecond % 60); 83int fraction = (int)(time % TimeSpan.TicksPerSecond); 146internal static String FormatCustomized(TimeSpan value, String format, DateTimeFormatInfo dtfi) { 150int day = (int)(value._ticks / TimeSpan.TicksPerDay); 151long time = value._ticks % TimeSpan.TicksPerDay; 157int hours = (int)(time / TimeSpan.TicksPerHour % 24); 158int minutes = (int)(time / TimeSpan.TicksPerMinute % 60); 159int seconds = (int)(time / TimeSpan.TicksPerSecond % 60); 160int fraction = (int)(time % TimeSpan.TicksPerSecond);
system\globalization\timespanparse.cs (21)
455internal TimeSpan parsedTimeSpan; 464parsedTimeSpan = default(TimeSpan); 516if (ticks > TimeSpan.MaxMilliSeconds || ticks < TimeSpan.MinMilliSeconds) { 531long lowerLimit = TimeSpan.TicksPerTenthSecond; 540result = ((long)ticks * TimeSpan.TicksPerMillisecond) + f; 556internal static TimeSpan Parse(String input, IFormatProvider formatProvider) { 567internal static Boolean TryParse(String input, IFormatProvider formatProvider, out TimeSpan result) { 576result = default(TimeSpan); 580internal static TimeSpan ParseExact(String input, String format, IFormatProvider formatProvider, TimeSpanStyles styles) { 591internal static Boolean TryParseExact(String input, String format, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result) { 600result = default(TimeSpan); 604internal static TimeSpan ParseExactMultiple(String input, String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles) { 615internal static Boolean TryParseExactMultiple(String input, String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result) { 624result = default(TimeSpan); 1410if (!ParseInt((int)(0x7FFFFFFFFFFFFFFFL / TimeSpan.TicksPerDay), out days, ref result)) { 1413time = days * TimeSpan.TicksPerDay; 1478time = unit * TimeSpan.TicksPerHour; 1487time += unit * TimeSpan.TicksPerMinute; 1495time += unit * TimeSpan.TicksPerSecond; 1499int f = (int)TimeSpan.TicksPerSecond;
system\globalization\umalquracalendar.cs (1)
429TimeSpan ts;
system\internal.cs (3)
107NullableHelper<TimeSpan>(); 120new List<TimeSpan>(); 144SZArrayHelper<TimeSpan>(null);
system\io\isolatedstorage\isolatedstoragefile.cs (3)
719return new DateTimeOffset(1601, 1, 1, 0, 0, 0, TimeSpan.Zero).ToLocalTime(); 760return new DateTimeOffset(1601, 1, 1, 0, 0, 0, TimeSpan.Zero).ToLocalTime(); 801return new DateTimeOffset(1601, 1, 1, 0, 0, 0, TimeSpan.Zero).ToLocalTime();
system\resources\resourcereader.cs (1)
642else if (type == typeof(TimeSpan))
system\resources\resourcewriter.cs (2)
561else if (type == typeof(TimeSpan)) 669writer.Write(((TimeSpan) value).Ticks);
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (4)
182public TimeSpan GetTimeSpan() 187return (TimeSpan)_data; 326public TimeSpan[] GetTimeSpanArray() 331return (TimeSpan[])_data;
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (6)
329if (type == typeof(TimeSpan)) 330return new CLRIReferenceImpl<TimeSpan>(PropertyType.TimeSpan, (TimeSpan)obj); 406if (type == typeof(TimeSpan)) 407return new CLRIReferenceArrayImpl<TimeSpan>(PropertyType.TimeSpanArray, (TimeSpan[])obj);
system\runtime\interopservices\windowsruntime\ipropertyvalue.cs (2)
76TimeSpan GetTimeSpan(); 133TimeSpan[] GetTimeSpanArray();
system\runtime\remoting\clientsponsor.cs (5)
28private TimeSpan m_renewalTime = TimeSpan.FromMinutes(2); 34public ClientSponsor(TimeSpan renewalTime) 39public TimeSpan RenewalTime 77public TimeSpan Renewal(ILease lease)
system\runtime\remoting\ilease.cs (7)
26void Register(ISponsor obj, TimeSpan renewalTime); 35TimeSpan Renew(TimeSpan renewalTime); 37TimeSpan RenewOnCallTime 45TimeSpan SponsorshipTimeout 53TimeSpan InitialLeaseTime 61TimeSpan CurrentLeaseTime
system\runtime\remoting\isponsor.cs (1)
26TimeSpan Renewal(ILease lease);
system\runtime\remoting\lease.cs (31)
34internal TimeSpan initialLeaseTime; 37internal TimeSpan renewOnCallTime; 38internal TimeSpan sponsorshipTimeout; 54internal Lease(TimeSpan initialLeaseTime, 55TimeSpan renewOnCallTime, 56TimeSpan sponsorshipTimeout, 96public TimeSpan RenewOnCallTime 114public TimeSpan SponsorshipTimeout 132public TimeSpan InitialLeaseTime 144if (TimeSpan.Zero.CompareTo(value) >= 0) 153public TimeSpan CurrentLeaseTime 170Register(obj, TimeSpan.Zero); 175public void Register(ISponsor obj, TimeSpan renewalTime) 180if (state == LeaseState.Expired || sponsorshipTimeout == TimeSpan.Zero) 186if (renewalTime > TimeSpan.Zero) 251public TimeSpan Renew(TimeSpan renewalTime) 257internal TimeSpan RenewInternal(TimeSpan renewalTime) 263return TimeSpan.Zero; 342internal delegate TimeSpan AsyncRenewal(ILease lease); 417TimeSpan largestRenewalTime = TimeSpan.Zero; 428if ((sponsorStateInfo.sponsorState == SponsorState.Initial) && (largestRenewalTime == TimeSpan.Zero)) 491TimeSpan renewalTime = TimeSpan.Zero; 494renewalTime = (TimeSpan)ar.EndInvoke(iar); 528else if (sponsorStateInfo.renewalTime == TimeSpan.Zero) 550private void AddTime(TimeSpan renewalSpan) 579internal TimeSpan renewalTime; 582internal SponsorStateInfo(TimeSpan renewalTime, SponsorState sponsorState)
system\runtime\remoting\leasemanager.cs (5)
35private TimeSpan pollTime; 49internal static LeaseManager GetLeaseManager(TimeSpan pollTime) 78private LeaseManager(TimeSpan pollTime) 93internal void ChangePollTime(TimeSpan pollTime) 162internal void RegisterSponsorCall(Lease lease, Object sponsorId, TimeSpan sponsorshipTimeOut)
system\runtime\remoting\lifetimeservices.cs (16)
40private static long s_leaseTimeTicks = TimeSpan.FromMinutes(5).Ticks; 41private static long s_renewOnCallTimeTicks = TimeSpan.FromMinutes(2).Ticks; 42private static long s_sponsorshipTimeoutTicks = TimeSpan.FromMinutes(2).Ticks; 43private static long s_pollTimeTicks = TimeSpan.FromMilliseconds(10000).Ticks; 45private static TimeSpan GetTimeSpan(ref long ticks) 47return TimeSpan.FromTicks(Volatile.Read(ref ticks)); 50private static void SetTimeSpan(ref long ticks, TimeSpan value) 86public static TimeSpan LeaseTime 108public static TimeSpan RenewOnCallTime 130public static TimeSpan SponsorshipTimeout 151public static TimeSpan LeaseManagerPollTime 211internal static ILease CreateLease(TimeSpan leaseTime, 212TimeSpan renewOnCallTime, 213TimeSpan sponsorshipTimeout, 308if (ilease.InitialLeaseTime.CompareTo(TimeSpan.Zero) <= 0) 368if (lease.RenewOnCallTime > TimeSpan.Zero)
system\runtime\remoting\message.cs (1)
769else if (pt == typeof(TimeSpan))
system\runtime\remoting\remotingconfigparser.cs (16)
138private TimeSpan _leaseTime; 139private TimeSpan _renewOnCallTime; 140private TimeSpan _sponsorshipTimeout; 141private TimeSpan _leaseManagerPollTime; 143internal TimeSpan LeaseTime { 156internal TimeSpan RenewOnCallTime { 169internal TimeSpan SponsorshipTimeout { 182internal TimeSpan LeaseManagerPollTime { 1796private static TimeSpan ParseTime(String time, RemotingXmlConfigFileData configData) 1815TimeSpan span = TimeSpan.FromSeconds(0); 1836case "d": span = TimeSpan.FromDays(value); break; 1837case "h": span = TimeSpan.FromHours(value); break; 1838case "m": span = TimeSpan.FromMinutes(value); break; 1839case "s": span = TimeSpan.FromSeconds(value); break; 1840case "ms": span = TimeSpan.FromMilliseconds(value); break;
system\runtime\remoting\soapinteroptypes.cs (11)
257public static String ToString(TimeSpan timeSpan) 261if (TimeSpan.Compare(timeSpan, TimeSpan.Zero) < 1) 285long timea = Math.Abs(timeSpan.Ticks % TimeSpan.TicksPerDay); 286int t1 = (int)(timea % TimeSpan.TicksPerSecond); 298public static TimeSpan Parse(String value) 305return TimeSpan.Zero; 375(Int64.Parse(year, CultureInfo.InvariantCulture)*360+Int64.Parse(month, CultureInfo.InvariantCulture)*30+Int64.Parse(day, CultureInfo.InvariantCulture))*TimeSpan.TicksPerDay+ 376Int64.Parse(hour, CultureInfo.InvariantCulture)*TimeSpan.TicksPerHour+ 377Int64.Parse(minute, CultureInfo.InvariantCulture)*TimeSpan.TicksPerMinute+ 378Convert.ToInt64(Double.Parse(second+"."+fraction, CultureInfo.InvariantCulture)*(Double)TimeSpan.TicksPerSecond)
system\runtime\serialization\formatter.cs (1)
188protected abstract void WriteTimeSpan(TimeSpan val, String name);
system\runtime\serialization\formatters\binary\binaryconverter.cs (3)
313array = new TimeSpan[length]; 502internal static Type typeofTimeSpan = typeof(TimeSpan); 527internal static Type typeofTimeSpanArray = typeof(TimeSpan[]);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (2)
138internal void WriteTimeSpan(TimeSpan value) 762WriteTimeSpan((TimeSpan)value);
system\runtime\serialization\formatters\binary\binaryparser.cs (1)
355internal TimeSpan ReadTimeSpan()
system\stubhelpers.cs (1)
530DateTimeOffset managedUtcDTO = new DateTimeOffset(managedUtcTicks, TimeSpan.Zero);
system\threading\CancellationTokenSource.cs (2)
286public CancellationTokenSource(TimeSpan delay) 425public void CancelAfter(TimeSpan delay)
system\threading\CountdownEvent.cs (2)
482public bool Wait(TimeSpan timeout) 512public bool Wait(TimeSpan timeout, CancellationToken cancellationToken)
system\threading\ManualResetEventSlim.cs (6)
453/// <param name="timeout">A <see cref="System.TimeSpan"/> that represents the number of milliseconds 454/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 464public bool Wait(TimeSpan timeout) 480/// <param name="timeout">A <see cref="System.TimeSpan"/> that represents the number of milliseconds 481/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 495public bool Wait(TimeSpan timeout, CancellationToken cancellationToken)
system\threading\monitor.cs (5)
132private static int MillisecondsTimeoutFromTimeSpan(TimeSpan timeout) 140public static bool TryEnter(Object obj, TimeSpan timeout) 155public static void TryEnter(Object obj, TimeSpan timeout, ref bool lockTaken) 206public static bool Wait(Object obj, TimeSpan timeout, bool exitContext) 216public static bool Wait(Object obj, TimeSpan timeout)
system\threading\readerwriterlock.cs (3)
106public void AcquireReaderLock(TimeSpan timeout) 132public void AcquireWriterLock(TimeSpan timeout) 191public LockCookie UpgradeToWriterLock(TimeSpan timeout)
system\threading\SemaphoreSlim.cs (12)
233/// <param name="timeout">A <see cref="System.TimeSpan"/> that represents the number of milliseconds 234/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 241public bool Wait(TimeSpan timeout) 260/// <param name="timeout">A <see cref="System.TimeSpan"/> that represents the number of milliseconds 261/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 271public bool Wait(TimeSpan timeout, CancellationToken cancellationToken) 530/// A <see cref="System.TimeSpan"/> that represents the number of milliseconds 531/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 547public Task<bool> WaitAsync(TimeSpan timeout) 557/// A <see cref="System.TimeSpan"/> that represents the number of milliseconds 558/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 568public Task<bool> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)
system\threading\SpinLock.cs (3)
209/// <param name="timeout">A <see cref="System.TimeSpan"/> that represents the number of milliseconds 210/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 224public void TryEnter(TimeSpan timeout, ref bool lockTaken)
system\threading\SpinWait.cs (2)
216/// A <see cref="TimeSpan"/> that represents the number of milliseconds to wait, 223public static bool SpinUntil(Func<bool> condition, TimeSpan timeout)
system\threading\Tasks\Task.cs (11)
3060/// A <see cref="System.TimeSpan"/> that represents the number of milliseconds to wait, or a <see 3061/// cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 3075public bool Wait(TimeSpan timeout) 4911/// A <see cref="System.TimeSpan"/> that represents the number of milliseconds to wait, or a <see 4912/// cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 4930public static bool WaitAll(Task[] tasks, TimeSpan timeout) 5336/// A <see cref="System.TimeSpan"/> that represents the number of milliseconds to wait, or a <see 5337/// cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 5355public static int WaitAny(Task[] tasks, TimeSpan timeout) 5797public static Task Delay(TimeSpan delay) 5819public static Task Delay(TimeSpan delay, CancellationToken cancellationToken)
system\threading\thread.cs (2)
698public bool Join(TimeSpan timeout) 729public static void Sleep(TimeSpan timeout)
system\threading\threadpool.cs (2)
1553TimeSpan timeout, 1572TimeSpan timeout,
system\threading\timeout.cs (1)
21public static readonly TimeSpan InfiniteTimeSpan = new TimeSpan(0, 0, 0, 0, Timeout.Infinite);
system\threading\timer.cs (4)
866TimeSpan dueTime, 867TimeSpan period) 992public bool Change(TimeSpan dueTime, TimeSpan period)
system\threading\waithandle.cs (7)
202public virtual bool WaitOne (TimeSpan timeout, bool exitContext) 223public virtual bool WaitOne(TimeSpan timeout) 374TimeSpan timeout, 399public static bool WaitAll(WaitHandle[] waitHandles, TimeSpan timeout) 479TimeSpan timeout, 490public static int WaitAny(WaitHandle[] waitHandles, TimeSpan timeout) 533TimeSpan timeout,
system\timespan.cs (65)
35, IComparable<TimeSpan>, IEquatable<TimeSpan>, IFormattable 66public static readonly TimeSpan Zero = new TimeSpan(0); 68public static readonly TimeSpan MaxValue = new TimeSpan(Int64.MaxValue); 69public static readonly TimeSpan MinValue = new TimeSpan(Int64.MinValue); 153public TimeSpan Add(TimeSpan ts) { 167public static int Compare(TimeSpan t1, TimeSpan t2) { 176if (!(value is TimeSpan)) 178long t = ((TimeSpan)value)._ticks; 185public int CompareTo(TimeSpan value) { 193public static TimeSpan FromDays(double value) { 197public TimeSpan Duration() { 198if (Ticks==TimeSpan.MinValue.Ticks) 205if (value is TimeSpan) { 206return _ticks == ((TimeSpan)value)._ticks; 211public bool Equals(TimeSpan obj) 216public static bool Equals(TimeSpan t1, TimeSpan t2) { 224public static TimeSpan FromHours(double value) { 228private static TimeSpan Interval(double value, int scale) { 239public static TimeSpan FromMilliseconds(double value) { 243public static TimeSpan FromMinutes(double value) { 247public TimeSpan Negate() { 248if (Ticks==TimeSpan.MinValue.Ticks) 254public static TimeSpan FromSeconds(double value) { 258public TimeSpan Subtract(TimeSpan ts) { 268public static TimeSpan FromTicks(long value) { 283public static TimeSpan Parse(String s) { 287public static TimeSpan Parse(String input, IFormatProvider formatProvider) { 290public static TimeSpan ParseExact(String input, String format, IFormatProvider formatProvider) { 293public static TimeSpan ParseExact(String input, String[] formats, IFormatProvider formatProvider) { 296public static TimeSpan ParseExact(String input, String format, IFormatProvider formatProvider, TimeSpanStyles styles) { 300public static TimeSpan ParseExact(String input, String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles) { 304public static Boolean TryParse(String s, out TimeSpan result) { 307public static Boolean TryParse(String input, IFormatProvider formatProvider, out TimeSpan result) { 310public static Boolean TryParseExact(String input, String format, IFormatProvider formatProvider, out TimeSpan result) { 313public static Boolean TryParseExact(String input, String[] formats, IFormatProvider formatProvider, out TimeSpan result) { 316public static Boolean TryParseExact(String input, String format, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result) { 320public static Boolean TryParseExact(String input, String[] formats, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result) { 340public static TimeSpan operator -(TimeSpan t) { 341if (t._ticks==TimeSpan.MinValue._ticks) 346public static TimeSpan operator -(TimeSpan t1, TimeSpan t2) { 350public static TimeSpan operator +(TimeSpan t) { 354public static TimeSpan operator +(TimeSpan t1, TimeSpan t2) { 358public static bool operator ==(TimeSpan t1, TimeSpan t2) { 362public static bool operator !=(TimeSpan t1, TimeSpan t2) { 366public static bool operator <(TimeSpan t1, TimeSpan t2) { 370public static bool operator <=(TimeSpan t1, TimeSpan t2) { 374public static bool operator >(TimeSpan t1, TimeSpan t2) { 378public static bool operator >=(TimeSpan t1, TimeSpan t2) {
system\timezone.cs (6)
90public abstract TimeSpan GetUtcOffset(DateTime time); 133return CalculateUtcOffset(time, daylightTimes)!=TimeSpan.Zero; 196internal static TimeSpan CalculateUtcOffset(DateTime time, DaylightTime daylightTimes) { 198return TimeSpan.Zero; 202return TimeSpan.Zero; 248return TimeSpan.Zero;
system\timezoneinfo.cs (82)
65private TimeSpan m_baseUtcOffset; 165timeZone = CreateCustomTimeZone(c_utcId, TimeSpan.Zero, c_utcId, c_utcId); 237match = CreateCustomTimeZone(c_localId, TimeSpan.Zero, c_localId, c_localId); 264public TimeSpan offset; 266public OffsetAndRule(int year, TimeSpan offset, AdjustmentRule rule) { 303public TimeSpan BaseUtcOffset { 339public TimeSpan[] GetAmbiguousTimeOffsets(DateTimeOffset dateTimeOffset) { 359TimeSpan[] timeSpans = new TimeSpan[2]; 361TimeSpan actualUtcOffset = m_baseUtcOffset + rule.BaseUtcOffsetDelta; 364if (rule.DaylightDelta > TimeSpan.Zero) { 376public TimeSpan[] GetAmbiguousTimeOffsets(DateTime dateTime) { 407TimeSpan[] timeSpans = new TimeSpan[2]; 408TimeSpan actualUtcOffset = m_baseUtcOffset + rule.BaseUtcOffsetDelta; 411if (rule.DaylightDelta > TimeSpan.Zero) { 428public TimeSpan GetUtcOffset(DateTimeOffset dateTimeOffset) { 433public TimeSpan GetUtcOffset(DateTime dateTime) { 438internal static TimeSpan GetLocalUtcOffset(DateTime dateTime, TimeZoneInfoOptions flags) { 443internal TimeSpan GetUtcOffset(DateTime dateTime, TimeZoneInfoOptions flags) { 447private TimeSpan GetUtcOffset(DateTime dateTime, TimeZoneInfoOptions flags, CachedData cachedData) { 711TimeSpan destinationOffset = GetUtcOffsetFromUtc(utcDateTime, destinationTimeZone); 779TimeSpan sourceOffset = sourceTimeZone.BaseUtcOffset; 795sourceOffset += (sourceIsDaylightSavings ? sourceRule.DaylightDelta : TimeSpan.Zero /*FUTURE: sourceRule.StandardDelta*/); 1114TimeSpan baseUtcOffset, 1146TimeSpan baseUtcOffset, 1168TimeSpan baseUtcOffset, 1196TimeSpan baseUtcOffset, 1262m_baseUtcOffset = (TimeSpan)info.GetValue("BaseUtcOffset", typeof(TimeSpan)); 1343TimeSpan offset = GetUtcOffsetFromUtc(utcConverted, destinationTimeZone, out isAmbiguousLocalDst); 1379TimeSpan.Zero, // no daylight saving transition 1466TimeSpan delta = rule.DaylightDelta; 1510Boolean invalidAtStart = rule.DaylightDelta > TimeSpan.Zero; 1511startTime = rule.IsStartDateMarkerForBeginningOfYear() ? new DateTime(daylightTime.Start.Year, 1, 1, 0, 0, 0) : daylightTime.Start + (invalidAtStart ? rule.DaylightDelta : TimeSpan.Zero); /* FUTURE: - rule.StandardDelta; */ 1512endTime = rule.IsEndDateMarkerForEndOfYear() ? new DateTime(daylightTime.End.Year + 1, 1, 1, 0, 0, 0).AddTicks(-1) : daylightTime.End + (invalidAtStart ? -rule.DaylightDelta : TimeSpan.Zero); 1538static private Boolean GetIsDaylightSavingsFromUtc(DateTime time, Int32 Year, TimeSpan utc, AdjustmentRule rule, out Boolean isAmbiguousLocalDst, TimeZoneInfo zone) { 1546TimeSpan offset = utc + rule.BaseUtcOffsetDelta; /* FUTURE: + rule.StandardDelta; */ 1683if (rule == null || rule.DaylightDelta == TimeSpan.Zero) { 1691if (rule.DaylightDelta > TimeSpan.Zero) { 1747if (rule == null || rule.DaylightDelta == TimeSpan.Zero) { 1755if (rule.DaylightDelta < TimeSpan.Zero) { 1830return CreateCustomTimeZone(c_localId, TimeSpan.Zero, c_localId, c_localId); 1929return CreateCustomTimeZone(c_localId, TimeSpan.Zero, c_localId, c_localId); 1993static private TimeSpan GetUtcOffset(DateTime time, TimeZoneInfo zone, TimeZoneInfoOptions flags) { 1994TimeSpan baseOffset = zone.BaseUtcOffset; 2002baseOffset += (isDaylightSavings ? rule.DaylightDelta : TimeSpan.Zero /* FUTURE: rule.StandardDelta */); 2017static private TimeSpan GetUtcOffsetFromUtc(DateTime time, TimeZoneInfo zone) { 2022static private TimeSpan GetUtcOffsetFromUtc(DateTime time, TimeZoneInfo zone, out Boolean isDaylightSavings) { 2028static internal TimeSpan GetDateTimeNowUtcOffsetFromUtc(DateTime time, out Boolean isAmbiguousLocalDst) { 2032TimeSpan baseOffset; 2042baseOffset += (isDaylightSavings ? match.rule.DaylightDelta : TimeSpan.Zero /* FUTURE: rule.StandardDelta */); 2052static internal TimeSpan GetUtcOffsetFromUtc(DateTime time, TimeZoneInfo zone, out Boolean isDaylightSavings, out Boolean isAmbiguousLocalDst) { 2055TimeSpan baseOffset = zone.BaseUtcOffset; 2083baseOffset += (isDaylightSavings ? rule.DaylightDelta : TimeSpan.Zero /* FUTURE: rule.StandardDelta */); 2915static internal Boolean UtcOffsetOutOfRange(TimeSpan offset) { 2930TimeSpan baseUtcOffset, 2947if (baseUtcOffset.Ticks % TimeSpan.TicksPerMinute != 0) { 3010private TimeSpan m_daylightDelta; 3013private TimeSpan m_baseUtcOffsetDelta; // delta from the default Utc offset (utcOffset = defaultUtcOffset + m_baseUtcOffsetDelta) 3029public TimeSpan DaylightDelta { 3049internal TimeSpan BaseUtcOffsetDelta { 3057return this.DaylightDelta != TimeSpan.Zero || 3096TimeSpan daylightDelta, 3110rule.m_baseUtcOffsetDelta = TimeSpan.Zero; 3118TimeSpan daylightDelta, 3121TimeSpan baseUtcOffsetDelta) { 3158TimeSpan daylightDelta, 3186if (daylightDelta.Ticks % TimeSpan.TicksPerMinute != 0) { 3191if (dateStart.TimeOfDay != TimeSpan.Zero) { 3196if (dateEnd.TimeOfDay != TimeSpan.Zero) { 3243m_daylightDelta = (TimeSpan)info.GetValue("DaylightDelta", typeof(TimeSpan)); 3247object o = info.GetValueNoThrow("BaseUtcOffsetDelta", typeof(TimeSpan)); 3249m_baseUtcOffsetDelta = (TimeSpan) o; 3462if (timeOfDayYear != 1 || timeOfDayMonth != 1 || timeOfDayDay != 1 || (timeOfDay.Ticks % TimeSpan.TicksPerMillisecond != 0)) { 3601if (rule.BaseUtcOffsetDelta != TimeSpan.Zero) { // Serialize it only when BaseUtcOffsetDelta has a value to reduce the impact of adding rule.BaseUtcOffsetDelta 3623TimeSpan baseUtcOffset = s.GetNextTimeSpanValue(false); 3898private TimeSpan GetNextTimeSpanValue(Boolean canEndWithoutSeparator) { 3989TimeSpan daylightDelta = GetNextTimeSpanValue(false); 3992TimeSpan baseUtcOffsetDelta = TimeSpan.Zero;
system\variant.cs (1)
108typeof(TimeSpan),
PresentationBuildTasks (2)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
229else if (typeof(TimeSpan).IsAssignableFrom(type))
Framework\System\Windows\Markup\KnownTypes.cs (1)
5503case KnownElements.TimeSpan: t = typeof(TimeSpan); break;
PresentationCore (804)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (1)
219TimeSpan.FromMinutes(3),
Core\CSharp\System\Windows\Duration.cs (6)
25private TimeSpan _timeSpan; 32public Duration(TimeSpan timeSpan) 34if (timeSpan < TimeSpan.Zero) 58public static implicit operator Duration(TimeSpan timeSpan) 60if (timeSpan < TimeSpan.Zero) 398public TimeSpan TimeSpan
Core\CSharp\System\Windows\DurationConverter.cs (4)
84TimeSpan duration = TimeSpan.Zero; 89duration = (TimeSpan)_timeSpanConverter.ConvertFrom(td, cultureInfo, value); 123mi = typeof(Duration).GetConstructor(new Type[] { typeof(TimeSpan) });
Core\CSharp\System\Windows\Input\InputManager.cs (1)
203_inputTimer.Interval = TimeSpan.FromMilliseconds(125);
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (1)
617private const Int64 ThrottleTimeout = TimeSpan.TicksPerSecond * 5; // 5 seconds (in 100ns units) of no activity will throttle down
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
279_inertiaTimer.Interval = TimeSpan.FromMilliseconds(15);
Core\CSharp\System\Windows\Interop\HwndTarget.cs (2)
327_restoreDT.Interval = TimeSpan.FromMilliseconds(100); 1084TimeSpan delta = DateTime.Now - _lastWakeOrUnlockEvent;
Core\CSharp\System\Windows\LayoutManager.cs (2)
298TimeSpan loopDuration = (DateTime.UtcNow - loopStartTime); 366TimeSpan loopDuration = (DateTime.UtcNow - loopStartTime);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (146)
136_nextTickNeededTime = TimeSpan.Zero; 279public TimeSpan? CurrentTime 500protected virtual TimeSpan GetCurrentTimeCore() 504return _currentTime.HasValue ? _currentTime.Value : TimeSpan.Zero; 535protected TimeSpan CurrentGlobalTime 541return TimeSpan.Zero; 622if (!_resolvedDuration.HasTimeSpan || _resolvedDuration.TimeSpan > TimeSpan.Zero) 698TimeSpan beginTime, TimeSpan? endTime, 707TimeSpan beginTime, TimeSpan endTime, Duration period, 720TimeSpan? lastCurrentTime = _currentTime; 774InternalSeek(TimeSpan.Zero); 869internal void InternalSeek(TimeSpan destination) 892internal void InternalSeekAlignedToLastTick(TimeSpan destination) 978TimeSpan? effectiveDuration; 1252TimeSpan? expirationTime; 1371internal TimeSpan? InternalNextTickNeededTime 1882TimeSpan previewParentTime = CurrentGlobalTime; 1939TimeSpan nextDesiredTick = InternalNextTickNeededTime == TimeSpan.Zero ? _rootData.CurrentAdjustedGlobalTime 1952private bool ComputeCurrentIteration(TimeSpan parentTime, double parentSpeed, 1953TimeSpan? expirationTime, 1954out TimeSpan localProgress) 1968TimeSpan beginTimeForOffsetComputation = _currentIterationBeginTime.HasValue ? _currentIterationBeginTime.Value 1970TimeSpan offsetFromBegin = MultiplyTimeSpan(parentTime - beginTimeForOffsetComputation, _appliedSpeedRatio); 1977if (_currentDuration.TimeSpan == TimeSpan.Zero) // We must be post-filling if we have gotten here 1982localProgress = TimeSpan.Zero; 1985_currentTime = TimeSpan.Zero; 2084TimeSpan optimizedOffsetFromBegin; 2107localProgress = TimeSpan.FromTicks(offsetFromBegin.Ticks % _currentDuration.TimeSpan.Ticks); 2112if ((localProgress == TimeSpan.Zero) 2136if (localProgress == TimeSpan.Zero) 2143InternalNextTickNeededTime = TimeSpan.Zero; 2159TimeSpan timeUntilNextBoundary; 2161if (localProgress == TimeSpan.Zero) // We are currently exactly at a boundary 2167TimeSpan decelBegin = MultiplyTimeSpan(_currentDuration.TimeSpan, 1.0 - _timeline.DecelerationRatio); 2172TimeSpan accelEnd = MultiplyTimeSpan(_currentDuration.TimeSpan, _timeline.AccelerationRatio); 2176TimeSpan proposedNextTickTime = CurrentGlobalTime + timeUntilNextBoundary; 2203private void ComputeCurrentIterationWithGrow(TimeSpan parentTime, TimeSpan? expirationTime, 2204out TimeSpan localProgress, out int newIteration) 2212TimeSpan offsetFromBegin = MultiplyTimeSpan(parentTime - _currentIterationBeginTime.Value, _appliedSpeedRatio); 2225localProgress = TimeSpan.FromTicks(offsetOnLaterIterations % _resolvedDuration.TimeSpan.Ticks); 2269private bool ComputeCurrentState(TimeSpan? expirationTime, ref TimeSpan parentTime, double parentSpeed, bool isInTick) 2313InternalNextTickNeededTime = TimeSpan.Zero; // We need ticks immediately 2351private bool ComputeCurrentTime(TimeSpan localProgress, out double localSpeed) 2361Debug.Assert(_currentDuration.TimeSpan > TimeSpan.Zero, "ComputeCurrentTime was entered with _currentDuration <= 0"); 2397InternalNextTickNeededTime = TimeSpan.Zero; 2421InternalNextTickNeededTime = TimeSpan.Zero; 2425_currentTime = TimeSpan.FromTicks((long)((t * durationInTicks) + 0.5)); 2486private TimeSpan? ComputeEffectiveDuration() 2496TimeSpan? effectiveDuration; 2499if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2502effectiveDuration = TimeSpan.Zero; 2508effectiveDuration = TimeSpan.Zero; 2532TimeSpan previousIterationDuration = TimeSpan.Zero; 2559effectiveDuration = TimeSpan.FromTicks((long)(presentAndFutureDuration / _appliedSpeedRatio + 0.5)) + previousIterationDuration; 2578private void ComputeEvents(TimeSpan? expirationTime, 2600postFillDuration = TimeSpan.Zero; // There is no reachable postfill zone because the active period is infinite 2636else if (postFillDuration != TimeSpan.Zero && // Our active period is finite and we have fill behavior 2660private bool ComputeExpirationTime(out TimeSpan? expirationTime) 2665TimeSpan? effectiveDuration; 2686expirationTime += TimeSpan.FromMilliseconds(50); // This compensation is roughly one frame of video 2816TimeSpan? endOfActivePeriod) 2824TimeSpan relativeBeginTime = _currentIterationBeginTime.HasValue ? _currentIterationBeginTime.Value : _beginTime.Value; 2847TimeSpan? endOfActivePeriod, 2851TimeSpan relativeBeginTime = _currentIterationBeginTime.HasValue ? _currentIterationBeginTime.Value : _beginTime.Value; 2898TimeSpan? parentTime; // Computed parent-local time 2899TimeSpan? expirationTime; // Computed expiration time with respect to repeat behavior and resolved duration; 2900TimeSpan localProgress; // Computed time inside simple duration 2902TimeSpan parentTimeValue; 3012private bool ComputeNextTickNeededTime(TimeSpan? expirationTime, 3013TimeSpan parentTime, double parentSpeed) 3023InternalNextTickNeededTime = IsInteractivelyPaused ? TimeSpan.Zero : (TimeSpan?)null; 3028TimeSpan? timeUntilNextBoundary = null; 3040TimeSpan timeUntilBegin = MultiplyTimeSpan(_beginTime.Value - parentTime, invertedParentSpeed); 3049if (timeUntilBegin >= TimeSpan.Zero) 3056TimeSpan timeUntilExpiration = MultiplyTimeSpan(expirationTime.Value - parentTime, invertedParentSpeed); 3058if (timeUntilExpiration >= TimeSpan.Zero && 3086private bool ComputeParentParameters(out TimeSpan? parentTime, out double? parentSpeed, 3104InternalNextTickNeededTime = TimeSpan.Zero; // When TimeManager wakes up, we will need an update 3174TimeSpan currentParentTimePT) 3199TimeSpan relativeBeginTimePT = _currentIterationBeginTime.HasValue ? _currentIterationBeginTime.Value : _beginTime.Value; 3200TimeSpan previewCurrentOffsetPT = currentParentTimePT - relativeBeginTimePT; // This is our time offset (not yet scaled by speed) 3201TimeSpan previewCurrentTimeLT = MultiplyTimeSpan(previewCurrentOffsetPT, _appliedSpeedRatio); // This is what our time would be 3211TimeSpan? expirationTimePT; 3217TimeSpan ourSyncTimeST = (_syncData.SyncClock == this) ? 3222TimeSpan? syncClockEffectiveDurationST = _syncData.SyncClockEffectiveDuration; 3231_syncData.PreviousSyncClockTime = TimeSpan.FromTicks(ourSyncTimeST.Ticks % syncClockDuration.TimeSpan.Ticks); 3237_syncData.PreviousRepeatTime = TimeSpan.Zero; 3254TimeSpan? previousSyncParentTimeSPT = (_syncData.SyncClock == this) ? 3267TimeSpan timeIntoSyncPeriodPT = previewCurrentOffsetPT; 3290_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3291_syncData.PreviousRepeatTime = TimeSpan.Zero; 3308TimeSpan currentParentTimePT, double currentParentSpeed) 3328TimeSpan previousParentTimePT = parentIntervalCollection.IsEmptyOfRealPoints ? currentParentTimePT 3330TimeSpan parentElapsedTimePT = currentParentTimePT - previousParentTimePT; 3333TimeSpan ourProjectedElapsedTimeLT = MultiplyTimeSpan(parentElapsedTimePT, _appliedSpeedRatio); 3335TimeSpan syncTimeST = _syncData.SyncClock.GetCurrentTimeCore(); 3336TimeSpan syncElapsedTimeST = syncTimeST - _syncData.PreviousSyncClockTime; // Elapsed from last tick 3338if (syncElapsedTimeST > TimeSpan.Zero) // Only store the last value if it is greater than 3342TimeSpan? effectiveDurationST = _syncData.SyncClockEffectiveDuration; 3349_syncData.PreviousRepeatTime = TimeSpan.Zero; 3361_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3371syncElapsedTimeST = TimeSpan.Zero; 3375TimeSpan syncElapsedTimeLT = (_syncData.SyncClock == this) 3380TimeSpan parentTimeSlipPT = parentElapsedTimePT - DivideTimeSpan(syncElapsedTimeLT, _appliedSpeedRatio); 3530private TimeSpan GetCurrentDesiredFrameTime(TimeSpan time) 3536private TimeSpan GetDesiredFrameTime(TimeSpan time, int frameOffset) 3545return TimeSpan.FromTicks(desiredFrameTick); 3549private TimeSpan GetNextDesiredFrameTime(TimeSpan time) 3680private TimeSpan DivideTimeSpan(TimeSpan timeSpan, double factor) 3683return TimeSpan.FromTicks((long)(((double)timeSpan.Ticks) / factor + 0.5)); 3699private static TimeSpan MultiplyTimeSpan(TimeSpan timeSpan, double factor) 3701return TimeSpan.FromTicks((long)(factor * (double)timeSpan.Ticks + 0.5)); 3711subtree.Current.InternalNextTickNeededTime = TimeSpan.Zero; 3715while (current != null && current.InternalNextTickNeededTime != TimeSpan.Zero) 3717current.InternalNextTickNeededTime = TimeSpan.Zero; 4059internal TimeSpan? SyncClockEffectiveDuration 4081internal TimeSpan PreviousSyncClockTime 4087internal TimeSpan PreviousRepeatTime 4093internal TimeSpan SyncClockBeginTime 4108private TimeSpan? _syncClockEffectiveDuration; // This reflects RepeatBehavior (local coordinates) 4110private TimeSpan? _syncClockBeginTime; 4111private TimeSpan _previousSyncClockTime; 4112private TimeSpan _previousRepeatTime; // How many complete iterations we already have done 4124internal TimeSpan CurrentAdjustedGlobalTime 4142internal TimeSpan LastAdjustedGlobalTime 4151internal TimeSpan? PendingSeekDestination 4166private TimeSpan _currentAdjustedGlobalTime; 4167private TimeSpan _lastAdjustedGlobalTime; 4168private TimeSpan? _pendingSeekDestination; 4435private TimeSpan? _currentTime; // Precalculated current global time 4450internal TimeSpan? _beginTime; 4456private TimeSpan? _currentIterationBeginTime; 4459internal TimeSpan? _nextTickNeededTime = null; 4507static Int64 s_TimeSpanTicksPerSecond = TimeSpan.FromSeconds(1).Ticks;
Core\CSharp\System\Windows\Media\Animation\ClockController.cs (4)
163public void Seek(TimeSpan offset, TimeSeekOrigin origin) 193if (offset < TimeSpan.Zero) 205public void SeekAlignedToLastTick(TimeSpan offset, TimeSeekOrigin origin) 235if (offset < TimeSpan.Zero)
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (8)
146if ((!duration.HasTimeSpan || duration.TimeSpan > TimeSpan.Zero) 257TimeSpan? previousTickNeededTime = InternalNextTickNeededTime; 346Duration currentDuration = TimeSpan.Zero; 378childEndOfActivePeriod += TimeSpan.FromMilliseconds(50); // This compensation is roughly one frame of video 585TimeSpan beginTime, TimeSpan? endTime, 599TimeSpan beginTime, TimeSpan endTime, Duration period,
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 418TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 422TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 423TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 570private TimeSpan LargestTimeSpanKeyTime 575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 603return TimeSpan.FromSeconds(1.0); 643TimeSpan calculationDuration = TimeSpan.Zero; 673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero; 789TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 792TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 854TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 896TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 418TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 422TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 423TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 570private TimeSpan LargestTimeSpanKeyTime 575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 603return TimeSpan.FromSeconds(1.0); 643TimeSpan calculationDuration = TimeSpan.Zero; 673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero; 789TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 792TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 854TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 896TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 418TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 422TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 423TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 570private TimeSpan LargestTimeSpanKeyTime 575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 603return TimeSpan.FromSeconds(1.0); 643TimeSpan calculationDuration = TimeSpan.Zero; 673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero; 789TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 792TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 854TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 896TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 418TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 422TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 423TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 570private TimeSpan LargestTimeSpanKeyTime 575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 603return TimeSpan.FromSeconds(1.0); 643TimeSpan calculationDuration = TimeSpan.Zero; 673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero; 789TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 792TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 854TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 896TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 418TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 422TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 423TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 570private TimeSpan LargestTimeSpanKeyTime 575TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 603return TimeSpan.FromSeconds(1.0); 643TimeSpan calculationDuration = TimeSpan.Zero; 673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 714_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 771TimeSpan blockBeginTime = TimeSpan.Zero; 789TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 792TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 854TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 896TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\IClock.cs (1)
56TimeSpan CurrentTime
Core\CSharp\System\Windows\Media\Animation\KeyTime.cs (7)
53public static KeyTime FromTimeSpan(TimeSpan timeSpan) 55if (timeSpan < TimeSpan.Zero) 125if ((TimeSpan)keyTime1._value != (TimeSpan)keyTime2._value) 223public static implicit operator KeyTime(TimeSpan timeSpan) 238public TimeSpan TimeSpan 244return (TimeSpan)_value;
Core\CSharp\System\Windows\Media\Animation\KeyTimeConverter.cs (5)
117TimeSpan timeSpanValue = (TimeSpan)TypeDescriptor.GetConverter( 118typeof(TimeSpan)).ConvertFrom( 166mi = typeof(KeyTime).GetMethod("FromTimeSpan", new Type[] { typeof(TimeSpan) }); 209typeof(TimeSpan)).ConvertTo(
Core\CSharp\System\Windows\Media\Animation\ParallelTimeline.cs (4)
41public ParallelTimeline(TimeSpan? beginTime) 55public ParallelTimeline(TimeSpan? beginTime, Duration duration) 72public ParallelTimeline(TimeSpan? beginTime, Duration duration, RepeatBehavior repeatBehavior) 92Duration simpleDuration = TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Animation\RepeatBehavior.cs (3)
40private TimeSpan _repeatDuration; 68public RepeatBehavior(TimeSpan duration) 149public TimeSpan Duration
Core\CSharp\System\Windows\Media\Animation\RepeatBehaviorConverter.cs (4)
98TimeSpan timeSpanValue = (TimeSpan)TypeDescriptor.GetConverter(typeof(TimeSpan)).ConvertFrom(td, cultureInfo, stringValue); 146mi = typeof(RepeatBehavior).GetConstructor(new Type[] { typeof(TimeSpan) });
Core\CSharp\System\Windows\Media\Animation\ResolvedKeyFrameEntry.cs (1)
13internal TimeSpan _resolvedKeyTime;
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (85)
128private TimeIntervalCollection(TimeSpan point) 137private void InitializePoint(TimeSpan point) 154private TimeIntervalCollection(TimeSpan point, bool includePoint) 179private TimeIntervalCollection(TimeSpan from, bool includeFrom, TimeSpan to, bool includeTo) 253internal TimeSpan FirstNodeTime 271internal TimeIntervalCollection SlipBeginningOfConnectedInterval(TimeSpan slipTime) 273if (slipTime == TimeSpan.Zero) // The no-op case 300internal TimeIntervalCollection SetBeginningOfConnectedInterval(TimeSpan beginTime) 323static internal TimeIntervalCollection CreatePoint(TimeSpan time) 331static internal TimeIntervalCollection CreateClosedOpenInterval(TimeSpan from, TimeSpan to) 339static internal TimeIntervalCollection CreateOpenClosedInterval(TimeSpan from, TimeSpan to) 347static internal TimeIntervalCollection CreateInfiniteClosedInterval(TimeSpan from) 404internal bool Contains(TimeSpan time) 534internal bool Intersects(TimeSpan from, TimeSpan to) 542TimeSpan temp = from; 859internal bool IntersectsPeriodicCollection(TimeSpan beginTime, Duration period, double appliedSpeedRatio, 866|| (period == TimeSpan.Zero) // The PTIC has no nonzero period, we define such intersections nonexistent 988internal bool IntersectsMultiplePeriods(TimeSpan beginTime, Duration period, double appliedSpeedRatio) 993|| (period == TimeSpan.Zero) // The PTIC has no nonzero period, we define such intersections nonexistent 1011TimeSpan lastNodeTime = _nodeTime[_count - 1]; 1034TimeSpan beginTime, TimeSpan endTime, Duration period, 1043Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || beginTime == endTime); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1108projection.InitializePoint(TimeSpan.FromTicks(outputInTicks)); 1156TimeSpan beginTime, Nullable<TimeSpan> endTime, 1168Debug.Assert(endTime.HasValue || fillDuration == TimeSpan.Zero); // Either endTime is finite, or it's infinite hence we cannot have any fill zone 1169Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || (endTime.HasValue && beginTime == endTime)); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1182&& _nodeIsPoint[_count - 1] && (endTime > beginTime || fillDuration.TimeSpan > TimeSpan.Zero)))); // ...we may have a point intersection with the stopped zone 1188projection.InitializePoint(TimeSpan.Zero); 1192bool includeFillPeriod = !fillDuration.HasTimeSpan || fillDuration.TimeSpan > TimeSpan.Zero; // This variable represents whether we have a non-zero fill zone 1201Nullable<TimeSpan> activeDuration; 1242TimeSpan beginTime, Nullable<TimeSpan> endTime, bool includeFillPeriod, double speedRatio) 1263projection.CurrentNodeTime = TimeSpan.Zero; 1276projection.CurrentNodeTime = TimeSpan.FromTicks((long)(speedRatio * timeOffset)); 1294projection.CurrentNodeTime = TimeSpan.FromTicks((long)(speedRatio * timeOffset)); 1311private void ProjectionFold(ref TimeIntervalCollection projection, Nullable<TimeSpan> activeDuration, 1319Debug.Assert(CurrentNodeTime >= TimeSpan.Zero); // Verify that we are already clipped 1354private void ProjectionFoldPoint(ref TimeIntervalCollection projection, Nullable<TimeSpan> activeDuration, 1383projection.MergePoint(TimeSpan.FromTicks(currentProjection)); 1397private bool ProjectionFoldInterval(ref TimeIntervalCollection projection, Nullable<TimeSpan> activeDuration, 1448projection.MergeInterval(TimeSpan.Zero, true, 1449TimeSpan.FromTicks(currentProjection), includeTime); 1454projection.MergeInterval(TimeSpan.FromTicks(currentProjection), includeTime, 1455TimeSpan.FromTicks(periodInTicks), true); 1465projection.MergeInterval(TimeSpan.Zero, true, 1466TimeSpan.FromTicks(clippedTime), NextNodeIsPoint); 1473projection.MergeInterval(TimeSpan.FromTicks(clippedTime), NextNodeIsPoint, 1474TimeSpan.FromTicks(periodInTicks), true); 1485projection.MergeInterval(TimeSpan.FromTicks(currentProjection - intervalLength), NextNodeIsPoint, 1486TimeSpan.FromTicks(currentProjection), CurrentNodeIsPoint); 1490projection.MergeInterval(TimeSpan.FromTicks(currentProjection), CurrentNodeIsPoint, 1491TimeSpan.FromTicks(currentProjection + intervalLength), NextNodeIsPoint); 1507projection._nodeTime[0] = TimeSpan.Zero; 1511projection._nodeTime[1] = TimeSpan.FromTicks(periodInTicks); 1521projection.MergeInterval(TimeSpan.FromTicks(currentProjection), CurrentNodeIsPoint, 1522TimeSpan.FromTicks(periodInTicks), false); 1525projection.MergeInterval(TimeSpan.Zero, true, 1526TimeSpan.FromTicks(intervalLength - timeBeforeNextPeriod), NextNodeIsPoint); 1532projection.MergePoint(TimeSpan.FromTicks(periodInTicks)); 1536projection.MergePoint(TimeSpan.Zero); 1544projection.MergeInterval(TimeSpan.FromTicks(currentProjection), CurrentNodeIsPoint, 1545TimeSpan.FromTicks(currentProjection + intervalLength), NextNodeIsPoint); 1558private void MergePoint(TimeSpan point) 1613private void MergeInterval(TimeSpan from, bool includeFrom, 1614TimeSpan to, bool includeTo) 1784_nodeTime = new TimeSpan[requiredCapacity]; 1795TimeSpan[] newNodeTime = new TimeSpan[newCapacity]; 1829TimeSpan accelEnd = TimeSpan.FromTicks((long)(dpPeriod * accelRatio)); 1830TimeSpan decelStart = TimeSpan.FromTicks(periodInTicks - (long)(dpPeriod * decelRatio)); 1840_nodeTime[_current] = TimeSpan.FromTicks((long)(halfMaxRate * inversePeriod * t * t / accelRatio)); 1848_nodeTime[_current] = TimeSpan.FromTicks((long)(halfMaxRate * (2 * t - (accelRatio * dpPeriod)))); 1856_nodeTime[_current] = TimeSpan.FromTicks(periodInTicks - (long)(halfMaxRate * inversePeriod * t * t / decelRatio)); 2129private int Locate(TimeSpan time) 2204private TimeSpan CurrentNodeTime 2246private TimeSpan NextNodeTime 2291private TimeSpan[] _nodeTime; // An interval's begin time
Core\CSharp\System\Windows\Media\Animation\Timeline.cs (8)
67protected Timeline(Nullable<TimeSpan> beginTime) 82protected Timeline(Nullable<TimeSpan> beginTime, Duration duration) 101protected Timeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior) 285typeof(TimeSpan?), 288(TimeSpan?)TimeSpan.Zero, 302public TimeSpan? BeginTime 306return (TimeSpan?)GetValue(BeginTimeProperty);
Core\CSharp\System\Windows\Media\Animation\TimelineGroup.cs (3)
41protected TimelineGroup(Nullable<TimeSpan> beginTime) 55protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration) 72protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (29)
129public Nullable<TimeSpan> CurrentTime 233if (GetNextTickNeeded() >= TimeSpan.Zero) 284TimeSpan offsetTime = TimeSpan.FromMilliseconds((double)offset); 314_lastTickTime = TimeSpan.Zero; 318_globalTime = TimeSpan.Zero; 388EventTrace.EasyTraceEvent(EventTrace.Keyword.KeywordAnimation | EventTrace.Keyword.KeywordPerf, EventTrace.Event.WClientTimeManagerTickBegin, (_startTime + _globalTime).Ticks / TimeSpan.TicksPerMillisecond); 462TimeSpan IClock.CurrentTime 466return TimeSpan.FromTicks(DateTime.Now.Ticks); 488public TimeSpan CurrentTime 503private TimeSpan _currentTime; 563internal TimeSpan GetCurrentGlobalTime() 571return TimeSpan.Zero; 596return TimeSpan.Zero; 728internal TimeSpan InternalCurrentGlobalTime 773internal TimeSpan GetNextTickNeeded() 781TimeSpan? nextTickNeededTime = _timeManagerClock.InternalNextTickNeededTime; 786TimeSpan timeManagerCurrentTime = _systemClock.CurrentTime - _startTime; 789TimeSpan nextTickNeededTimeFromCurrentTime = nextTickNeededTime.Value - timeManagerCurrentTime; 791if (nextTickNeededTimeFromCurrentTime <= TimeSpan.Zero) 795return TimeSpan.Zero; 805return TimeSpan.FromTicks(-1); 811return TimeSpan.FromTicks(-1); 818internal TimeSpan LastTickDelta 829internal TimeSpan LastTickTime 910private TimeSpan _globalTime; 911private TimeSpan _startTime; 912private TimeSpan _lastTickTime; 913private TimeSpan _pauseTime;
Core\CSharp\System\Windows\Media\HostVisual.cs (1)
295TimeSpan.FromMilliseconds(1000),
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (4)
277TimeSpan timeoutSpan; 284timeoutSpan = TimeSpan.FromMilliseconds(-1); 702AcquireBackBuffer(TimeSpan.Zero, false); 1141private bool AcquireBackBuffer(TimeSpan timeout, bool waitForCopy)
Core\CSharp\System\Windows\Media\MediaClock.cs (5)
90protected override TimeSpan GetCurrentTimeCore() 112_mediaPlayer.SetPosition(TimeSpan.FromTicks(0)); 142TimeSpan? currentTimeProperty = this.CurrentTime; 143TimeSpan currentTimeValue = currentTimeProperty.HasValue ? currentTimeProperty.Value : TimeSpan.Zero;
Core\CSharp\System\Windows\Media\MediaContext.cs (33)
94return (long)(TimeSpan.TicksPerSecond * (counts / _perfCounterFreq) + (TimeSpan.TicksPerSecond * (counts % _perfCounterFreq)) / _perfCounterFreq); 105return (long)(_perfCounterFreq * (ticks / TimeSpan.TicksPerSecond) + (_perfCounterFreq * (ticks % TimeSpan.TicksPerSecond)) / TimeSpan.TicksPerSecond); 219_estimatedNextPresentationTime = TimeSpan.FromTicks(CountsToTicks(_lastPresentationTime)); 576private void ScheduleNextRenderOp(TimeSpan minimumDelay) 592TimeSpan nextTickNeeded = TimeSpan.Zero; 608if (nextTickNeeded >= TimeSpan.Zero) 610nextTickNeeded = TimeSpan.FromTicks(Math.Max(nextTickNeeded.Ticks, minimumDelay.Ticks)); 619if (nextTickNeeded > TimeSpan.FromSeconds(1)) 630else if (nextTickNeeded > TimeSpan.Zero) 641_promoteRenderOpToRender.Interval = TimeSpan.FromSeconds(1); 645else if (nextTickNeeded == TimeSpan.Zero) 704long earliestWakeupTicks = currentTicks + TicksUntilNextVsync(currentTicks) + TimeSpan.TicksPerMillisecond; 705_estimatedNextVSyncTimer.Interval = TimeSpan.FromTicks(earliestWakeupTicks - currentTicks); 712_estimatedNextVSyncTimer.Interval = TimeSpan.FromMilliseconds(17); 758TimeSpan presentationDelay = TimeSpan.Zero; 953return TimeSpan.TicksPerSecond / _animationRenderRate; 1118TimeSpan IClock.CurrentTime 1210if ((nextPresentationTicks - _estimatedNextPresentationTime.Ticks) * _animationRenderRate > TimeSpan.FromMilliseconds(500).Ticks) 1213_estimatedNextPresentationTime = TimeSpan.FromTicks(nextPresentationTicks); 1218_estimatedNextPresentationTime = TimeSpan.FromTicks(countsTicks); 1223_estimatedNextPresentationTime = TimeSpan.FromTicks(countsTicks); 1963ScheduleNextRenderOp(TimeSpan.Zero); 2645timer.Interval = TimeSpan.FromTicks(earliestWakeupTicks - currentTicks); 2657ScheduleNextRenderOp(TimeSpan.Zero); 2840private TimeSpan _timeDelay = TimeSpan.FromMilliseconds(10); 2986private TimeSpan _estimatedNextPresentationTime; 3014private const long MaxTicksWithoutInput = TimeSpan.TicksPerSecond / 2;
Core\CSharp\System\Windows\Media\MediaPlayer.cs (2)
280public TimeSpan Position 914TimeSpan value
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (7)
504return new Duration(TimeSpan.FromTicks(mediaLength)); 512internal TimeSpan Position 773SetPosition(TimeSpan.Zero); 812Position = TimeSpan.FromTicks(0); 1139internal void SetPosition(TimeSpan value) 1154private TimeSpan GetPosition() 1160return TimeSpan.FromTicks(position);
Core\CSharp\System\Windows\Media\MediaTimeline.cs (3)
74public MediaTimeline(Nullable<TimeSpan> beginTime) : this() 84public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration) 97public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
Core\CSharp\System\Windows\Media\RenderingEventArgs.cs (3)
16internal RenderingEventArgs(TimeSpan renderingTime) 25public TimeSpan RenderingTime 33private TimeSpan _renderingTime;
PresentationFramework (82)
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (1)
833long timeSpan = (dtStop.Ticks - dtStart.Ticks) / TimeSpan.TicksPerMillisecond;
src\Framework\MS\Internal\Utility\SponsorHelper.cs (3)
27private TimeSpan _timespan; 31internal SponsorHelper(ILease lease, TimeSpan timespan) 40TimeSpan ISponsor.Renewal(ILease lease)
src\Framework\System\Windows\Controls\AVElementHelper.cs (4)
69_position = new SettableState<TimeSpan>(new TimeSpan(0)); 186internal TimeSpan Position 212TimeSpan position 873SettableState<TimeSpan> _position;
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
3277internal static TimeSpan AutoScrollTimeout 3285return TimeSpan.FromMilliseconds(MS.Win32.SafeNativeMethods.GetDoubleClickTime() * 0.8);
src\Framework\System\Windows\Controls\MediaElement.cs (1)
536public TimeSpan Position
src\Framework\System\Windows\Controls\MenuItem.cs (1)
2649timer.Interval = TimeSpan.FromMilliseconds(SystemParameters.MenuShowDelay);
src\Framework\System\Windows\Controls\PopupControlService.cs (3)
331ToolTipTimer.Interval = TimeSpan.FromMilliseconds(ToolTipService.GetInitialShowDelay(o)); 525ToolTipTimer.Interval = TimeSpan.FromMilliseconds(ToolTipService.GetShowDuration(o)); 595ToolTipTimer.Interval = TimeSpan.FromMilliseconds(ToolTipService.GetBetweenShowDelay(o));
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
1684_asyncDestroy.Interval = animating ? AnimationDelayTime : TimeSpan.Zero; 2924internal static TimeSpan AnimationDelayTime = new TimeSpan(0, 0, 0, 0, AnimationDelay);
src\Framework\System\Windows\Controls\Primitives\RepeatButton.cs (3)
127_timer.Interval = TimeSpan.FromMilliseconds(Delay); 150TimeSpan interval = TimeSpan.FromMilliseconds(Interval);
src\Framework\System\Windows\Controls\ProgressBar.cs (8)
237TimeSpan translateTime = TimeSpan.FromSeconds(((int)(endPos - startPos) / 200.0)); // travel at 200px /second 238TimeSpan pauseTime = TimeSpan.FromSeconds(1.0); // pause 1 second between animations 239TimeSpan startTime; 246startTime = TimeSpan.FromSeconds(-1*(_glow.Margin.Left-startPos)/200.0); 251startTime = TimeSpan.Zero; 261animation.KeyFrames.Add(new LinearThicknessKeyFrame(new Thickness(startPos,0,0,0), TimeSpan.FromSeconds(0)));
src\Framework\System\Windows\Controls\TextSearch.cs (2)
719private TimeSpan TimeOut 730return TimeSpan.FromMilliseconds(SafeNativeMethods.GetDoubleClickTime() * 2);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
8722_cleanupDelay.Interval = TimeSpan.FromMilliseconds(500.0);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
2743timer.Interval = TimeSpan.FromMilliseconds(delay);
src\Framework\System\windows\Documents\CaretElement.cs (1)
912Duration blinkDuration = new Duration(TimeSpan.FromMilliseconds(blinkInterval * 2));
src\Framework\System\windows\Documents\TextEditor.cs (1)
539_mouseSelectionState.Timer.Interval = TimeSpan.FromMilliseconds(Math.Max(SystemParameters.MenuShowDelay, 200));
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
125lease.InitialLeaseTime = TimeSpan.Zero; // infinite -- never expire
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
755case 663: t = () => typeof(TimeSpan); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10259typeof(System.TimeSpan),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6207case KnownElements.TimeSpan: t = typeof(System.TimeSpan); break;
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (20)
355TimeSpan currentTime = animationClock.CurrentTime.Value; 429TimeSpan previousResolvedKeyTime = _sortedResolvedKeyFrames[previousResolvedKeyFrameIndex]._resolvedKeyTime; 433TimeSpan segmentCurrentTime = currentTime - previousResolvedKeyTime; 434TimeSpan segmentDuration = _sortedResolvedKeyFrames[currentResolvedKeyFrameIndex]._resolvedKeyTime - previousResolvedKeyTime; 662private TimeSpan LargestTimeSpanKeyTime 667TimeSpan largestTimeSpanKeyTime = TimeSpan.Zero; 695return TimeSpan.FromSeconds(1.0); 735TimeSpan calculationDuration = TimeSpan.Zero; 765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 806_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.Zero; 863TimeSpan blockBeginTime = TimeSpan.Zero; 881TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).Ticks / segmentCount); 884TimeSpan resolvedTime = blockBeginTime + uniformTimeStep; 946TimeSpan prePacedBlockKeyTime = _sortedResolvedKeyFrames[index - 1]._resolvedKeyTime; 988TimeSpan pacedBlockDuration = _sortedResolvedKeyFrames[index]._resolvedKeyTime - prePacedBlockKeyTime; 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
src\Framework\System\Windows\Media\Animation\SeekStoryboard.cs (4)
27public TimeSpan Offset 52return !(TimeSpan.Zero.Equals(_offset)); 104TimeSpan _offset = TimeSpan.Zero;
src\Framework\System\Windows\Media\Animation\Storyboard.cs (16)
1477public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject ) 1487public Nullable<TimeSpan> GetCurrentTime( FrameworkContentElement containingObject ) 1496public TimeSpan GetCurrentTime() 1498Nullable<TimeSpan> currentTime = GetCurrentTimeImpl(this); 1506return default(TimeSpan); 1510private Nullable<TimeSpan> GetCurrentTimeImpl( DependencyObject containingObject ) 1708public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1718public void Seek( FrameworkContentElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1728public void Seek( TimeSpan offset, TimeSeekOrigin origin ) 1738public void Seek( TimeSpan offset ) 1743private void SeekImpl( DependencyObject containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1759public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1769public void SeekAlignedToLastTick( FrameworkContentElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1779public void SeekAlignedToLastTick( TimeSpan offset, TimeSeekOrigin origin ) 1789public void SeekAlignedToLastTick( TimeSpan offset ) 1794private void SeekAlignedToLastTickImpl( DependencyObject containingObject, TimeSpan offset, TimeSeekOrigin origin )
src\Framework\System\Windows\SystemParameters.cs (2)
815public static TimeSpan MouseHoverTime 819return TimeSpan.FromMilliseconds(MouseHoverTimeMilliseconds);
src\Framework\System\Windows\VisualStateManager.cs (2)
424dynamic.Duration = new Duration(TimeSpan.Zero); 843private static readonly Duration DurationZero = new Duration(TimeSpan.Zero);
PresentationFramework.Aero (31)
Microsoft\Windows\Themes\BulletChrome.cs (6)
133Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 184Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 277Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 353Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 446Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 507Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (13)
129Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 141daukf.KeyFrames.Add(new LinearDoubleKeyFrame(1.0, TimeSpan.FromSeconds(0.5))); 142daukf.KeyFrames.Add(new DiscreteDoubleKeyFrame(1.0, TimeSpan.FromSeconds(0.75))); 143daukf.KeyFrames.Add(new LinearDoubleKeyFrame(0.0, TimeSpan.FromSeconds(2.0))); 160Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 220Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 246daukf.KeyFrames.Add(new LinearDoubleKeyFrame(1.0, TimeSpan.FromSeconds(to1))); 247daukf.KeyFrames.Add(new DiscreteDoubleKeyFrame(1.0, TimeSpan.FromSeconds(to1 + 0.25))); 248daukf.KeyFrames.Add(new LinearDoubleKeyFrame(0.0, TimeSpan.FromSeconds(to1 + 1.5))); 249daukf.KeyFrames.Add(new LinearDoubleKeyFrame(currentOpacity, TimeSpan.FromSeconds(2))); 257Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 309Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 342Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
150Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 162Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (5)
92TimeSpan translateTime = TimeSpan.FromSeconds(twiceWidth / 200.0); // travel at 200px /second 93TimeSpan pauseTime = TimeSpan.FromSeconds(1.0); // pause 1 second between animations 96animation.BeginTime = TimeSpan.Zero;
Microsoft\Windows\Themes\ScrollChrome.cs (5)
119Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 156Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 231Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 254Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 331Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
SMSvcHost (18)
System\ServiceModel\Activation\ActivatedMessageQueue.cs (2)
17static TimeSpan FailureThrottlingTimeout = TimeSpan.FromSeconds(15);
System\ServiceModel\Activation\DupHandleConnectionReader.cs (2)
38TimeSpan GetRemainingTimeout() 153public void StartReading(byte[] accruedData, TimeSpan timeout)
System\ServiceModel\Activation\ListenerConnectionDemuxer.cs (2)
29TimeSpan channelInitializationTimeout; 34TimeSpan channelInitializationTimeout,
System\ServiceModel\Activation\ListenerConnectionModeReader.cs (2)
47public TimeSpan GetRemainingTimeout() 189public void StartReading(TimeSpan timeout, Action connectionDequeuedCallback)
System\ServiceModel\Activation\MsmqActivation.cs (4)
299static readonly TimeSpan RetryMonitorInterval = TimeSpan.FromMinutes(5); 564static readonly TimeSpan InfiniteTimeout = TimeSpan.FromMilliseconds(UInt32.MaxValue);
System\ServiceModel\Activation\NetPipeSectionData.cs (2)
17TimeSpan receiveTimeout; 53public TimeSpan ReceiveTimeout
System\ServiceModel\Activation\NetTcpSectionData.cs (2)
18TimeSpan receiveTimeout; 65public TimeSpan ReceiveTimeout
System\ServiceModel\Activation\SharingService.cs (1)
49customBinding.ReceiveTimeout = TimeSpan.MaxValue;
System\ServiceModel\Activation\WorkerProcess.cs (1)
191((IContextChannel)this.connectionDuplicator).OperationTimeout = TimeSpan.MaxValue;
System (274)
compmod\system\componentmodel\DateTimeOffsetConverter.cs (1)
155typeof(int), typeof(int), typeof(int), typeof(TimeSpan) });
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
138temp[typeof(TimeSpan)] = typeof(TimeSpanConverter);
compmod\system\componentmodel\TimeSpanConverter.cs (6)
22/// <para>Provides a type converter to convert <see cref='System.TimeSpan'/> 32/// convert an object in the given source type to a <see cref='System.TimeSpan'/> object using the 54/// <para>Converts the given object to a <see cref='System.TimeSpan'/> 61return TimeSpan.Parse(text, culture); 83if (destinationType == typeof(InstanceDescriptor) && value is TimeSpan) { 84MethodInfo method = typeof(TimeSpan).GetMethod("Parse", new Type[] {typeof(string)});
net\System\Net\_CommandStream.cs (1)
63TimeSpan lifetime,
net\System\Net\_Connection.cs (1)
851TimeSpan.FromMilliseconds(ServicePoint.MaxIdleTime) <
net\System\Net\_FtpControlStream.cs (1)
97TimeSpan lifetime,
net\System\Net\_PooledStream.cs (6)
25private TimeSpan m_Lifetime; // the timespan the connection is to live for 54internal PooledStream(ConnectionPool connectionPool, TimeSpan lifetime, bool checkLifetime) : base () { // pooled constructor 240TimeSpan timeSpan = utcNow.Subtract(m_CreateTime); 244m_ConnectionIsDoomed = (0 < TimeSpan.Compare(m_Lifetime, timeSpan)); 253TimeSpan connectionLifetime; 256connectionLifetime = TimeSpan.MaxValue;
net\System\Net\Cache\_CacheStreams.cs (2)
851private TimeSpan m_MaxStale; 864TimeSpan maxStale,
net\System\Net\Cache\_Rfc2616CacheValidators.cs (30)
97if (ctx.Policy.MinFresh > TimeSpan.Zero) { 100if (ctx.Policy.MaxAge != TimeSpan.MaxValue) { 103if (ctx.Policy.MaxStale > TimeSpan.Zero) { 270if (ctx.Policy.Level == HttpRequestCacheLevel.Default && ctx.ResponseAge != TimeSpan.MinValue) { 275(ctx.Policy.MinFresh > TimeSpan.Zero && (ctx.ResponseExpires - DateTime.UtcNow) < ctx.Policy.MinFresh) || 276(ctx.Policy.MaxStale > TimeSpan.Zero && (DateTime.UtcNow - ctx.ResponseExpires) > ctx.Policy.MaxStale))) 372ctx.CacheEntry.MaxStale = TimeSpan.MinValue; 509TimeSpan age = TimeSpan.MaxValue; 521if (ctx.CacheAge != TimeSpan.MinValue) { 525if (ctx.CacheAge != TimeSpan.MinValue) 535if (ctx.CacheAge != TimeSpan.MinValue) { 537if (ctx.CacheAge > age || age == TimeSpan.MaxValue) { 546ctx.CacheAge = (age < TimeSpan.Zero? TimeSpan.Zero: age); 556if (ctx.CacheAge != TimeSpan.MinValue) { 566ctx.CacheMaxAge = TimeSpan.FromSeconds(ctx.CacheCacheControl.SMaxAge); 580ctx.CacheMaxAge = TimeSpan.FromSeconds(ctx.CacheCacheControl.MaxAge); 603if (expiresDate != DateTime.MinValue && date != DateTime.MinValue && ctx.CacheAge != TimeSpan.MinValue) { 646TimeSpan span = (nowDate - lastModifiedDate); 648ctx.CacheMaxAge = TimeSpan.FromSeconds(maxAgeSeconds); 883if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age, (ctx.CacheAge != TimeSpan.MinValue ? ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo) : SR.GetString(SR.net_log_unknown)), (ctx.CacheMaxAge != TimeSpan.MinValue? ((int)ctx.CacheMaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo): SR.GetString(SR.net_log_unknown)))); 885if (ctx.Policy.MinFresh > TimeSpan.Zero) 891if (ctx.Policy.MaxAge != TimeSpan.MaxValue) 905TimeSpan adjustedMaxAge = ctx.CacheMaxAge; 906if (ctx.Policy.MaxStale > TimeSpan.Zero) 909if (adjustedMaxAge < TimeSpan.MaxValue - ctx.Policy.MaxStale) 915adjustedMaxAge = TimeSpan.MaxValue; 1202if (ctx.ResponseAge != TimeSpan.MinValue) {
net\System\Net\Cache\_SingleItemRequestCache.cs (4)
138internal override Stream Store(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata) 165internal override void Update(string key, DateTime expiresUtc, DateTime lastModifiedUtc, DateTime lastSynchronizedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata) 204internal override bool TryStore(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata, out Stream writeStream) 263internal override bool TryUpdate(string key, DateTime expiresUtc, DateTime lastModifiedUtc, DateTime lastSynchronizedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata)
net\System\Net\Cache\FtpRequestCacheValidator.cs (5)
52internal FtpRequestCacheValidator(bool strictCacheErrors, TimeSpan unspecifiedMaxAge): base(strictCacheErrors, unspecifiedMaxAge) 151TimeSpan age = TimeSpan.MaxValue; 164TimeSpan span = (nowDate - CacheEntry.LastModifiedUtc); 479if (CacheEntry.LastSynchronizedUtc + TimeSpan.FromMinutes(1) >= nowUtc)
net\System\Net\Cache\HttpRequestCacheValidator.cs (12)
69internal TimeSpan Age; 70internal TimeSpan MaxAge; 80Age = TimeSpan.MinValue; 81MaxAge = TimeSpan.MinValue; 123internal TimeSpan CacheAge {get{return m_CacheVars.Age;} set{m_CacheVars.Age = value;}} 124internal TimeSpan CacheMaxAge {get{return m_CacheVars.MaxAge;} set{m_CacheVars.MaxAge = value;}} 135internal TimeSpan ResponseAge {get{return m_ResponseVars.Age;} set{m_ResponseVars.Age = value;}} 175internal HttpRequestCacheValidator(bool strictCacheErrors, TimeSpan unspecifiedMaxAge): base(strictCacheErrors, unspecifiedMaxAge) 382CacheAge = TimeSpan.Zero; 827TimeSpan span = TimeSpan.MinValue; 838span = TimeSpan.FromSeconds(sec);
net\System\Net\Cache\IERequestCache.cs (12)
35internal readonly static TimeSpan s_MaxTimeSpanForInt32 = TimeSpan.FromSeconds((double)int.MaxValue); 97internal override Stream Store(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata) 102internal override bool TryStore(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata, out Stream writeStream) 195internal override void Update(string key, DateTime expiresUtc, DateTime lastModifiedUtc, DateTime lastSynchronizedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata) 201internal override bool TryUpdate(string key, DateTime expiresUtc, DateTime lastModifiedUtc, DateTime lastSynchronizedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata) 383private Stream GetWriteStream(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata, bool isThrow) 419if (maxStale > TimeSpan.Zero) { 435Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_stale, (maxStale > TimeSpan.Zero? ((int)maxStale.TotalSeconds).ToString():"n/a"))); 502private bool UpdateInfo(string key, DateTime expiresUtc, DateTime lastModifiedUtc, DateTime lastSynchronizedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata, bool isThrow) 542if (maxStale != TimeSpan.MinValue) { 545if (maxStale >= TimeSpan.Zero) {
net\System\Net\Cache\RequestCache.cs (4)
64TimeSpan maxStale, 82TimeSpan maxStale, 97TimeSpan maxStale, 111TimeSpan maxStale,
net\System\Net\Cache\RequestCacheEntry.cs (5)
37private TimeSpan m_MaxStale; 61m_MaxStale = TimeSpan.FromSeconds(entry.Info.U.ExemptDelta); 64m_MaxStale = TimeSpan.MaxValue; 77internal TimeSpan MaxStale {get{return m_MaxStale;} set{m_MaxStale = value;}} 94sb.Append("\r\nMaxStale(sec) = ").Append(MaxStale == TimeSpan.MinValue? "": ((int)MaxStale.TotalSeconds).ToString(NumberFormatInfo.CurrentInfo));
net\System\Net\Cache\RequestCachePolicy.cs (17)
150private TimeSpan m_MaxAge = TimeSpan.MaxValue; 151private TimeSpan m_MinFresh = TimeSpan.MinValue; 152private TimeSpan m_MaxStale = TimeSpan.MinValue; 168public HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan ageOrFreshOrStale):this(HttpRequestCacheLevel.Default) 188public HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan maxAge, TimeSpan freshOrStale):this(HttpRequestCacheLevel.Default) 223public HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan maxAge, TimeSpan freshOrStale, DateTime cacheSyncDate) 254public TimeSpan MaxAge { 260public TimeSpan MinFresh { 266public TimeSpan MaxStale { 275(m_MaxAge == TimeSpan.MaxValue? string.Empty: " MaxAge:" + m_MaxAge.ToString()) + 276(m_MinFresh == TimeSpan.MinValue? string.Empty: " MinFresh:" + m_MinFresh.ToString()) + 277(m_MaxStale == TimeSpan.MinValue? string.Empty: " MaxStale:" + m_MaxStale.ToString()) +
net\System\Net\Cache\RequestCacheValidator.cs (3)
87private TimeSpan _UnspecifiedMaxAge; 100protected RequestCacheValidator(bool strictCacheErrors, TimeSpan unspecifiedMaxAge) 117internal TimeSpan UnspecifiedMaxAge
net\System\Net\Configuration\HttpCachePolicyElement.cs (12)
34public TimeSpan MaximumAge 36get { return (TimeSpan)this[this.maximumAge]; } 41public TimeSpan MaximumStale 43get { return (TimeSpan)this[this.maximumStale]; } 48public TimeSpan MinimumFresh 50get { return (TimeSpan)this[this.minimumFresh]; } 87new ConfigurationProperty(ConfigurationStrings.MaximumAge, typeof(TimeSpan), TimeSpan.MaxValue, 91new ConfigurationProperty(ConfigurationStrings.MaximumStale, typeof(TimeSpan), TimeSpan.MinValue, 95new ConfigurationProperty(ConfigurationStrings.MinimumFresh, typeof(TimeSpan), TimeSpan.MinValue,
net\System\Net\Configuration\HttpListenerTimeoutsElement.cs (15)
38return new ConfigurationProperty(name, typeof(TimeSpan), TimeSpan.Zero, null, new TimeSpanValidator(), 43public TimeSpan EntityBody 45get { return (TimeSpan)this[entityBody]; } 49public TimeSpan DrainEntityBody 51get { return (TimeSpan)this[drainEntityBody]; } 55public TimeSpan RequestQueue 57get { return (TimeSpan)this[requestQueue]; } 61public TimeSpan IdleConnection 63get { return (TimeSpan)this[idleConnection]; } 67public TimeSpan HeaderWait 69get { return (TimeSpan)this[headerWait]; } 99return type == typeof(TimeSpan); 104TimeSpan timeout = (TimeSpan)value;
net\System\Net\Configuration\RequestCachingSection.cs (8)
65public TimeSpan UnspecifiedMaximumAge 67get { return (TimeSpan)this[this.unspecifiedMaximumAge]; } 149typeof(TimeSpan), 150TimeSpan.FromDays(1), 190(httpPolicy.MinimumFresh != TimeSpan.MinValue ? HttpCacheAgeControl.MaxAgeAndMinFresh : HttpCacheAgeControl.MaxAgeAndMaxStale); 192this.defaultHttpCachePolicy = new HttpRequestCachePolicy(cacheAgeControl, httpPolicy.MaximumAge, (httpPolicy.MinimumFresh != TimeSpan.MinValue ? httpPolicy.MinimumFresh : httpPolicy.MaximumStale)); 261internal TimeSpan UnspecifiedMaximumAge 316TimeSpan unspecifiedMaximumAge;
net\System\Net\Configuration\SettingsSection.cs (3)
158TimeSpan ts; 180this.downloadTimeout = (ts == TimeSpan.MaxValue || ts == TimeSpan.Zero) ? Timeout.Infinite : (int) ts.TotalMilliseconds;
net\System\Net\Configuration\WebProxyScriptElement.cs (5)
55public TimeSpan DownloadTimeout 57get { return (TimeSpan) this[this.downloadTimeout]; } 90typeof(TimeSpan), 91TimeSpan.FromMinutes(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\HttpListenerContext.cs (3)
160public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync(string subProtocol, TimeSpan keepAliveInterval) 169TimeSpan keepAliveInterval) 183TimeSpan keepAliveInterval,
net\System\Net\HttpListenerTimeoutManager.cs (7)
65private TimeSpan GetTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE type) 73private void SetTimespanTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE type, TimeSpan value) 110public TimeSpan EntityBody 131public TimeSpan DrainEntityBody 147public TimeSpan RequestQueue 164public TimeSpan IdleConnection 182public TimeSpan HeaderWait
net\System\Net\mail\smtpconnection.cs (1)
21return (PooledStream)new SmtpPooledStream(pool, TimeSpan.MaxValue, false);
net\System\Net\mail\SmtpDateTime.cs (17)
76internal static readonly IDictionary<string, TimeSpan> timeZoneOffsetLookup = SmtpDateTime.InitializeShortHandLookups(); 80internal readonly static long timeSpanMaxTicks = TimeSpan.TicksPerHour * 99 + TimeSpan.TicksPerMinute * 59; 89internal static IDictionary<string, TimeSpan> InitializeShortHandLookups() 91Dictionary<string, TimeSpan> tempTimeZoneOffsetLookup = new Dictionary<string, TimeSpan>(); 94tempTimeZoneOffsetLookup.Add("UT", TimeSpan.Zero); // +0000 95tempTimeZoneOffsetLookup.Add("GMT", TimeSpan.Zero); // +0000 113private readonly TimeSpan timeZone; 131TimeSpan localTimeZone = TimeZoneInfo.Local.GetUtcOffset(value); 140this.timeZone = TimeSpan.Zero; 358internal bool TryParseTimeZoneString(string timeZoneString, out TimeSpan timeZone) 362timeZone = TimeSpan.Zero; 412internal TimeSpan ValidateAndGetSanitizedTimeSpan(TimeSpan span) 415TimeSpan sanitizedTimeSpan = new TimeSpan(span.Days, span.Hours, span.Minutes, 0, 0); 427internal string TimeSpanToOffset(TimeSpan span)
net\System\Net\mail\SmtpTransport.cs (1)
29internal SmtpPooledStream(ConnectionPool connectionPool, TimeSpan lifetime, bool checkLifetime) : base (connectionPool,lifetime,checkLifetime) {
net\System\Net\WebSockets\ClientWebSocket.cs (2)
402private TimeSpan keepAliveInterval; 583public TimeSpan KeepAliveInterval
net\System\Net\WebSockets\InternalClientWebSocket.cs (1)
26TimeSpan keepAliveInterval, bool useZeroMaskingKey, ArraySegment<byte> internalBuffer)
net\System\Net\WebSockets\ServerWebSocket.cs (1)
28TimeSpan keepAliveInterval,
net\System\Net\WebSockets\WebSocket.cs (4)
25private static TimeSpan? defaultKeepAliveInterval; 27public static TimeSpan DefaultKeepAliveInterval 67TimeSpan keepAliveInterval, 93TimeSpan keepAliveInterval,
net\System\Net\WebSockets\WebSocketBase.cs (9)
72TimeSpan keepAliveInterval, 2195public static KeepAliveTracker Create(TimeSpan keepAliveInterval) 2236private readonly TimeSpan m_KeepAliveInterval; 2241public DefaultKeepAliveTracker(TimeSpan keepAliveInterval) 2296TimeSpan idleTime = GetIdleTime(); 2316private TimeSpan GetIdleTime() 2318TimeSpan sinceLastSendActivity = GetTimeElapsed(m_LastSendActivity); 2319TimeSpan sinceLastReceiveActivity = GetTimeElapsed(m_LastReceiveActivity); 2329private TimeSpan GetTimeElapsed(Stopwatch watch)
net\System\Net\WebSockets\WebSocketHelpers.cs (3)
57TimeSpan keepAliveInterval, 70TimeSpan keepAliveInterval, 453TimeSpan keepAliveInterval)
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (2)
738internal static TimeSpan WebSocketGetDefaultKeepAliveInterval() 748return TimeSpan.FromMilliseconds(result);
regex\system\text\regularexpressions\Regex.cs (22)
63private static readonly TimeSpan MaximumMatchTimeout = TimeSpan.FromMilliseconds(Int32.MaxValue - 1); 77public static readonly TimeSpan InfiniteMatchTimeout = Timeout.InfiniteTimeSpan; 93TimeSpan internalMatchTimeout; // timeout for the execution of this regex 111internal static readonly TimeSpan FallbackDefaultMatchTimeout = InfiniteMatchTimeout; 120internal static readonly TimeSpan DefaultMatchTimeout = InitDefaultMatchTimeout(); 232Regex(String pattern, RegexOptions options, TimeSpan matchTimeout) 236private Regex(String pattern, RegexOptions options, TimeSpan matchTimeout, bool useCache) { 326TimeSpan timeout = new TimeSpan(timeoutTicks); 361static void ValidateMatchTimeout(TimeSpan matchTimeout) { 367if (TimeSpan.Zero < matchTimeout && matchTimeout <= MaximumMatchTimeout) 387private static TimeSpan InitDefaultMatchTimeout() { 398if (!(defTmOut is TimeSpan)) { 411TimeSpan defaultTimeout = (TimeSpan) defTmOut; 525TimeSpan MatchTimeout { 748static bool IsMatch(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) { 822static Match Match(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) { 908static MatchCollection Matches(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) { 982static String Replace(String input, String pattern, String replacement, RegexOptions options, TimeSpan matchTimeout) { 1082static String Replace(String input, String pattern, MatchEvaluator evaluator, RegexOptions options, TimeSpan matchTimeout) { 1170static String[] Split(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) {
regex\system\text\regularexpressions\RegexCompilationInfo.cs (3)
29private TimeSpan matchTimeout; 45public RegexCompilationInfo(String pattern, RegexOptions options, String name, String fullnamespace, bool ispublic, TimeSpan matchTimeout) { 122public TimeSpan MatchTimeout {
regex\system\text\regularexpressions\RegexCompiler.cs (4)
230TimeSpan mTimeout = regexes[i].MatchTimeout; 3186internal void GenerateRegexType(String pattern, RegexOptions opts, String name, bool ispublic, RegexCode code, RegexTree tree, Type factory, TimeSpan matchTimeout) { 3223Call(typeof(TimeSpan).GetMethod("FromTicks", BindingFlags.Static | BindingFlags.Public)); 3280tmoutCtorBuilder = _typebuilder.DefineConstructor(ma, CallingConventions.Standard, new Type[] { typeof(TimeSpan) });
regex\System\Text\RegularExpressions\RegexMatchTimeoutException.cs (8)
38private TimeSpan matchTimeout = TimeSpan.FromTicks(-1); 48public RegexMatchTimeoutException(string regexInput, string regexPattern, TimeSpan matchTimeout) : 102TimeSpan timeout = TimeSpan.FromTicks(info.GetInt64("timeoutTicks")); 116Init("", "", TimeSpan.FromTicks(-1)); 119private void Init(string input, string pattern, TimeSpan timeout) { 154public TimeSpan MatchTimeout {
regex\system\text\regularexpressions\RegexRunner.cs (2)
119Match Scan(Regex regex, String text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout) { 267throw new RegexMatchTimeoutException(runtext, runregex.pattern, TimeSpan.FromMilliseconds(timeout));
security\system\security\cryptography\x509\x509chain.cs (1)
350TimeSpan timeout,
security\system\security\cryptography\x509\x509chainpolicy.cs (2)
50private TimeSpan m_timeout; 112public TimeSpan UrlRetrievalTimeout {
security\system\security\cryptography\x509\x509utils.cs (1)
549TimeSpan timeout,
services\monitoring\system\diagnosticts\Process.cs (6)
842public TimeSpan PrivilegedProcessorTime { 1070public TimeSpan TotalProcessorTime { 1082public TimeSpan UserProcessorTime { 2814public TimeSpan PrivilegedProcessorTime { 2820public TimeSpan UserProcessorTime { 2826public TimeSpan TotalProcessorTime {
services\monitoring\system\diagnosticts\ProcessThread.cs (3)
215public TimeSpan PrivilegedProcessorTime { 262public TimeSpan TotalProcessorTime { 274public TimeSpan UserProcessorTime {
services\monitoring\system\diagnosticts\Stopwatch.cs (1)
120public TimeSpan Elapsed {
sys\system\collections\concurrent\BlockingCollection.cs (13)
327/// <param name="timeout">A <see cref="System.TimeSpan"/> that represents the number of milliseconds 328/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 341public bool TryAdd(T item, TimeSpan timeout) 605/// <param name="timeout">A <see cref="System.TimeSpan"/> that represents the number of milliseconds 606/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 618public bool TryTake(out T item, TimeSpan timeout) 891/// <param name="timeout">A <see cref="System.TimeSpan"/> that represents the number of milliseconds 892/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 909public static int TryAddToAny(BlockingCollection<T>[] collections, T item, TimeSpan timeout) 1255/// <param name="timeout">A <see cref="System.TimeSpan"/> that represents the number of milliseconds 1256/// to wait, or a <see cref="System.TimeSpan"/> that represents -1 milliseconds to wait indefinitely. 1275public static int TryTakeFromAny(BlockingCollection<T>[] collections, out T item, TimeSpan timeout) 1778private static void ValidateTimeout(TimeSpan timeout)
sys\system\threading\Barrier.cs (2)
556public Boolean SignalAndWait(TimeSpan timeout) 583public Boolean SignalAndWait(TimeSpan timeout, CancellationToken cancellationToken)
System.Activities (173)
System\Activities\ActivityDefaults.cs (24)
13public static TimeSpan AcquireLockTimeout = TimeSpan.FromSeconds(30); 14public static TimeSpan AsyncOperationContextCompleteTimeout = TimeSpan.FromSeconds(30); 15public static TimeSpan CloseTimeout = TimeSpan.FromSeconds(30); 16public static TimeSpan DeleteTimeout = TimeSpan.FromSeconds(30); 17public static TimeSpan InvokeTimeout = TimeSpan.MaxValue; 18public static TimeSpan LoadTimeout = TimeSpan.FromSeconds(30); 19public static TimeSpan OpenTimeout = TimeSpan.FromSeconds(30); 20public static TimeSpan ResumeBookmarkTimeout = TimeSpan.FromSeconds(30); 21public static TimeSpan SaveTimeout = TimeSpan.FromSeconds(30); 22public static TimeSpan InternalSaveTimeout = TimeSpan.MaxValue; 23public static TimeSpan TrackingTimeout = TimeSpan.FromSeconds(30); 24public static TimeSpan TransactionCompletionTimeout = TimeSpan.FromSeconds(30);
System\Activities\AsyncOperationContext.cs (1)
112completeData, TimeSpan.MaxValue, onResumeAsyncCodeActivityBookmark, this.executor);
System\Activities\DurableInstancing\PersistenceIOParticipant.cs (4)
24protected virtual IAsyncResult BeginOnSave(IDictionary<XName, object> readWriteValues, IDictionary<XName, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state) 37protected virtual IAsyncResult BeginOnLoad(IDictionary<XName, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state) 50internal override IAsyncResult InternalBeginOnSave(IDictionary<XName, object> readWriteValues, IDictionary<XName, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state) 60internal override IAsyncResult InternalBeginOnLoad(IDictionary<XName, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\DurableInstancing\PersistenceParticipant.cs (4)
88IAsyncResult IPersistencePipelineModule.BeginOnSave(IDictionary<XName, object> readWriteValues, IDictionary<XName, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state) 98IAsyncResult IPersistencePipelineModule.BeginOnLoad(IDictionary<XName, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state) 113internal virtual IAsyncResult InternalBeginOnSave(IDictionary<XName, object> readWriteValues, IDictionary<XName, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state) 123internal virtual IAsyncResult InternalBeginOnLoad(IDictionary<XName, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\Hosting\WorkflowInstance.cs (5)
470protected internal abstract IAsyncResult OnBeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state); 491protected void FlushTrackingRecords(TimeSpan timeout) 499protected IAsyncResult BeginFlushTrackingRecords(TimeSpan timeout, AsyncCallback callback, object state) 1113public void FlushTrackingRecords(TimeSpan timeout) 1118public IAsyncResult BeginFlushTrackingRecords(TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\Hosting\WorkflowInstanceProxy.cs (2)
37return BeginResumeBookmark(bookmark, value, TimeSpan.MaxValue, callback, state); 40public IAsyncResult BeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\Runtime\ActivityExecutor.cs (1)
2640internal IAsyncResult BeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\Statements\Delay.cs (5)
28public InArgument<TimeSpan> Duration 44RuntimeArgument durationArgument = new RuntimeArgument("Duration", typeof(TimeSpan), ArgumentDirection.In, true); 58TimeSpan duration = this.Duration.Get(context); 59if (duration < TimeSpan.Zero) 64if (duration == TimeSpan.Zero)
System\Activities\Statements\DurableTimerExtension.cs (4)
85protected override void OnRegisterTimer(TimeSpan timeout, Bookmark bookmark) 88if (timeout < TimeSpan.MaxValue) 161result = targetInstance.BeginResumeBookmark(timerBookmark, null, TimeSpan.MaxValue, 293protected override IAsyncResult BeginOnSave(IDictionary<XName, object> readWriteValues, IDictionary<XName, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\Statements\TimerExtension.cs (2)
15public void RegisterTimer(TimeSpan timeout, Bookmark bookmark) 25protected abstract void OnRegisterTimer(TimeSpan timeout, Bookmark bookmark);
System\Activities\Statements\TimerTable.cs (2)
46public void AddTimer(TimeSpan timeout, Bookmark bookmark) 112this.AddTimer(TimeSpan.FromSeconds(retryDuration), bookmark);
System\Activities\Statements\TransactionScope.cs (10)
23InArgument<TimeSpan> timeout; 30Variable<TimeSpan> nestedScopeTimeout; 40this.timeout = new InArgument<TimeSpan>(TimeSpan.FromMinutes(1)); 43this.nestedScopeTimeout = new Variable<TimeSpan>(); 78public InArgument<TimeSpan> Timeout 100Duration = new InArgument<TimeSpan>(this.nestedScopeTimeout) 130RuntimeArgument timeoutArgument = new RuntimeArgument("Timeout", typeof(TimeSpan), ArgumentDirection.In, false); 343TimeSpan timeout = this.Timeout.Get(context); 359TimeSpan transactionTimeout = this.Timeout.Get(context);
System\Activities\Tracking\EtwTrackingParticipant.cs (2)
79protected internal override IAsyncResult BeginTrack(TrackingRecord record, TimeSpan timeout, AsyncCallback callback, object state) 90protected internal override void Track(TrackingRecord record, TimeSpan timeout)
System\Activities\Tracking\TrackingParticipant.cs (4)
23protected internal virtual IAsyncResult BeginTrack(TrackingRecord record, TimeSpan timeout, AsyncCallback callback, object state) 36protected internal abstract void Track(TrackingRecord record, TimeSpan timeout); 43TimeSpan timeout; 45public TrackAsyncResult(TrackingParticipant participant, TrackingRecord record, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\Tracking\TrackingProvider.cs (3)
149public void FlushPendingRecords(TimeSpan timeout) 201public IAsyncResult BeginFlushPendingRecords(TimeSpan timeout, AsyncCallback callback, object state) 309public FlushPendingRecordsAsyncResult(TrackingProvider provider, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\WorkflowApplication.cs (78)
501bool WaitForTurn(InstanceOperation operation, TimeSpan timeout) 507bool WaitForTurnNoEnqueue(InstanceOperation operation, TimeSpan timeout) 519bool WaitForTurnAsync(InstanceOperation operation, TimeSpan timeout, Action<object, TimeoutException> callback, object state) 524bool WaitForTurnAsync(InstanceOperation operation, bool push, TimeSpan timeout, Action<object, TimeoutException> callback, object state) 531bool WaitForTurnNoEnqueueAsync(InstanceOperation operation, TimeSpan timeout, Action<object, TimeoutException> callback, object state) 1017public void Terminate(string reason, TimeSpan timeout) 1027public void Terminate(Exception reason, TimeSpan timeout) 1074public IAsyncResult BeginTerminate(string reason, TimeSpan timeout, AsyncCallback callback, object state) 1084public IAsyncResult BeginTerminate(Exception reason, TimeSpan timeout, AsyncCallback callback, object state) 1126public void Cancel(TimeSpan timeout) 1159public IAsyncResult BeginCancel(TimeSpan timeout, AsyncCallback callback, object state) 1249internal static IDictionary<string, object> Invoke(Activity activity, IDictionary<string, object> inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout) 1291internal static IAsyncResult BeginInvoke(Activity activity, IDictionary<string, object> inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout, SynchronizationContext syncContext, AsyncInvokeContext invokeContext, AsyncCallback callback, object state) 1308public void Run(TimeSpan timeout) 1313void InternalRun(TimeSpan timeout, bool isUserRun) 1363public IAsyncResult BeginRun(TimeSpan timeout, AsyncCallback callback, object state) 1368IAsyncResult BeginInternalRun(TimeSpan timeout, bool isUserRun, AsyncCallback callback, object state) 1439public static void CreateDefaultInstanceOwner(InstanceStore instanceStore, WorkflowIdentity definitionIdentity, WorkflowIdentityFilter identityFilter, TimeSpan timeout) 1462WorkflowIdentityFilter identityFilter, TimeSpan timeout, AsyncCallback callback, object state) 1490public static void DeleteDefaultInstanceOwner(InstanceStore instanceStore, TimeSpan timeout) 1511public static IAsyncResult BeginDeleteDefaultInstanceOwner(InstanceStore instanceStore, TimeSpan timeout, AsyncCallback callback, object state) 1541static InstanceView ExecuteInstanceCommandWithTemporaryHandle(InstanceStore instanceStore, InstancePersistenceCommand command, TimeSpan timeout) 1586public static WorkflowApplicationInstance GetRunnableInstance(InstanceStore instanceStore, TimeSpan timeout) 1607public static IAsyncResult BeginGetRunnableInstance(InstanceStore instanceStore, TimeSpan timeout, AsyncCallback callback, object state) 1633public static WorkflowApplicationInstance GetInstance(Guid instanceId, InstanceStore instanceStore, TimeSpan timeout) 1654public static IAsyncResult BeginGetInstance(Guid instanceId, InstanceStore instanceStore, TimeSpan timeout, AsyncCallback callback, object state) 1680public void Load(WorkflowApplicationInstance instance, TimeSpan timeout) 1690public void Load(WorkflowApplicationInstance instance, DynamicUpdateMap updateMap, TimeSpan timeout) 1749public void LoadRunnableInstance(TimeSpan timeout) 1802public void Load(Guid instanceId, TimeSpan timeout) 1962static WorkflowApplicationInstance LoadCore(TimeSpan timeout, bool loadAny, PersistenceManager persistenceManager) 2038internal static void DiscardInstance(PersistenceManagerBase persistanceManager, TimeSpan timeout) 2045internal static IAsyncResult BeginDiscardInstance(PersistenceManagerBase persistanceManager, TimeSpan timeout, AsyncCallback callback, object state) 2089public IAsyncResult BeginLoadRunnableInstance(TimeSpan timeout, AsyncCallback callback, object state) 2126public IAsyncResult BeginLoad(Guid instanceId, TimeSpan timeout, AsyncCallback callback, object state) 2160public IAsyncResult BeginLoad(WorkflowApplicationInstance instance, TimeSpan timeout, 2172public IAsyncResult BeginLoad(WorkflowApplicationInstance instance, DynamicUpdateMap updateMap, TimeSpan timeout, 2255IAsyncResult BeginInternalPersist(PersistenceOperation operation, TimeSpan timeout, bool isInternalPersist, AsyncCallback callback, object state) 2414public void Persist(TimeSpan timeout) 2445public IAsyncResult BeginPersist(TimeSpan timeout, AsyncCallback callback, object state) 2471public ReadOnlyCollection<BookmarkInfo> GetBookmarks(TimeSpan timeout) 2553public BookmarkResumptionResult ResumeBookmark(string bookmarkName, object value, TimeSpan timeout) 2564public BookmarkResumptionResult ResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout) 2651public IAsyncResult BeginResumeBookmark(string bookmarkName, object value, TimeSpan timeout, AsyncCallback callback, object state) 2668public IAsyncResult BeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state) 2682protected internal override IAsyncResult OnBeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state) 2807public void Unload(TimeSpan timeout) 2851public IAsyncResult BeginUnload(TimeSpan timeout, AsyncCallback callback, object state) 3072public InvokeAsyncResult(Activity activity, IDictionary<string, object> inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout, SynchronizationContext syncContext, AsyncInvokeContext invokeContext, AsyncCallback callback, object state) 3191public ResumeBookmarkAsyncResult(WorkflowApplication instance, Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state) 3196public ResumeBookmarkAsyncResult(WorkflowApplication instance, Bookmark bookmark, object value, bool isFromExtension, TimeSpan timeout, AsyncCallback callback, object state) 3446public UnloadOrPersistAsyncResult(WorkflowApplication instance, TimeSpan timeout, PersistenceOperation operation, 3657TimeSpan flushTrackingRecordsTimeout; 3952protected void Run(TimeSpan timeout) 4097public static TerminateAsyncResult Create(WorkflowApplication instance, Exception reason, TimeSpan timeout, AsyncCallback callback, object state) 4127public static CancelAsyncResult Create(WorkflowApplication instance, TimeSpan timeout, AsyncCallback callback, object state) 4160public static RunAsyncResult Create(WorkflowApplication instance, bool isUserRun, TimeSpan timeout, AsyncCallback callback, object state) 4302IDictionary<XName, InstanceValue> values, DynamicUpdateMap updateMap, TimeSpan timeout, 4316bool loadAny, TimeSpan timeout, AsyncCallback callback, object state) 4744public PumpBasedSynchronizationContext(TimeSpan timeout) 4833bool WaitOne(AutoResetEvent waiter, TimeSpan timeout) 5318TimeSpan timeout, AsyncCallback callback, object state) 5421public bool WaitForTurn(TimeSpan timeout) 5431public bool WaitForTurnAsync(TimeSpan timeout, Action<object, TimeoutException> callback, object state) 5659public void Initialize(WorkflowIdentity definitionIdentity, TimeSpan timeout) 5708public IAsyncResult BeginInitialize(WorkflowIdentity definitionIdentity, TimeSpan timeout, AsyncCallback callback, object state) 5753public void DeleteOwner(TimeSpan timeout) 5770public IAsyncResult BeginDeleteOwner(TimeSpan timeout, AsyncCallback callback, object state) 5808public void EnsureReadyness(TimeSpan timeout) 5821public IAsyncResult BeginEnsureReadyness(TimeSpan timeout, AsyncCallback callback, object state) 5958public void Save(IDictionary<XName, InstanceValue> instance, PersistenceOperation operation, TimeSpan timeout) 5964public IDictionary<XName, InstanceValue> Load(TimeSpan timeout) 5977public bool TryLoad(TimeSpan timeout, out IDictionary<XName, InstanceValue> data) 5983public IAsyncResult BeginSave(IDictionary<XName, InstanceValue> instance, PersistenceOperation operation, TimeSpan timeout, AsyncCallback callback, object state) 5994public IAsyncResult BeginLoad(TimeSpan timeout, AsyncCallback callback, object state) 6012public IAsyncResult BeginTryLoad(TimeSpan timeout, AsyncCallback callback, object state) 6039public void Unlock(TimeSpan timeout) 6049public IAsyncResult BeginUnlock(TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\WorkflowApplicationInstance.cs (2)
81public void Abandon(TimeSpan timeout) 94public IAsyncResult BeginAbandon(TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\WorkflowInvoker.cs (18)
93public static IDictionary<string, object> Invoke(Activity workflow, TimeSpan timeout) 105public static IDictionary<string, object> Invoke(Activity workflow, IDictionary<string, object> inputs, TimeSpan timeout) 129public static TResult Invoke<TResult>(Activity<TResult> workflow, IDictionary<string, object> inputs, TimeSpan timeout) 140public static TResult Invoke<TResult>(Activity<TResult> workflow, IDictionary<string, object> inputs, out IDictionary<string, object> additionalOutputs, TimeSpan timeout) 170public IAsyncResult BeginInvoke(TimeSpan timeout, AsyncCallback callback, object state) 184public IAsyncResult BeginInvoke(IDictionary<string, object> inputs, TimeSpan timeout, AsyncCallback callback, object state) 208IAsyncResult result = context.WorkflowApplication.BeginCancel(TimeSpan.MaxValue, cancelCallback, context); 229public IDictionary<string, object> Invoke(TimeSpan timeout) 243public IDictionary<string, object> Invoke(IDictionary<string, object> inputs, TimeSpan timeout) 255public void InvokeAsync(TimeSpan timeout) 265public void InvokeAsync(TimeSpan timeout, object userState) 277public void InvokeAsync(IDictionary<string, object> inputs, TimeSpan timeout) 287public void InvokeAsync(IDictionary<string, object> inputs, TimeSpan timeout, object userState) 299static IDictionary<string, object> Invoke(Activity workflow, TimeSpan timeout, WorkflowInstanceExtensionManager extensions) 321static IDictionary<string, object> Invoke(Activity workflow, IDictionary<string, object> inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions) 360IAsyncResult BeginInvoke(Activity workflow, IDictionary<string, object> inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions, AsyncCallback callback, object state) 373IAsyncResult BeginInvoke(Activity workflow, TimeSpan timeout, WorkflowInstanceExtensionManager extensions, AsyncCallback callback, object state) 391void InternalInvokeAsync(IDictionary<string, object> inputs, TimeSpan timeout, object userState)
System\Activities\WorkflowPersistenceContext.cs (2)
16public WorkflowPersistenceContext(bool transactionRequired, TimeSpan transactionTimeout) 21public WorkflowPersistenceContext(bool transactionRequired, Transaction transactionToUse, TimeSpan transactionTimeout)
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
59typeof(TimeSpan),
System.Activities.DurableInstancing (97)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (1)
35TimeSpan timeout,
System\Activities\DurableInstancing\DeleteWorkflowOwnerAsyncResult.cs (1)
25TimeSpan timeout,
System\Activities\DurableInstancing\DetectActivatableWorkflowsAsyncResult.cs (1)
26TimeSpan timeout,
System\Activities\DurableInstancing\DetectActivatableWorkflowsTask.cs (2)
12public DetectActivatableWorkflowsTask(SqlWorkflowInstanceStore store, SqlWorkflowInstanceStoreLock storeLock, TimeSpan taskInterval) 17public override void ResetTimer(bool fireImmediately, TimeSpan? taskIntervalOverride)
System\Activities\DurableInstancing\DetectRunnableInstancesAsyncResult.cs (2)
26TimeSpan timeout, 69TimeSpan? timeTillNextPoll = null;
System\Activities\DurableInstancing\DetectRunnableInstancesTask.cs (2)
12public DetectRunnableInstancesTask(SqlWorkflowInstanceStore store, SqlWorkflowInstanceStoreLock storeLock, TimeSpan taskInterval) 17public override void ResetTimer(bool fireImmediately, TimeSpan? taskIntervalOverride)
System\Activities\DurableInstancing\ExtendLockAsyncResult.cs (1)
25TimeSpan timeout,
System\Activities\DurableInstancing\ILoadRetryStrategy.cs (1)
11TimeSpan RetryDelay(int retryAttempt);
System\Activities\DurableInstancing\LoadRetryAsyncResult.cs (3)
24InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state) 42public TimeSpan RetryTimeout 92TimeSpan retryDelay = tryCommandAsyncResult.InstanceStore.GetNextRetryDelay(++tryCommandAsyncResult.retryCount);
System\Activities\DurableInstancing\LoadRetryConstantStrategy.cs (3)
11static readonly TimeSpan defaultRetryDelay = TimeSpan.FromSeconds(5); 13public TimeSpan RetryDelay(int retryAttempt)
System\Activities\DurableInstancing\LoadRetryExponentialBackoffStrategy.cs (8)
11readonly TimeSpan DefaultBackoffLimit = TimeSpan.FromSeconds(10); 12readonly TimeSpan DefaultBackoffMultiplier = TimeSpan.FromMilliseconds(100); 14readonly TimeSpan multiplier; 15readonly TimeSpan maxDelay; 25public TimeSpan RetryDelay(int retryAttempt) 29return TimeSpan.FromMilliseconds
System\Activities\DurableInstancing\LoadRetryHandler.cs (3)
70TimeSpan waitTime = TimeSpan.Zero; 112if (waitTime != TimeSpan.Zero)
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (1)
33TimeSpan timeout,
System\Activities\DurableInstancing\LoadWorkflowByKeyAsyncResult.cs (1)
21TimeSpan timeout,
System\Activities\DurableInstancing\LockRecoveryTask.cs (2)
11public LockRecoveryTask(SqlWorkflowInstanceStore store, SqlWorkflowInstanceStoreLock storeLock, TimeSpan taskInterval, TimeSpan taskTimeout)
System\Activities\DurableInstancing\LockRenewalTask.cs (2)
11public LockRenewalTask(SqlWorkflowInstanceStore store, SqlWorkflowInstanceStoreLock storeLock, TimeSpan taskInterval, TimeSpan taskTimeout)
System\Activities\DurableInstancing\PersistenceTask.cs (7)
16TimeSpan taskInterval; 20TimeSpan taskTimeout; 22public PersistenceTask(SqlWorkflowInstanceStore store, SqlWorkflowInstanceStoreLock storeLock, InstancePersistenceCommand instancePersistenceCommand, TimeSpan taskInterval, TimeSpan taskTimeout, bool automaticallyResetTimer) 80public virtual void ResetTimer(bool fireImmediately, TimeSpan? taskIntervalOverride) 82TimeSpan timeTillNextPoll = this.taskInterval; 99this.taskTimer.Set(fireImmediately ? TimeSpan.Zero : timeTillNextPoll);
System\Activities\DurableInstancing\QueryActivatableWorkflowAsyncResult.cs (1)
27TimeSpan timeout,
System\Activities\DurableInstancing\RecoverInstanceLocksAsyncResult.cs (1)
25TimeSpan timeout,
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (2)
53TimeSpan timeout, 250TimeSpan datetimeOffset = pendingTimerExpiration - DateTime.UtcNow;
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (5)
18static readonly TimeSpan MaximumOpenTimeout = TimeSpan.FromMinutes(2); 61TimeSpan timeout, int retryCount, int maximumRetries, AsyncCallback callback, object state) 69this.timeoutHelper = new TimeoutHelper(TimeSpan.FromTicks(openTimeout)); 255return (this.timeoutHelper.RemainingTime() <= TimeSpan.Zero);
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (27)
21static readonly TimeSpan defaultConnectionOpenTime = TimeSpan.FromSeconds(15); 22static readonly TimeSpan defaultInstancePersistenceEventDetectionPeriod = TimeSpan.FromSeconds(5); 23static readonly TimeSpan defaultLockRenewalPeriod = TimeSpan.FromSeconds(30); 24static readonly TimeSpan minimumTimeSpanAllowed = TimeSpan.FromSeconds(1); 27TimeSpan bufferedHostLockRenewalPeriod; 33TimeSpan hostLockRenewalPeriod; 38TimeSpan instancePersistenceEventDetectionPeriod; 64this.bufferedHostLockRenewalPeriod = TimeSpan.Zero; 97public TimeSpan HostLockRenewalPeriod 153public TimeSpan RunnableInstancesDetectionPeriod 176internal TimeSpan BufferedHostLockRenewalPeriod 181if (this.bufferedHostLockRenewalPeriod == TimeSpan.Zero) 183double lockBuffer = Math.Min(SqlWorkflowInstanceStoreConstants.LockOwnerTimeoutBuffer.TotalSeconds, (TimeSpan.MaxValue.Subtract(this.HostLockRenewalPeriod)).TotalSeconds); 184this.bufferedHostLockRenewalPeriod = TimeSpan.FromSeconds(Math.Min(Int32.MaxValue, lockBuffer + this.HostLockRenewalPeriod.TotalSeconds)); 330protected internal override IAsyncResult BeginTryCommand(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state) 355internal IAsyncResult BeginTryCommandSkipRetry(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state) 391internal IAsyncResult BeginTryCommandInternalWithVersionCheck(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state, Version targetVersion) 398internal IAsyncResult BeginTryCommandInternal(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state) 403internal IAsyncResult BeginTryCommandInternal(InstancePersistenceContext context, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 501this.BeginTryCommandInternal(null, command, TimeSpan.MaxValue, this.unlockInstanceCallback, command); 505internal TimeSpan GetNextRetryDelay(int retryAttempt) 630this.BeginTryCommandInternal(null, command, TimeSpan.MaxValue, unlockInstanceCallback, command); 682BackoffTimeoutHelper = new BackoffTimeoutHelper(TimeSpan.MaxValue)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (2)
29TimeSpan timeout, 45TimeSpan timeout,
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreConstants.cs (6)
12public static readonly TimeSpan MaxHostLockRenewalPulseInterval = TimeSpan.FromSeconds(30); 13public static readonly TimeSpan DefaultTaskTimeout = TimeSpan.FromSeconds(30); 14public static readonly TimeSpan LockOwnerTimeoutBuffer = TimeSpan.FromSeconds(30);
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreLock.cs (5)
16TimeSpan hostLockRenewalPulseInterval = TimeSpan.Zero; 85TimeSpan HostLockRenewalPulseInterval 89if (this.hostLockRenewalPulseInterval == TimeSpan.Zero) 116TimeSpan runnableInstancesDetectionPeriod = this.sqlWorkflowInstanceStore.RunnableInstancesDetectionPeriod;
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (1)
31TimeSpan timeout,
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (1)
25TimeSpan timeout,
System\Activities\DurableInstancing\UnlockInstanceAsyncResult.cs (1)
24TimeSpan timeout,
System\Activities\DurableInstancing\WorkflowOwnerAsyncResult.cs (1)
25TimeSpan timeout,
System\Activities\DurableInstancing\XmlPropertyBag.cs (3)
131else if (value is TimeSpan) 280else if (value is TimeSpan) 282return XmlConvert.ToString((TimeSpan)value);
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (1)
208this.tryHideTimer.Interval = TimeSpan.FromMilliseconds(200);
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
143return type.IsPrimitive || type == typeof(string) || type == typeof(TimeSpan) || type == typeof(DateTime);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
1532var dt = new DispatcherTimer(TimeSpan.FromSeconds(6), DispatcherPriority.ApplicationIdle, (sender, e) => { tip.IsOpen = false; }, r.Dispatcher);
System.AddIn (4)
System\Addin\Hosting\AddInProcess.cs (2)
60private TimeSpan _startupTimeout = new TimeSpan(0, 0, 10); 62public TimeSpan StartupTimeout
System\Addin\Pipeline\ContractBase.cs (2)
246public TimeSpan Renewal(ILease lease) 254return m_lifetimeTokens.Count > 0 ? lease.InitialLeaseTime : TimeSpan.Zero;
System.ComponentModel.DataAnnotations (7)
DataAnnotations\EmailAddressAttribute.cs (2)
59TimeSpan matchTimeout = TimeSpan.FromSeconds(2);
DataAnnotations\PhoneAttribute.cs (2)
74TimeSpan matchTimeout = TimeSpan.FromSeconds(2);
DataAnnotations\RegularExpressionAttribute.cs (1)
111: Regex = new Regex(Pattern, default(RegexOptions), TimeSpan.FromMilliseconds((double)MatchTimeoutInMilliseconds));
DataAnnotations\UrlAttribute.cs (2)
52TimeSpan matchTimeout = TimeSpan.FromSeconds(2);
System.Configuration (50)
System\Configuration\InfiniteTimeSpanConverter.cs (5)
22static readonly TypeConverter s_TimeSpanConverter = TypeDescriptor.GetConverter(typeof(TimeSpan)); 25ValidateType(value, typeof(TimeSpan)); 27if ((TimeSpan)value == TimeSpan.MaxValue) { 39return TimeSpan.MaxValue;
System\Configuration\PositiveTimeSpanValidator.cs (3)
15return (type == typeof(TimeSpan)); 22if (((TimeSpan)value) <= TimeSpan.Zero) {
System\Configuration\TimeSpanMinutesConverter.cs (3)
24ValidateType(value, typeof(TimeSpan)); 26long data = (long)(((TimeSpan)value).TotalMinutes); 36return TimeSpan.FromMinutes((double)min);
System\Configuration\TimeSpanMinutesOrInfiniteConverter.cs (4)
24ValidateType(value, typeof(TimeSpan)); 26if ((TimeSpan)value == TimeSpan.MaxValue) { 39return TimeSpan.MaxValue;
System\Configuration\TimeSpanSecondsConverter.cs (3)
24ValidateType(value, typeof(TimeSpan)); 26long data = (long)(((TimeSpan)value).TotalSeconds); 40return TimeSpan.FromSeconds((double)min);
System\Configuration\TimeSpanSecondsOrInfiniteConverter.cs (4)
24ValidateType(value, typeof(TimeSpan)); 26if ((TimeSpan)value == TimeSpan.MaxValue) { 38return TimeSpan.MaxValue;
System\Configuration\TimeSpanValidator.cs (13)
30private TimeSpan _minValue = TimeSpan.MinValue; 31private TimeSpan _maxValue = TimeSpan.MaxValue; 34public TimeSpanValidator(TimeSpan minValue, TimeSpan maxValue) 38public TimeSpanValidator(TimeSpan minValue, TimeSpan maxValue, bool rangeIsExclusive) 42public TimeSpanValidator(TimeSpan minValue, TimeSpan maxValue, bool rangeIsExclusive, long resolutionInSeconds) { 59return (type == typeof(TimeSpan)); 63ValidatorUtils.HelperParamValidation(value, typeof(TimeSpan)); 65ValidatorUtils.ValidateScalar((TimeSpan)value,
System\Configuration\TimeSpanValidatorAttribute.cs (10)
26private TimeSpan _min = TimeSpan.MinValue; 27private TimeSpan _max = TimeSpan.MaxValue; 42public TimeSpan MinValue { 48public TimeSpan MaxValue { 59TimeSpan timeValue = TimeSpan.Parse(value, CultureInfo.InvariantCulture); 74TimeSpan timeValue = TimeSpan.Parse(value, CultureInfo.InvariantCulture);
System\Configuration\ValidatorUtils.cs (5)
98public static void ValidateScalar(TimeSpan value, TimeSpan min, TimeSpan max, long resolutionInSeconds, bool exclusiveRange) { 103ValidateResolution(TimeSpan.FromSeconds( resolutionInSeconds ).ToString(), value.Ticks, resolutionInSeconds * TimeSpan.TicksPerSecond);
System.Core (9)
System\Diagnostics\Eventing\Reader\EventLogReader.cs (4)
140private bool GetNextBatch(TimeSpan ts) { 143if (ts == TimeSpan.MaxValue) 166return ReadEvent(TimeSpan.MaxValue); 172public EventRecord ReadEvent(TimeSpan timeout) {
System\Diagnostics\Eventing\Reader\ProviderMetadataCachedInformation.cs (1)
142TimeSpan timeDifference = timeNow.Subtract(kvp.Value.TheTime);
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (4)
244public TimeoutTracker(TimeSpan timeout) 292public bool TryEnterReadLock(TimeSpan timeout) 454public bool TryEnterWriteLock(TimeSpan timeout) 677public bool TryEnterUpgradeableReadLock(TimeSpan timeout)
System.Data (170)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (1)
208this.tryHideTimer.Interval = TimeSpan.FromMilliseconds(200);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
143return type.IsPrimitive || type == typeof(string) || type == typeof(TimeSpan) || type == typeof(DateTime);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
1532var dt = new DispatcherTimer(TimeSpan.FromSeconds(6), DispatcherPriority.ApplicationIdle, (sender, e) => { tip.IsOpen = false; }, r.Dispatcher);
fx\src\data\Microsoft\SqlServer\Server\MemoryRecordBuffer.cs (2)
115public override TimeSpan GetTimeSpan(SmiEventSink sink, int ordinal) { 212public override void SetTimeSpan(SmiEventSink sink, int ordinal, TimeSpan value) {
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
133ht.Add( typeof( System.TimeSpan ), ExtendedClrTypeCode.TimeSpan ); 355if (value.GetType() == typeof(TimeSpan) && smiVersion >= SmiContextFactory.KatmaiVersion)
fx\src\data\Microsoft\SqlServer\Server\SmiTypedGetterSetter.cs (2)
201public virtual TimeSpan GetTimeSpan(SmiEventSink sink, int ordinal) { 401public virtual void SetTimeSpan(SmiEventSink sink, int ordinal, TimeSpan value) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
219public virtual TimeSpan GetTimeSpan(int ordinal) { 473public virtual void SetTimeSpan(int ordinal, TimeSpan value) {
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (2)
51[FieldOffset(0)] internal TimeSpan _timeSpan; 270internal TimeSpan TimeSpan {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (19)
774internal static TimeSpan GetTimeSpan(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData, bool gettersSupportKatmaiDateTime) { 783return (TimeSpan) obj; 787internal static TimeSpan GetTimeSpan(SmiEventSink_Default sink, SmiTypedGetterSetter getters, int ordinal, SmiMetaData metaData) { 792return (TimeSpan)GetValue200(sink, getters, ordinal, metaData, null); 1557internal static void SetTimeSpan(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, TimeSpan value, bool settersSupportKatmaiDateTime) { 1708SetTimeSpan_Checked(sink, setters, ordinal, metaData, (TimeSpan)value); 1999TimeSpan ts; 2003ts = (TimeSpan)reader.GetValue(i); 2279TimeSpan ts; 2286ts = (TimeSpan)record.GetValue(i); 2426private static readonly TimeSpan x_timeMin = TimeSpan.Zero; 2427private static readonly TimeSpan x_timeMax = new TimeSpan(TimeSpan.TicksPerDay - 1); 2428private static void VerifyTimeRange(SqlDbType dbType, TimeSpan value) { 2439private static void SetTimeSpan_Checked(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal, SmiMetaData metaData, TimeSpan value) { 3200private static TimeSpan GetTimeSpan_Unchecked(SmiEventSink_Default sink, SmiTypedGetterSetter getters, int ordinal) { 3203TimeSpan result = getters.GetTimeSpan(sink, ordinal); 3337private static void SetTimeSpan_Unchecked(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal, TimeSpan value) {
fx\src\data\System\Data\CodeGen\datacache.cs (1)
863}else if(col.DataType == typeof(DateTime) || col.DataType == typeof(TimeSpan)) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
40typeof(TimeSpan),
fx\src\data\System\Data\Common\AdapterUtil.cs (4)
1934long result = checked((long)seconds * TimeSpan.TicksPerSecond); 1939long result = checked(milliseconds * TimeSpan.TicksPerMillisecond); 1965long result = timerValue / TimeSpan.TicksPerMillisecond; 1970long result = timerValue / TimeSpan.TicksPerSecond;
fx\src\data\System\Data\Common\DataStorage.cs (1)
88typeof(TimeSpan),
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
187if (typeof(TimeSpan) == dataType) {
fx\src\data\System\Data\Common\SQLConvert.cs (4)
525return XmlConvert.ToString((TimeSpan) value); 559return (TimeSpan) value; 704return (TimeSpan) value; 771return XmlConvert.ToString((TimeSpan) value);
fx\src\data\System\Data\Common\TimeSpanStorage.cs (30)
18private static readonly TimeSpan defaultValue = TimeSpan.Zero; 20private TimeSpan[] values; 23: base(column, typeof(TimeSpan), defaultValue, StorageType.TimeSpan) { 31TimeSpan min = TimeSpan.MaxValue; 36min=(TimeSpan.Compare(values[record],min) < 0) ? values[record] : min; 45TimeSpan max = TimeSpan.MinValue; 50max=(TimeSpan.Compare(values[record],max) >= 0) ? values[record] : max; 76return TimeSpan.FromTicks((long)Math.Round(sum)); 91return TimeSpan.FromTicks((long)Math.Round(meanSum / meanCount)); 120return TimeSpan.FromTicks((long)stDev); 127throw ExprException.Overflow(typeof(TimeSpan)); 133TimeSpan valueNo1 = values[recordNo1]; 134TimeSpan valueNo2 = values[recordNo2]; 141return TimeSpan.Compare(valueNo1, valueNo2); 155TimeSpan valueNo1 = values[recordNo]; 159return valueNo1.CompareTo((TimeSpan)value); 162private static TimeSpan ConvertToTimeSpan(object value) { 167return TimeSpan.Parse((string)value); 176return (TimeSpan) value; 199TimeSpan value = values[record]; 219TimeSpan[] newValues = new TimeSpan[capacity]; 232return XmlConvert.ToString((TimeSpan)value); 236return new TimeSpan[recordCount]; 240TimeSpan[] typedStore = (TimeSpan[]) store; 246values = (TimeSpan[]) store;
fx\src\data\System\Data\Filter\BinaryNode.cs (17)
337if (vLeft is TimeSpan && vRight is DateTime) { 338value = (DateTime)vRight + (TimeSpan)vLeft; 340else if (vLeft is DateTime && vRight is TimeSpan) { 341value = (DateTime)vLeft + (TimeSpan)vRight; 348value = (TimeSpan)vLeft + (TimeSpan)vRight; 378if (vLeft is TimeSpan && vRight is SqlDateTime) { 380value = (SqlDateTime)SqlConvert.ConvertToSqlDateTime((DateTime)rValue.Value + (TimeSpan)vLeft); 382else if (vLeft is SqlDateTime && vRight is TimeSpan) { 384value = (SqlDateTime)SqlConvert.ConvertToSqlDateTime((DateTime)lValue.Value + (TimeSpan)vRight); 456value = (DateTime)vLeft - (TimeSpan)vRight; 463value = (TimeSpan)vLeft - (TimeSpan)vRight; 466if (vLeft is TimeSpan && vRight is SqlDateTime) { 468value = (SqlDateTime)SqlConvert.ConvertToSqlDateTime((DateTime)rValue.Value - (TimeSpan)vLeft); 470else if (vLeft is SqlDateTime && vRight is TimeSpan) { 472value = (SqlDateTime)SqlConvert.ConvertToSqlDateTime((DateTime)lValue.Value - (TimeSpan)vRight);
fx\src\data\System\Data\Odbc\Odbc32.cs (2)
782static private readonly TypeMap _Time = new TypeMap(OdbcType.Time, DbType.Time, typeof(TimeSpan), ODBC32.SQL_TYPE.TYPE_TIME, ODBC32.SQL_C.TYPE_TIME, ODBC32.SQL_C.TYPE_TIME, 6, 12, false); 903else if (dataType == typeof(System.TimeSpan)) {
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (2)
891public TimeSpan GetTime(int i) { 892return (TimeSpan)internalGetTime(i);
fx\src\data\System\Data\Odbc\OdbcUtils.cs (1)
299WriteTime(offset, (TimeSpan)value);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (3)
514Value_DBTIME((TimeSpan) value); 751private TimeSpan Value_DBTIME() { 756private void Value_DBTIME(TimeSpan value) {
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (2)
165static private readonly NativeDBType D_DBTime = new NativeDBType(0xff, 6, true, false, OleDbType.DBTime, NativeDBType.DBTIME, S_DBTIME, typeof(System.TimeSpan), NativeDBType.DBTIME, DbType.Time ); // 7 - (tagDBTime) 323else if (value is System.TimeSpan) {
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (2)
977public TimeSpan GetTimeSpan(int ordinal) { 978return (TimeSpan) GetValue(ordinal);
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (2)
603internal TimeSpan ReadTime(int offset) { 611internal void WriteTime(int offset, TimeSpan value) {
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (1)
531internal TimeSpan LoadBalanceTimeout {
fx\src\data\System\Data\ProviderBase\DbConnectionPoolOptions.cs (2)
19private readonly TimeSpan _loadBalanceTimeout; 49public TimeSpan LoadBalanceTimeout {
fx\src\data\System\Data\ProviderBase\TimeoutTimer.cs (1)
69timeout._originalTimerTicks = milliseconds * TimeSpan.TicksPerMillisecond;
fx\src\data\System\Data\Sql\SqlMetaData.cs (11)
1028public TimeSpan Adjust(TimeSpan value) { 1108else if (dataType == typeof(TimeSpan)) 1109value = this.Adjust((TimeSpan)value); 1296else if (dataType == typeof(TimeSpan)) 1297smd = new SqlMetaData(name, SqlDbType.Time, 0, InferScaleFromTimeTicks(((TimeSpan)value).Ticks)); 1477private static readonly TimeSpan x_timeMin = TimeSpan.Zero; 1478private static readonly TimeSpan x_timeMax = new TimeSpan(TimeSpan.TicksPerDay - 1); 1479private void VerifyTimeRange(TimeSpan value) {
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (5)
397internal TimeSpan Time { 405return (TimeSpan)this.Value; // anything else we haven't thought of goes through boxing. 414TimeSpan offset = new TimeSpan(0, _value._dateTimeOffsetInfo.offset, 0); 424return (dateTime2Info.date * TimeSpan.TicksPerDay + dateTime2Info.timeInfo.ticks); 879internal void SetToTime(TimeSpan timeSpan, byte scale) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (3)
130static private TimeSpan _ColumnEncryptionKeyCacheTtl = TimeSpan.FromHours(2); 137static public TimeSpan ColumnEncryptionKeyCacheTtl
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
2529virtual public TimeSpan GetTimeSpan(int i) { 2532TimeSpan t = _data[i].Time; 2542t = (TimeSpan) temp;
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
809public override TimeSpan GetTimeSpan(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (5)
339} else if (dataType == typeof(TimeSpan)) { 407else if (sqlType == typeof(TimeSpan)) return DBNull.Value; 525else if (comVal is TimeSpan || comVal is DateTimeOffset) 826(255, 7, -1, false, false, false, TdsEnums.SQLTIME, TdsEnums.SQLTIME, MetaTypeName.TIME, typeof(System.TimeSpan), typeof(System.TimeSpan), SqlDbType.Time, DbType.Time, 1);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (3)
171private static readonly TimeSpan _dbAuthenticationContextLockedRefreshTimeSpan = new TimeSpan(hours: 0, minutes: 45, seconds: 00); 175private static readonly TimeSpan _dbAuthenticationContextUnLockedRefreshTimeSpan = new TimeSpan(hours: 0, minutes: 10, seconds: 00); 2233TimeSpan contextValidity = dbConnectionPoolAuthenticationContext.ExpirationTime.Subtract(DateTime.UtcNow);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
950value = TimeSpan.Parse((string)value);
fx\src\data\System\Data\SqlClient\SqlSymmetricKeyCache.cs (1)
101if (SqlConnection.ColumnEncryptionKeyCacheTtl != TimeSpan.Zero) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (8)
5951WriteTime((TimeSpan)value, mt.Scale, length, stateObj); 6114WriteTime((TimeSpan)value, metatype.Scale, 5, stateObj); 6259private byte[] SerializeTime(TimeSpan value, byte scale, int length) { 6260if (0 > value.Ticks || value.Ticks >= TimeSpan.TicksPerDay) { 6273private void WriteTime(TimeSpan value, byte scale, int length, TdsParserStateObject stateObj) { 6274if (0 > value.Ticks || value.Ticks >= TimeSpan.TicksPerDay) { 10685WriteTime((TimeSpan)value, scale, actualLength, stateObj); 10893return SerializeTime((TimeSpan)value, scale, actualLength);
fx\src\data\System\Data\SqlClient\TdsRecordBufferSetter.cs (1)
179public override void SetTimeSpan(SmiEventSink sink, int ordinal, TimeSpan value) {
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
546internal void SetTimeSpan(TimeSpan value) {
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (16)
65private const long TicksPerSecond = TimeSpan.TicksPerMillisecond * 1000; 88private static readonly TimeSpan MinTimeSpan = MinDateTime.Subtract(SQLBaseDate); 89private static readonly TimeSpan MaxTimeSpan = MaxDateTime.Subtract(SQLBaseDate); 218private static TimeSpan ToTimeSpan(SqlDateTime value) { 220return new TimeSpan(value.m_day * TimeSpan.TicksPerDay + 221millisecond * TimeSpan.TicksPerMillisecond); 233long dayticks = daypart * TimeSpan.TicksPerDay; 234long timeticks = ((long)(timepart / SQLTicksPerMillisecond + 0.5)) * TimeSpan.TicksPerMillisecond; // 241private static SqlDateTime FromTimeSpan(TimeSpan value) { 247long ticks = value.Ticks - day * TimeSpan.TicksPerDay; 251ticks += TimeSpan.TicksPerDay; 254int time = (int)((double)ticks / TimeSpan.TicksPerMillisecond * SQLTicksPerMillisecond + 0.5); 369public static SqlDateTime operator +(SqlDateTime x, TimeSpan t) { 374public static SqlDateTime operator -(SqlDateTime x, TimeSpan t) { 383public static SqlDateTime Add(SqlDateTime x, TimeSpan t) { 388public static SqlDateTime Subtract(SqlDateTime x, TimeSpan t) {
fx\src\data\System\Data\xmlsaver.cs (1)
210if (type == typeof(TimeSpan))
fx\src\data\System\Data\XMLSchema.cs (1)
1576new NameType("duration" , typeof(TimeSpan)), /* XSD Apr */
System.Data.Entity (72)
System\Data\Common\EntitySql\AST\Literal.cs (3)
554TimeSpan offsetTimeSpan = new TimeSpan(offsetHours, offsetMinutes, 0); 577private static TimeSpan ConvertTimeLiteralValue(ErrorContext errCtx, string datetimeLiteralValue) 593TimeSpan ts = new TimeSpan(hour, minute, second);
System\Data\Common\Internal\Materialization\Translator.cs (1)
2193else if (typeof(TimeSpan) == type ||
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
549return new DateTimeOffset(((DateTime)value).Ticks, TimeSpan.Zero);
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
60typeDefaultMap[PrimitiveTypeKind.Time] = default(TimeSpan);
System\Data\Mapping\ViewGeneration\ConfigViewGenerator.cs (5)
59m_breakdownTimes = new TimeSpan[numEnums]; 69private readonly TimeSpan[] m_breakdownTimes; 97internal TimeSpan[] BreakdownTimes 161TimeSpan timeElapsed = m_singleWatch.Elapsed; 174TimeSpan timeElapsed = m_watch.Elapsed;
System\Data\Metadata\Edm\PrimitiveType.cs (1)
160return typeof(TimeSpan);
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (2)
148else if (typeof(TimeSpan) == clrType) 210primitiveTypes[(int)PrimitiveTypeKind.Time] = CreatePrimitiveType(typeof(TimeSpan), PrimitiveTypeKind.Time);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (1)
170InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Time], PrimitiveTypeKind.Time, EdmConstants.Time, typeof(TimeSpan));
System\Data\Metadata\TypeHelpers.cs (1)
719else if (clrType == typeof(System.TimeSpan))
System\Data\Objects\DataClasses\StructuralObject.cs (8)
618protected internal static TimeSpan SetValidValue(TimeSpan value, string propertyName) 634protected internal static TimeSpan SetValidValue(TimeSpan value) 652protected internal static Nullable<TimeSpan> SetValidValue(Nullable<TimeSpan> value, string propertyName) 668protected internal static Nullable<TimeSpan> SetValidValue(Nullable<TimeSpan> value)
System\Data\Objects\ELinq\Translator.cs (4)
577yield return GetProperty(typeof(TimeSpan), "Hours", BindingFlags.Public | BindingFlags.Instance, ExpressionConverter.Hour); 578yield return GetProperty(typeof(TimeSpan), "Minutes", BindingFlags.Public | BindingFlags.Instance, ExpressionConverter.Minute); 579yield return GetProperty(typeof(TimeSpan), "Seconds", BindingFlags.Public | BindingFlags.Instance, ExpressionConverter.Second); 580yield return GetProperty(typeof(TimeSpan), "Milliseconds", BindingFlags.Public | BindingFlags.Instance, ExpressionConverter.Millisecond);
System\Data\Objects\EntityFunctions.cs (25)
558public static System.TimeSpan? CreateTime(System.Int32? hour, System.Int32? minute, System.Double? second) 639public static System.TimeSpan? AddHours(System.TimeSpan? timeValue, System.Int32? addValue) 666public static System.TimeSpan? AddMinutes(System.TimeSpan? timeValue, System.Int32? addValue) 693public static System.TimeSpan? AddSeconds(System.TimeSpan? timeValue, System.Int32? addValue) 720public static System.TimeSpan? AddMilliseconds(System.TimeSpan? timeValue, System.Int32? addValue) 747public static System.TimeSpan? AddMicroseconds(System.TimeSpan? timeValue, System.Int32? addValue) 774public static System.TimeSpan? AddNanoseconds(System.TimeSpan? timeValue, System.Int32? addValue) 855public static System.Int32? DiffHours(System.TimeSpan? timeValue1, System.TimeSpan? timeValue2) 882public static System.Int32? DiffMinutes(System.TimeSpan? timeValue1, System.TimeSpan? timeValue2) 909public static System.Int32? DiffSeconds(System.TimeSpan? timeValue1, System.TimeSpan? timeValue2) 936public static System.Int32? DiffMilliseconds(System.TimeSpan? timeValue1, System.TimeSpan? timeValue2) 963public static System.Int32? DiffMicroseconds(System.TimeSpan? timeValue1, System.TimeSpan? timeValue2) 990public static System.Int32? DiffNanoseconds(System.TimeSpan? timeValue1, System.TimeSpan? timeValue2)
System\Data\Objects\SqlClient\SqlFunctions.cs (19)
662public static System.TimeSpan? DateAdd(System.String datePartArg, System.Double? number, System.TimeSpan? time) 707public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.TimeSpan? endDate) 734public static System.Int32? DateDiff(System.String datePartArg, System.String startDate, System.TimeSpan? endDate) 743public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.String endDate) 779public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.DateTime? endDate) 788public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.DateTimeOffset? endDate) 797public static System.Int32? DateDiff(System.String datePartArg, System.DateTime? startDate, System.TimeSpan? endDate) 806public static System.Int32? DateDiff(System.String datePartArg, System.DateTimeOffset? startDate, System.TimeSpan? endDate) 851public static System.String DateName(System.String datePartArg, System.TimeSpan? date) 896public static System.Int32? DatePart(System.String datePartArg, System.TimeSpan? date) 959public static System.Int32? DataLength(System.TimeSpan? arg) 1049public static System.Int32? Checksum(System.TimeSpan? arg1) 1130public static System.Int32? Checksum(System.TimeSpan? arg1, System.TimeSpan? arg2) 1220public static System.Int32? Checksum(System.TimeSpan? arg1, System.TimeSpan? arg2, System.TimeSpan? arg3)
System.Data.Entity.Design (3)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
784TimeSpan timeSpan = (TimeSpan)value;
System\Data\EntityModel\Emitters\TypeReference.cs (1)
384_timeSpan = ForType(typeof(System.TimeSpan));
System.Data.Linq (66)
DbConvert.cs (7)
113else if (toType == typeof(TimeSpan)) { 115return TimeSpan.Parse(value.ToString(), Globalization.CultureInfo.InvariantCulture); 127else if (fromType == typeof(TimeSpan)) { 129return ((TimeSpan)value).ToString("", Globalization.CultureInfo.InvariantCulture); 133return dt.Add((TimeSpan)value); 137return dto.Add((TimeSpan)value); 140return Convert.ChangeType(((TimeSpan)value).Ticks, toType, Globalization.CultureInfo.InvariantCulture);
parent\DbmlShared\Mapping.cs (1)
536type == typeof(TimeSpan) || type == typeof(Binary))
SqlClient\Common\SqlFactory.cs (1)
45bool isClrTimeSpanType = clrType == typeof(TimeSpan);
SqlClient\Common\TypeSystem.cs (1)
220return (typeof(TimeSpan) == type) || (typeof(DateTimeOffset) == type);
SqlClient\Query\Funcletizer.cs (1)
210if (exp.Type == typeof(TimeSpan))
SqlClient\Query\QueryConverter.cs (1)
164if (node.Type == typeof(TimeSpan))
SqlClient\Query\SqlMethodCallConverter.cs (49)
56else if (snew.ClrType == typeof(TimeSpan)) { 257if (mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) { 281if (mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) { 293if (!mc.Method.IsStatic && mc.Method.DeclaringType == typeof(TimeSpan)) { 590if (m.Expression.ClrType == typeof(TimeSpan)) { 705else if (sox.ClrType == typeof(TimeSpan)) { 793if (sox.Args.Count == 2 && sox.Args[0].ClrType == typeof(DateTime) && sox.Args[1].ClrType == typeof(TimeSpan)) { 798sql.ConvertToInt(sql.ConvertToBigint(sql.Divide(sql.ConvertTimeToDouble(sox.Args[1]), TimeSpan.TicksPerMinute))) 830if (sox.Args.Count == 7 && sox.Args[6].ClrType == typeof(TimeSpan)) { 835else if (sox.Args.Count == 8 && sox.Args[6].ClrType == typeof(int) && sox.Args[7].ClrType == typeof(TimeSpan)) { 852sql.ConvertToInt(sql.ConvertToBigint(sql.Divide(sql.ConvertTimeToDouble(sox.Args[timeSpanIndex]), TimeSpan.TicksPerMinute))) 862return sql.ConvertTo(typeof(TimeSpan), sox.Args[0]); 869SqlExpression TicksFromHours = sql.Multiply(hours, TimeSpan.TicksPerHour); 870SqlExpression TicksFromMinutes = sql.Multiply(minutes, TimeSpan.TicksPerMinute); 871SqlExpression TicksFromSeconds = sql.Multiply(seconds, TimeSpan.TicksPerSecond); 872return sql.ConvertTo(typeof(TimeSpan), sql.Add(TicksFromHours, TicksFromMinutes, TicksFromSeconds)); 879SqlExpression TicksFromDays = sql.Multiply(days, TimeSpan.TicksPerDay); 880SqlExpression TicksFromHours = sql.Multiply(hours, TimeSpan.TicksPerHour); 881SqlExpression TicksFromMinutes = sql.Multiply(minutes, TimeSpan.TicksPerMinute); 882SqlExpression TicksFromSeconds = sql.Multiply(seconds, TimeSpan.TicksPerSecond); 886return sql.ConvertTo(typeof(TimeSpan), totalTicks); 891SqlExpression ticksFromMs = sql.Multiply(milliseconds, TimeSpan.TicksPerMillisecond); 892return sql.ConvertTo(typeof(TimeSpan), sql.Add(totalTicks, ticksFromMs)); 966else if (declType == typeof(TimeSpan)) { 1059else if ((mc.Method.Name == "Add" && mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) 1121else if ((mc.Method.Name == "Add" && mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) 1190returnValue = sql.FunctionCall(typeof(TimeSpan), "ABS", new SqlExpression[] { mc.Object }, source); 1342else if (rightType == typeof(TimeSpan)) { 1377if (rightType == typeof(TimeSpan)) { 2219SqlExpression ticksFromHour = sql.Multiply(sql.ConvertToBigint(hours), TimeSpan.TicksPerHour); 2220SqlExpression ticksFromMinutes = sql.Multiply(sql.ConvertToBigint(minutes), TimeSpan.TicksPerMinute); 2221SqlExpression ticksFromSeconds = sql.Multiply(sql.ConvertToBigint(seconds), TimeSpan.TicksPerSecond); 2222SqlExpression ticksFromMs = sql.Multiply(sql.ConvertToBigint(milliseconds), TimeSpan.TicksPerMillisecond); 2223return sql.ConvertTo(typeof(TimeSpan), sql.Add(ticksFromHour, ticksFromMinutes, ticksFromSeconds, ticksFromMs)); 2239else if (baseClrTypeOfExpr == typeof(System.TimeSpan)) { 2264return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerMillisecond); 2274return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerSecond); 2284return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerMinute); 2294return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerHour); 2306return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerDay); 2311return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.TicksPerMillisecond)), 1000)); 2316return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.TicksPerSecond)), 60)); 2321return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.TicksPerMinute)), 60)); 2326return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.TicksPerHour)), 24)); 2331return sql.ConvertToInt(sql.Divide(exp, TimeSpan.TicksPerDay)); 2345SqlExpression daysAdded = sql.DATEADD("day", sql.Divide(sqlTicks, TimeSpan.TicksPerDay), sqlDate, source, asNullable); 2346return sql.DATEADD("ms", sql.Mod(sql.Divide(sqlTicks, TimeSpan.TicksPerMillisecond), 86400000), daysAdded, source, asNullable); 2366SqlExpression daysAdded = sql.DATETIMEOFFSETADD("day", sql.Divide(sqlTicks, TimeSpan.TicksPerDay), sqlDate, source, asNullable); 2367return sql.DATETIMEOFFSETADD("ms", sql.Mod(sql.Divide(sqlTicks, TimeSpan.TicksPerMillisecond), 86400000), daysAdded, source, asNullable);
SqlClient\SqlBuilder.cs (1)
287} else if (type == typeof(TimeSpan)) {
SqlClient\SqlMethods.cs (1)
138TimeSpan diff = endDate.Date - startDate.Date;
SqlClient\SqlTypeSystemProvider.cs (3)
100return typeof(TimeSpan); 1452if (type == typeof(TimeSpan)) 1572if (type == typeof(TimeSpan))
System.Data.Services (1)
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
412type == typeof(TimeSpan) || type == typeof(DateTimeOffset) || type == typeof(Uri) ||
System.Data.Services.Client (2)
System\Data\Services\Client\ClientConvert.cs (2)
339return XmlConvert.ToString((TimeSpan)propertyValue); 479types[(int)StorageType.TimeSpan] = typeof(TimeSpan);
System.Data.SqlXml (8)
System\Xml\Xsl\IlGen\GenerateHelper.cs (2)
409StorageMethods[typeof(TimeSpan)] = new XmlILStorageMethods(typeof(TimeSpan));
System\Xml\Xsl\IlGen\XmlIlTypeHelper.cs (4)
106typeof(TimeSpan), // XmlTypeCode.YearMonthDuration 107typeof(TimeSpan), // XmlTypeCode.DayTimeDuration 164typeof(IList<TimeSpan>), // XmlTypeCode.YearMonthDuration 165typeof(IList<TimeSpan>), // XmlTypeCode.DayTimeDuration
System\Xml\Xsl\Runtime\XmlILStorageConverter.cs (1)
68public static XmlAtomicValue TimeSpanToAtomicValue(TimeSpan value, int index, XmlQueryRuntime runtime) {
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
48internal static readonly Type TimeSpanType = typeof(TimeSpan);
System.IdentityModel (115)
System\IdentityModel\BoundedCache.cs (13)
18TimeSpan _purgeInterval; 29public BoundedCache(int capacity, TimeSpan purgeInterval) 43public BoundedCache(int capacity, TimeSpan purgeInterval, IEqualityComparer<string> keyComparer) 50if (purgeInterval <= TimeSpan.Zero) 102_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1)); 147_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1)); 194_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1)); 223public TimeSpan PurgeInterval 228if (value <= TimeSpan.Zero) 251_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1)); 284_readWriteLock.AcquireReaderLock(TimeSpan.FromMilliseconds(-1)); 315_readWriteLock.AcquireReaderLock(TimeSpan.FromMilliseconds(-1)); 347_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1));
System\IdentityModel\Configuration\IdentityConfiguration.cs (4)
28public static readonly TimeSpan DefaultMaxClockSkew = new TimeSpan(0, 5, 0); 41TimeSpan _serviceMaxClockSkew = DefaultMaxClockSkew; 768public TimeSpan MaxClockSkew 913public TimeSpan TokenReplayCacheExpirationPeriod
System\IdentityModel\Configuration\IdentityConfigurationElement.cs (2)
74public TimeSpan MaximumClockSkew 76get { return (TimeSpan)this[ConfigurationStrings.MaximumClockSkew]; }
System\IdentityModel\Configuration\IdentityModelTimeSpanValidatorAttribute.cs (2)
30public TimeSpan MinValue 50public TimeSpan MaxValue
System\IdentityModel\Configuration\Properties.cs (8)
193properties.Add(new ConfigurationProperty("maximumClockSkew", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.IdentityModel.Configuration.TimeSpanOrInfiniteConverter(), new System.IdentityModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 245properties.Add(new ConfigurationProperty("expirationPeriod", typeof(System.TimeSpan), System.TimeSpan.Parse("10675199.02:48:05.4775807", CultureInfo.InvariantCulture), new System.IdentityModel.Configuration.TimeSpanOrInfiniteConverter(), new System.IdentityModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("10675199.02:48:05.4775807", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
System\IdentityModel\Configuration\SecurityTokenHandlerConfigurationElement.cs (2)
79public TimeSpan MaximumClockSkew 81get { return (TimeSpan)this[ConfigurationStrings.MaximumClockSkew]; }
System\IdentityModel\Configuration\SecurityTokenServiceConfiguration.cs (7)
24TimeSpan _defaultTokenLifetime = TimeSpan.FromHours(1.0); 25TimeSpan _maximumTokenLifetime = TimeSpan.FromDays(1); 244public TimeSpan DefaultTokenLifetime 304public TimeSpan MaximumTokenLifetime 312if (value <= TimeSpan.Zero)
System\IdentityModel\Configuration\TimeSpanOrInfiniteConverter.cs (5)
22if (!(value is TimeSpan)) 24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID8028, typeof(TimeSpan), value.GetType())); 27if ((TimeSpan)value == TimeSpan.MaxValue) 41return TimeSpan.MaxValue;
System\IdentityModel\Configuration\TimeSpanOrInfiniteValidator.cs (5)
12public TimeSpanOrInfiniteValidator(TimeSpan minValue, TimeSpan maxValue) 19if (value.GetType() == typeof(TimeSpan) && (TimeSpan)value == TimeSpan.MaxValue)
System\IdentityModel\Configuration\TokenReplayDetectionElement.cs (2)
31public TimeSpan ExpirationPeriod 33get { return (TimeSpan)this[ConfigurationStrings.ExpirationPeriod]; }
System\IdentityModel\DateTimeUtil.cs (6)
18/// <param name="timespan"><see cref="TimeSpan"/> to add.</param> 20public static DateTime Add(DateTime time, TimeSpan timespan) 22if (timespan >= TimeSpan.Zero && DateTime.MaxValue - time <= timespan) 27if (timespan <= TimeSpan.Zero && DateTime.MinValue - time >= timespan) 43public static DateTime AddNonNegative(DateTime time, TimeSpan timespan) 45if (timespan <= TimeSpan.Zero)
System\IdentityModel\SamlDelegatingWriter.cs (3)
164public override void WriteArray(string prefix, string localName, string namespaceUri, TimeSpan[] array, int offset, int count) 214public override void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count) 436public override void WriteValue(TimeSpan value)
System\IdentityModel\SecurityTokenService.cs (1)
505if (DateTimeUtil.ToUniversalTime(created) > DateTimeUtil.Add(utcNow + TimeSpan.FromDays(1), _securityTokenServiceConfiguration.MaxClockSkew))
System\IdentityModel\SecurityUtils.cs (3)
56return new DateTime(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc); 65return new DateTime(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc); 168internal static bool IsCurrentlyTimeEffective(DateTime effectiveTime, DateTime expirationTime, TimeSpan maxClockSkew)
System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (2)
58internal SecurityToken GetToken(TimeSpan timeout, ChannelBinding channelbinding) 64protected override SecurityToken GetTokenCore(TimeSpan timeout)
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (3)
22TimeSpan maxClockSkew; 25: this(supportingAuthenticators, TimeSpan.Zero) 28public SamlSecurityTokenAuthenticator(IList<SecurityTokenAuthenticator> supportingAuthenticators, TimeSpan maxClockSkew)
System\IdentityModel\Selectors\SecurityTokenProvider.cs (12)
26public SecurityToken GetToken(TimeSpan timeout) 36public IAsyncResult BeginGetToken(TimeSpan timeout, AsyncCallback callback, object state) 55public SecurityToken RenewToken(TimeSpan timeout, SecurityToken tokenToBeRenewed) 69public IAsyncResult BeginRenewToken(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state) 92public void CancelToken(TimeSpan timeout, SecurityToken token) 101public IAsyncResult BeginCancelToken(TimeSpan timeout, SecurityToken token, AsyncCallback callback, object state) 120protected abstract SecurityToken GetTokenCore(TimeSpan timeout); 122protected virtual SecurityToken RenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed) 127protected virtual void CancelTokenCore(TimeSpan timeout, SecurityToken token) 132protected virtual IAsyncResult BeginGetTokenCore(TimeSpan timeout, AsyncCallback callback, object state) 143protected virtual IAsyncResult BeginRenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state) 154protected virtual IAsyncResult BeginCancelTokenCore(TimeSpan timeout, SecurityToken token, AsyncCallback callback, object state)
System\IdentityModel\Selectors\UserNameSecurityTokenProvider.cs (1)
23protected override SecurityToken GetTokenCore(TimeSpan timeout)
System\IdentityModel\Selectors\X509CertificateChain.cs (1)
148TimeSpan timeout,
System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
60protected override SecurityToken GetTokenCore(TimeSpan timeout)
System\IdentityModel\Tokens\DefaultTokenReplayCache.cs (5)
15static readonly TimeSpan DefaultTokenReplayCachePurgeInterval = TimeSpan.FromMinutes(1); 32public DefaultTokenReplayCache(int capacity, TimeSpan purgeInterval) 85public TimeSpan PurgeInterval 90if (value <= TimeSpan.Zero)
System\IdentityModel\Tokens\MruSessionSecurityTokenCache.cs (2)
28public static readonly TimeSpan DefaultPurgeInterval = TimeSpan.FromMinutes(15);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
48static DateTime WCFMinValue = new DateTime(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc); 49static DateTime WCFMaxValue = new DateTime(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc);
System\IdentityModel\Tokens\SecurityTokenHandlerConfiguration.cs (9)
42public static readonly TimeSpan DefaultMaxClockSkew = new TimeSpan(0, 5, 0); // 5 minutes 52public static readonly TimeSpan DefaultTokenReplayCacheExpirationPeriod = TimeSpan.MaxValue; 86private TimeSpan maxClockSkew = DefaultMaxClockSkew; 89private TimeSpan tokenReplayCacheExpirationPeriod = DefaultTokenReplayCacheExpirationPeriod; 219public TimeSpan MaxClockSkew 228if (value < TimeSpan.Zero) 291public TimeSpan TokenReplayCacheExpirationPeriod 300if (value <= TimeSpan.Zero)
System\IdentityModel\Tokens\SessionSecurityToken.cs (3)
82public SessionSecurityToken(ClaimsPrincipal claimsPrincipal, TimeSpan lifetime) 133TimeSpan lifetime, 155TimeSpan lifetime,
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (11)
33public static readonly TimeSpan DefaultLifetime = TimeSpan.FromHours(10); 37TimeSpan _tokenLifetime = DefaultLifetime; 72public SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform> transforms, TimeSpan tokenLifetime) 79if (tokenLifetime <= TimeSpan.Zero) 123TimeSpan outTokenLifetime = DefaultLifetime; 124if (!TimeSpan.TryParse(attribute.Value, out outTokenLifetime)) 128if (outTokenLifetime < TimeSpan.Zero) 298public static TimeSpan DefaultTokenLifetime 510public virtual TimeSpan TokenLifetime 515if (value <= TimeSpan.Zero)
System.Management (68)
Instrumentation\SchemaMapping.cs (4)
438 else if(t2 == typeof(DateTime) || t2 == typeof(TimeSpan)) 449 if(t2 == typeof(DateTime) || t2 == typeof(TimeSpan)) 544 else if(t2 == typeof(TimeSpan)) 574 if(t2 == typeof(TimeSpan))
ManagementDatetime.cs (24)
9 /// <see cref='System.DateTime'/> and <see cref='System.TimeSpan'/> format and vice versa. 179 ticks = (System.Int64.Parse(tempString,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int64)))) * (System.TimeSpan.TicksPerMillisecond/1000); 200 System.TimeSpan tickOffset = curZone.GetUtcOffset(datetime); 201 long OffsetMins = tickOffset.Ticks / System.TimeSpan.TicksPerMinute; 261 System.TimeSpan tickOffset = curZone.GetUtcOffset(date); 262 long OffsetMins = (tickOffset.Ticks / System.TimeSpan.TicksPerMinute); 275 UtcString = "+" + ((tickOffset.Ticks / System.TimeSpan.TicksPerMinute)).ToString(frmInt32).PadLeft(3,'0'); 295 System.Int64 microsec = ((date.Ticks-dtTemp.Ticks) * 1000) / System.TimeSpan.TicksPerMillisecond; 310 /// <para>Converts a given DMTF time interval to <see cref='System.TimeSpan'/> object.</para> 314 /// <para>A <see cref='System.TimeSpan'/> object that represents the given DMTF time interval.</para> 319 /// <see cref='System.TimeSpan.MaxValue'/> then <see cref='System.ArgumentOutOfRangeException'/> is thrown. 332 public static TimeSpan ToTimeSpan(string dmtfTimespan) 341 TimeSpan timespan = TimeSpan.MinValue; 378 ticks = (System.Int64.Parse(tempString,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int64)))) * (System.TimeSpan.TicksPerMillisecond/1000); 394 TimeSpan tsTemp = System.TimeSpan.FromTicks(ticks); 401 /// <para>Converts a given <see cref='System.TimeSpan'/> object to DMTF time interval.</para> 403 /// <param name='timespan'> A <see cref='System.TimeSpan'/> object representing the datetime to be converted to DMTF time interval. 411 /// DMTF is microseconds and in <see cref='System.TimeSpan'/> is Ticks , which is equivalent 428 public static string ToDmtfTimeInterval(TimeSpan timespan) 437 if(timespan.Days > MAXDATE_INTIMESPAN || timespan < TimeSpan.Zero) 449 TimeSpan tsTemp = new TimeSpan(timespan.Days ,timespan.Hours,timespan.Minutes ,timespan.Seconds ,0); 450 System.Int64 microsec = ((timespan.Ticks-tsTemp.Ticks) * 1000) / System.TimeSpan.TicksPerMillisecond;
managementoptions.cs (15)
130public static readonly TimeSpan InfiniteTimeout = TimeSpan.MaxValue; 134internal TimeSpan timeout; 212public TimeSpan Timeout 229internal ManagementOptions(ManagementNamedValueCollection context, TimeSpan timeout) : this(context, timeout, 0) {} 230internal ManagementOptions(ManagementNamedValueCollection context, TimeSpan timeout, int flags) 530TimeSpan timeout, 695public EventWatcherOptions(ManagementNamedValueCollection context, TimeSpan timeout, int blockSize) 840public ObjectGetOptions(ManagementNamedValueCollection context, TimeSpan timeout, bool useAmendedQualifiers) : base(context, timeout) 993public PutOptions(ManagementNamedValueCollection context, TimeSpan timeout, bool useAmendedQualifiers, PutType putType) : base(context, timeout) 1084public DeleteOptions(ManagementNamedValueCollection context, TimeSpan timeout) : base(context, timeout) {} 1171public InvokeMethodOptions(ManagementNamedValueCollection context, TimeSpan timeout) : base(context, timeout) {} 1557ManagementNamedValueCollection context, TimeSpan timeout) : base (context, timeout) 1601ManagementNamedValueCollection context, TimeSpan timeout) : base (context, timeout) 1667internal ConnectionOptions(ManagementNamedValueCollection context, TimeSpan timeout, int flags) : base(context, timeout, flags) {}
managementquery.cs (25)
2424 private TimeSpan withinInterval; 2426 private TimeSpan groupWithinInterval; 2439 public WqlEventQuery() : this(null, TimeSpan.Zero, null, TimeSpan.Zero, null, null) {} 2514 public WqlEventQuery(string eventClassName, string condition) : this(eventClassName, TimeSpan.Zero, condition, TimeSpan.Zero, null, null) {} 2538 public WqlEventQuery(string eventClassName, TimeSpan withinInterval): 2539 this(eventClassName, withinInterval, null, TimeSpan.Zero, null, null) {} 2569 public WqlEventQuery(string eventClassName, TimeSpan withinInterval, string condition) : 2570 this(eventClassName, withinInterval, condition, TimeSpan.Zero, null, null) {} 2600 public WqlEventQuery(string eventClassName, string condition, TimeSpan groupWithinInterval) : 2601 this(eventClassName, TimeSpan.Zero, condition, groupWithinInterval, null, null) {} 2638 public WqlEventQuery(string eventClassName, string condition, TimeSpan groupWithinInterval, string[] groupByPropertyList) : 2639 this(eventClassName, TimeSpan.Zero, condition, groupWithinInterval, groupByPropertyList, null) {} 2678 public WqlEventQuery(string eventClassName, TimeSpan withinInterval, string condition, TimeSpan groupWithinInterval, 2798 /// valid <see cref='System.TimeSpan'/> 2823 public TimeSpan WithinInterval 2859 public TimeSpan GroupWithinInterval 2970 if (withinInterval != TimeSpan.Zero) 2978 if (groupWithinInterval != TimeSpan.Zero) 3015 withinInterval = TimeSpan.Zero; 3017 groupWithinInterval = TimeSpan.Zero; 3050 withinInterval = TimeSpan.FromSeconds(((IConvertible)intervalString).ToDouble(null)); 3063 groupWithinInterval = TimeSpan.FromSeconds(((IConvertible)intervalString).ToDouble(null));
System.Messaging (62)
System\Messaging\DefaultPropertiesToSend.cs (2)
333public TimeSpan TimeToBeReceived 356public TimeSpan TimeToReachQueue
System\Messaging\Design\TimeoutConverter.cs (3)
52return TimeSpan.FromSeconds((double)uint.MaxValue); 59return TimeSpan.FromSeconds(totalSeconds); 85double totalSeconds = ((TimeSpan)value).TotalSeconds;
System\Messaging\Message.cs (6)
48public static readonly TimeSpan InfiniteTimeout = TimeSpan.FromSeconds(UInt32.MaxValue); 1683public TimeSpan TimeToBeReceived 1696return TimeSpan.FromSeconds((uint)properties.GetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_BE_RECEIVED)); 1733public TimeSpan TimeToReachQueue 1746return TimeSpan.FromSeconds((uint)properties.GetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_REACH_QUEUE));
System\Messaging\MessageEnumerator.cs (10)
51return this.owner.ReceiveCurrent(TimeSpan.Zero, NativeMethods.QUEUE_ACTION_PEEK_CURRENT, this.Handle, 146return MoveNext(TimeSpan.Zero); 156public unsafe bool MoveNext(TimeSpan timeout) 197return RemoveCurrent(TimeSpan.Zero, null, MessageQueueTransactionType.None); 210return RemoveCurrent(TimeSpan.Zero, transaction, MessageQueueTransactionType.None); 223return RemoveCurrent(TimeSpan.Zero, null, transactionType); 231public Message RemoveCurrent(TimeSpan timeout) 241public Message RemoveCurrent(TimeSpan timeout, MessageQueueTransaction transaction) 254public Message RemoveCurrent(TimeSpan timeout, MessageQueueTransactionType transactionType) 262private Message RemoveCurrent(TimeSpan timeout, MessageQueueTransaction transaction, MessageQueueTransactionType transactionType)
System\Messaging\MessageQueue.cs (41)
51public static readonly TimeSpan InfiniteTimeout = TimeSpan.FromMilliseconds(UInt32.MaxValue); 1468public IAsyncResult BeginPeek(TimeSpan timeout) 1483public IAsyncResult BeginPeek(TimeSpan timeout, object stateObject) 1497public IAsyncResult BeginPeek(TimeSpan timeout, object stateObject, AsyncCallback callback) 1503public IAsyncResult BeginPeek(TimeSpan timeout, Cursor cursor, PeekAction action, object state, AsyncCallback callback) 1536public IAsyncResult BeginReceive(TimeSpan timeout) 1550public IAsyncResult BeginReceive(TimeSpan timeout, object stateObject) 1563public IAsyncResult BeginReceive(TimeSpan timeout, object stateObject, AsyncCallback callback) 1569public IAsyncResult BeginReceive(TimeSpan timeout, Cursor cursor, object state, AsyncCallback callback) 2288public Message Peek(TimeSpan timeout) 2294public Message Peek(TimeSpan timeout, Cursor cursor, PeekAction action) 2316return ReceiveBy(id, TimeSpan.Zero, false, true, false, null, MessageQueueTransactionType.None); 2330public Message PeekById(string id, TimeSpan timeout) 2347return ReceiveBy(correlationId, TimeSpan.Zero, false, false, false, null, MessageQueueTransactionType.None); 2361public Message PeekByCorrelationId(string correlationId, TimeSpan timeout) 2438public Message Receive(TimeSpan timeout) 2444public Message Receive(TimeSpan timeout, Cursor cursor) 2461public Message Receive(TimeSpan timeout, MessageQueueTransaction transaction) 2474public Message Receive(TimeSpan timeout, MessageQueueTransactionType transactionType) 2483public Message Receive(TimeSpan timeout, Cursor cursor, MessageQueueTransaction transaction) 2496public Message Receive(TimeSpan timeout, Cursor cursor, MessageQueueTransactionType transactionType) 2509private unsafe IAsyncResult ReceiveAsync(TimeSpan timeout, CursorHandle cursorHandle, int action, AsyncCallback callback, object stateObject) 2594private Message ReceiveBy(string id, TimeSpan timeout, bool remove, bool compareId, bool throwTimeout, MessageQueueTransaction transaction, MessageQueueTransactionType transactionType) 2599if (timeout < TimeSpan.Zero || timeout > InfiniteTimeout) 2698return ReceiveBy(id, TimeSpan.Zero, true, true, false, null, MessageQueueTransactionType.None); 2714return ReceiveBy(id, TimeSpan.Zero, true, true, false, transaction, MessageQueueTransactionType.None); 2730return ReceiveBy(id, TimeSpan.Zero, true, true, false, null, transactionType); 2743public Message ReceiveById(string id, TimeSpan timeout) 2758public Message ReceiveById(string id, TimeSpan timeout, MessageQueueTransaction transaction) 2776public Message ReceiveById(string id, TimeSpan timeout, MessageQueueTransactionType transactionType) 2795return ReceiveBy(correlationId, TimeSpan.Zero, true, false, false, null, MessageQueueTransactionType.None); 2812return ReceiveBy(correlationId, TimeSpan.Zero, true, false, false, transaction, MessageQueueTransactionType.None); 2829return ReceiveBy(correlationId, TimeSpan.Zero, true, false, false, null, transactionType); 2842public Message ReceiveByCorrelationId(string correlationId, TimeSpan timeout) 2857public Message ReceiveByCorrelationId(string correlationId, TimeSpan timeout, MessageQueueTransaction transaction) 2875public Message ReceiveByCorrelationId(string correlationId, TimeSpan timeout, MessageQueueTransactionType transactionType) 3016internal unsafe Message ReceiveCurrent(TimeSpan timeout, int action, CursorHandle cursor, MessagePropertyFilter filter, MessageQueueTransaction internalTransaction, MessageQueueTransactionType transactionType) 4153private TimeSpan staleTime; 4155public CacheTable(string name, int capacity, TimeSpan staleTime) 4236public void ClearStale(TimeSpan staleAge)
System.Runtime.Caching (25)
System\Caching\CacheItemPolicy.cs (2)
10private TimeSpan _sldExpiry; 40public TimeSpan SlidingExpiration {
System\Caching\Configuration\ConfigUtil.cs (3)
57TimeSpan tValue; 58if (!TimeSpan.TryParse(sValue, out tValue) || tValue <= TimeSpan.Zero) {
System\Caching\Configuration\MemoryCacheElement.cs (4)
56typeof(TimeSpan), 57TimeSpan.FromMilliseconds(ConfigUtil.DefaultPollingTimeMilliseconds), 117public TimeSpan PollingInterval { 119return (TimeSpan)base["pollingInterval"];
System\Caching\MemoryCache.cs (5)
26private static readonly TimeSpan OneYear = new TimeSpan(365, 0, 0, 0); 276public TimeSpan PollingInterval { 336TimeSpan slidingExp = ObjectCache.NoSlidingExpiration; 567TimeSpan slidingExp = ObjectCache.NoSlidingExpiration; 604TimeSpan slidingExpiration,
System\Caching\MemoryCacheEntry.cs (5)
19private TimeSpan _slidingExp; 68internal TimeSpan SlidingExp { 95TimeSpan slidingExp, 107if (_slidingExp > TimeSpan.Zero) { 245if (_slidingExp > TimeSpan.Zero) {
System\Caching\MemoryCacheStatistics.cs (2)
186internal TimeSpan PollingInterval { 188return TimeSpan.FromMilliseconds(_configPollingInterval);
System\Caching\MemoryCacheStore.cs (1)
110if (entry.InUsage() || entry.SlidingExp > TimeSpan.Zero) {
System\Caching\ObjectCache.cs (2)
20public static readonly TimeSpan NoSlidingExpiration = TimeSpan.Zero;
System\Caching\PhysicalMemoryMonitor.cs (1)
14static readonly long TARGET_TOTAL_MEMORY_TRIM_INTERVAL_TICKS = 5 * TimeSpan.TicksPerMinute;
System.Runtime.DurableInstancing (42)
System\Runtime\DurableInstancing\InstanceHandle.cs (14)
453internal InstancePersistenceContext AcquireExecutionContext(Transaction hostTransaction, TimeSpan timeout) 472internal IAsyncResult BeginAcquireExecutionContext(Transaction hostTransaction, TimeSpan timeout, AsyncCallback callback, object state) 703List<InstancePersistenceEvent> StartWaiting(WaitForEventsAsyncResult result, IOThreadTimer timeoutTimer, TimeSpan timeout) 771internal static IAsyncResult BeginWaitForEvents(InstanceHandle handle, TimeSpan timeout, AsyncCallback callback, object state) 790public AcquireContextAsyncResult(InstanceHandle handle, Transaction hostTransaction, TimeSpan timeout, out bool setOperationPending, AsyncCallback callback, object state) 796public AcquireContextAsyncResult(InstanceHandle handle, Transaction hostTransaction, TimeSpan timeout, out bool setOperationPending) 802AcquireContextAsyncResult(InstanceHandle handle, Transaction hostTransaction, TimeSpan timeout, out bool setOperationPending, bool synchronous, AsyncCallback callback, object state) 860TimeSpan waitTimeout = this.timeoutHelper.RemainingTime(); 1029readonly TimeSpan timeout; 1035internal WaitForEventsAsyncResult(InstanceHandle handle, TimeSpan timeout, AsyncCallback callback, object state) 1041if (this.timeout != TimeSpan.Zero && this.timeout != TimeSpan.MaxValue) 1049if (this.timeout == TimeSpan.Zero) 1052throw Fx.Exception.AsError(new TimeoutException(SRCore.WaitForEventsTimedOut(TimeSpan.Zero)));
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (17)
19readonly TimeSpan timeout; 45internal InstancePersistenceContext(InstanceHandle handle, TimeSpan timeout) 207public void BindReclaimedLock(long instanceVersion, TimeSpan timeout) 217public IAsyncResult BeginBindReclaimedLock(long instanceVersion, TimeSpan timeout, AsyncCallback callback, object state) 230AsyncWaitHandle wait = InitiateBindReclaimedLockHelper("CreateBindReclaimedLockException", instanceVersion, TimeSpan.MaxValue); 234AsyncWaitHandle InitiateBindReclaimedLockHelper(string methodName, long instanceVersion, TimeSpan timeout) 688public void Execute(InstancePersistenceCommand command, TimeSpan timeout) 715public IAsyncResult BeginExecute(InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state) 806internal static InstanceView OuterExecute(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout) 824internal static IAsyncResult BeginOuterExecute(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 958public ExecuteAsyncResult(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 991public ExecuteAsyncResult(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state) 1027public ExecuteAsyncResult(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout) 1070public ExecuteAsyncResult(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout) 1097ExecuteAsyncResult(InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state) 1479TimeSpan waitTimeout = this.timeoutHelper.RemainingTime(); 1647public BindReclaimedLockAsyncResult(InstancePersistenceContext context, AsyncWaitHandle wait, TimeSpan timeout, AsyncCallback callback, object state)
System\Runtime\DurableInstancing\InstanceStore.cs (6)
68public InstanceView Execute(InstanceHandle handle, InstancePersistenceCommand command, TimeSpan timeout) 88public IAsyncResult BeginExecute(InstanceHandle handle, InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state) 117public List<InstancePersistenceEvent> WaitForEvents(InstanceHandle handle, TimeSpan timeout) 126public IAsyncResult BeginWaitForEvents(InstanceHandle handle, TimeSpan timeout, AsyncCallback callback, object state) 235protected internal virtual bool TryCommand(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout) 241protected internal virtual IAsyncResult BeginTryCommand(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state)
System\Runtime\IPersistencePipelineModule.cs (2)
21IAsyncResult BeginOnSave(IDictionary<XName, object> readWriteValues, IDictionary<XName, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state); 24IAsyncResult BeginOnLoad(IDictionary<XName, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state);
System\Runtime\PersistencePipeline.cs (3)
160public IAsyncResult BeginSave(TimeSpan timeout, AsyncCallback callback, object state) 183public IAsyncResult BeginLoad(TimeSpan timeout, AsyncCallback callback, object state) 402public IOAsyncResult(PersistencePipeline pipeline, bool isLoad, TimeSpan timeout, AsyncCallback callback, object state)
System.Runtime.Remoting (19)
channels\core\socketcache.cs (9)
209private TimeSpan _socketLifetime; 213internal CachedSocketList(TimeSpan socketLifetime, SocketCachePolicy socketCachePolicy) 251TimeSpan socketActiveTime = DateTime.UtcNow - socket.CreationTime; 281internal void TimeoutSockets(DateTime currentTime, TimeSpan socketLifetime) 341private static TimeSpan _socketTimeoutPollTime = TimeSpan.FromSeconds(10); 343private TimeSpan _socketTimeout; 353TimeSpan socketTimeout) 360internal TimeSpan SocketTimeout { get { return _socketTimeout; } set { _socketTimeout = value;} }
channels\http\httpclientchannel.cs (2)
836if (value is TimeSpan) 837_timeout = (int)((TimeSpan)value).TotalMilliseconds;
channels\ipc\portcache.cs (4)
44private static TimeSpan _socketTimeoutPollTime = TimeSpan.FromSeconds(10); 45private static TimeSpan _portLifetime = TimeSpan.FromSeconds(10);
channels\tcp\tcpclientchannel.cs (3)
340private TimeSpan _socketCacheTimeout = TimeSpan.FromSeconds(10); // default timeout is 5 seconds 603_socketCacheTimeout = TimeSpan.FromSeconds(timeout);
metadata\sudscommon.cs (1)
121internal static Type typeofTimeSpan = typeof(TimeSpan);
System.Runtime.Serialization (72)
System\Runtime\Serialization\DataContract.cs (2)
770type = typeof(TimeSpan); 861else if (type == typeof(TimeSpan))
System\Runtime\Serialization\ExtensionDataReader.cs (2)
719this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<TimeSpan>)dataNode).GetValue() : (TimeSpan)dataNode.Value);
System\Runtime\Serialization\Globals.cs (1)
164typeOfTimeSpan = typeof(TimeSpan);
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
229TimeSpan ts;
System\Runtime\Serialization\Json\XmlJsonWriter.cs (5)
374public override void WriteArray(string prefix, string localName, string namespaceUri, TimeSpan[] array, int offset, int count) 424public override void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count) 1188public override void WriteValue(TimeSpan value) 1647else if (value is TimeSpan) 1649WriteValue((TimeSpan)value);
System\Runtime\Serialization\PrimitiveDataContract.cs (2)
740: base(typeof(TimeSpan), name, ns) 749writer.WriteTimeSpan((TimeSpan)obj);
System\Runtime\Serialization\XmlReaderDelegator.cs (3)
332return new DataNode<TimeSpan>(ReadContentAsTimeSpan()); 698public TimeSpan ReadElementContentAsTimeSpan() 707internal TimeSpan ReadContentAsTimeSpan()
System\Runtime\Serialization\XmlWriterDelegator.cs (4)
350WriteTimeSpan((TimeSpan)value); 429WriteTimeSpan(((DataNode<TimeSpan>)dataNode).GetValue()); 627internal void WriteTimeSpan(TimeSpan value) 631public void WriteTimeSpan(TimeSpan value, XmlDictionaryString name, XmlDictionaryString ns)
System\Xml\ArrayHelper.cs (6)
371class TimeSpanArrayHelperWithString : ArrayHelper<string, TimeSpan> 375protected override int ReadArray(XmlDictionaryReader reader, string localName, string namespaceUri, TimeSpan[] array, int offset, int count) 380protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, TimeSpan[] array, int offset, int count) 386class TimeSpanArrayHelperWithDictionaryString : ArrayHelper<XmlDictionaryString, TimeSpan> 390protected override int ReadArray(XmlDictionaryReader reader, XmlDictionaryString localName, XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count) 395protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count)
System\Xml\ValueHandle.cs (2)
213return typeof(TimeSpan); 409public TimeSpan ToTimeSpan()
System\Xml\XmlBaseReader.cs (5)
1754public override TimeSpan ReadContentAsTimeSpan() 1759TimeSpan value = node.Value.ToTimeSpan(); 1823else if (type == typeof(TimeSpan)) 1997public override TimeSpan[] ReadTimeSpanArray(string localName, string namespaceUri) 2002public override TimeSpan[] ReadTimeSpanArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
System\Xml\XmlBaseWriter.cs (3)
1095else if (value is TimeSpan) 1097WriteValue((TimeSpan)value); 1295public override void WriteValue(TimeSpan value)
System\Xml\XmlBinaryReader.cs (6)
264public override TimeSpan ReadElementContentAsTimeSpan() 271TimeSpan value = BufferReader.ReadTimeSpan(); 1203type = typeof(TimeSpan); 1514int ReadArray(TimeSpan[] array, int offset, int count) 1526public override int ReadArray(string localName, string namespaceUri, TimeSpan[] array, int offset, int count) 1533public override int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count)
System\Xml\XmlBinaryWriter.cs (5)
866public override void WriteTimeSpanText(TimeSpan value) 935public void WriteTimeSpanArray(TimeSpan[] array, int offset, int count) 1219else if (type == typeof(TimeSpan)) 1634public override void WriteArray(string prefix, string localName, string namespaceUri, TimeSpan[] array, int offset, int count) 1650public override void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count)
System\Xml\XmlBufferReader.cs (2)
507public TimeSpan ReadTimeSpan() 513return TimeSpan.FromTicks(value);
System\Xml\XmlConverter.cs (7)
288static public TimeSpan ToTimeSpan(string value) 308static public TimeSpan ToTimeSpan(byte[] buffer, int offset, int count) 419static public string ToString(TimeSpan value) { return XmlConvert.ToString(value); } 443else if (value is TimeSpan) 444return ToString((TimeSpan)value); 832TimeSpan ts = new TimeSpan(hourDelta, minuteDelta, 0); 1105TimeSpan ts = TimeZoneInfo.Local.GetUtcOffset(value);
System\Xml\XmlDictionaryReader.cs (7)
700public virtual TimeSpan ReadContentAsTimeSpan() 953public virtual TimeSpan ReadElementContentAsTimeSpan() 956TimeSpan value; 1319public virtual TimeSpan[] ReadTimeSpanArray(string localName, string namespaceUri) 1324public virtual TimeSpan[] ReadTimeSpanArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri) 1329public virtual int ReadArray(string localName, string namespaceUri, TimeSpan[] array, int offset, int count) 1341public virtual int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count)
System\Xml\XmlDictionaryWriter.cs (5)
722public virtual void WriteValue(TimeSpan value) 814else if (type == typeof(TimeSpan)) 843else if (type == typeof(TimeSpan)) 1109public virtual void WriteArray(string prefix, string localName, string namespaceUri, TimeSpan[] array, int offset, int count) 1120public virtual void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count)
System\Xml\XmlNodeWriter.cs (2)
96public abstract void WriteTimeSpanText(TimeSpan value); 142public override void WriteTimeSpanText(TimeSpan value) { }
System\Xml\XmlSigningNodeWriter.cs (1)
301public override void WriteTimeSpanText(TimeSpan value)
System\Xml\XmlUTF8TextWriter.cs (1)
1237public override void WriteTimeSpanText(TimeSpan value)
System.Security (2)
system\security\cryptography\x509\x509utils.cs (2)
300TimeSpan timeout, 370TimeSpan timeout,
System.ServiceModel (3487)
System\ServiceModel\Activation\Configuration\NetPipeSection.cs (2)
76public TimeSpan ReceiveTimeout 78get { return (TimeSpan)base[ConfigurationStrings.ReceiveTimeout]; }
System\ServiceModel\Activation\Configuration\NetTcpSection.cs (2)
98public TimeSpan ReceiveTimeout 100get { return (TimeSpan)base[ConfigurationStrings.ReceiveTimeout]; }
System\ServiceModel\Activation\ListenerConstants.cs (7)
25public static readonly TimeSpan RegistrationCloseTimeout = TimeSpan.FromSeconds(2); 31public static readonly TimeSpan SharedSendTimeout = ServiceDefaults.SendTimeout; 37public static readonly TimeSpan ServiceStartTimeout = TimeSpan.FromSeconds(10); 39public static readonly TimeSpan WasConnectTimeout = TimeSpan.FromSeconds(120);
System\ServiceModel\Administration\WbemProvider.cs (3)
937else if (val is TimeSpan) 939TimeSpan ts = (TimeSpan)val;
System\ServiceModel\CallbackBehaviorAttribute.cs (5)
33TimeSpan transactionTimeout = TimeSpan.Zero; 105TimeSpan timeout = TimeSpan.Parse(value, CultureInfo.InvariantCulture); 107if (timeout < TimeSpan.Zero)
System\ServiceModel\ChannelFactory.cs (8)
56protected override TimeSpan DefaultCloseTimeout 71protected override TimeSpan DefaultOpenTimeout 360protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 365protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 370protected override void OnClose(TimeSpan timeout) 386protected override void OnOpen(TimeSpan timeout) 413public OpenAsyncResult(ICommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state) 468public CloseAsyncResult(ICommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\ChannelFactoryRefCache.cs (1)
42public void Close(TimeSpan timeout)
System\ServiceModel\Channels\Binding.cs (16)
15TimeSpan closeTimeout = ServiceDefaults.CloseTimeout; 18TimeSpan openTimeout = ServiceDefaults.OpenTimeout; 19TimeSpan receiveTimeout = ServiceDefaults.ReceiveTimeout; 20TimeSpan sendTimeout = ServiceDefaults.SendTimeout; 50[DefaultValue(typeof(TimeSpan), ServiceDefaults.CloseTimeoutString)] 51public TimeSpan CloseTimeout 56if (value < TimeSpan.Zero) 105[DefaultValue(typeof(TimeSpan), ServiceDefaults.OpenTimeoutString)] 106public TimeSpan OpenTimeout 111if (value < TimeSpan.Zero) 124[DefaultValue(typeof(TimeSpan), ServiceDefaults.ReceiveTimeoutString)] 125public TimeSpan ReceiveTimeout 130if (value < TimeSpan.Zero) 153[DefaultValue(typeof(TimeSpan), ServiceDefaults.SendTimeoutString)] 154public TimeSpan SendTimeout 159if (value < TimeSpan.Zero)
System\ServiceModel\Channels\BufferedConnection.cs (21)
18TimeSpan pendingTimeout; 21public BufferedConnection(IConnection connection, TimeSpan flushTimeout, int writeBufferSize) 33public override void Close(TimeSpan timeout, bool asyncAndLinger) 45pendingTimeout = TimeSpan.Zero; 49void Flush(TimeSpan timeout) 59void FlushCore(TimeSpan timeout) 77pendingTimeout = TimeSpan.Zero; 102public override void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, BufferManager bufferManager) 127public override void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout) 151void WriteNow(byte[] buffer, int offset, int size, TimeSpan timeout) 156void WriteNow(byte[] buffer, int offset, int size, TimeSpan timeout, BufferManager bufferManager) 194void WriteLater(byte[] buffer, int offset, int size, TimeSpan timeout) 248public override AsyncCompletionResult BeginWrite(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, 263public override void Shutdown(TimeSpan timeout) 290TimeSpan flushTimeout; 293public BufferedConnectionInitiator(IConnectionInitiator connectionInitiator, TimeSpan flushTimeout, int writeBufferSize) 300protected TimeSpan FlushTimeout 316public IConnection Connect(Uri uri, TimeSpan timeout) 321public IAsyncResult BeginConnect(Uri uri, TimeSpan timeout, AsyncCallback callback, object state) 335TimeSpan flushTimeout; 338public BufferedConnectionListener(IConnectionListener connectionListener, TimeSpan flushTimeout, int writeBufferSize)
System\ServiceModel\Channels\BufferedRequestContext.cs (3)
89public override void Close(TimeSpan timeout) 109public override void Reply(Message message, TimeSpan timeout) 119public override IAsyncResult BeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ChainedAsyncResult.cs (9)
11internal delegate IAsyncResult ChainedBeginHandler(TimeSpan timeout, AsyncCallback asyncCallback, object state); 23protected ChainedAsyncResult(TimeSpan timeout, AsyncCallback callback, object state) 29public ChainedAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, ChainedBeginHandler begin1, ChainedEndHandler end1, ChainedBeginHandler begin2, ChainedEndHandler end2) 133public ChainedCloseAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, ChainedBeginHandler begin1, ChainedEndHandler end1, IList<ICommunicationObject> collection) 141public ChainedCloseAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, ChainedBeginHandler begin1, ChainedEndHandler end1, params ICommunicationObject[] objs) 153IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 168public ChainedOpenAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, ChainedBeginHandler begin1, ChainedEndHandler end1, IList<ICommunicationObject> collection) 176public ChainedOpenAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, ChainedBeginHandler begin1, ChainedEndHandler end1, params ICommunicationObject[] objs) 188IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ChannelAcceptor.cs (10)
24protected override TimeSpan DefaultCloseTimeout 29protected override TimeSpan DefaultOpenTimeout 34public abstract TChannel AcceptChannel(TimeSpan timeout); 35public abstract IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state); 38public abstract bool WaitForChannel(TimeSpan timeout); 39public abstract IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state); 46protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 56protected override void OnClose(TimeSpan timeout) 60protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 70protected override void OnOpen(TimeSpan timeout)
System\ServiceModel\Channels\ChannelBase.cs (8)
30TimeSpan IDefaultCommunicationTimeouts.CloseTimeout 35TimeSpan IDefaultCommunicationTimeouts.OpenTimeout 40TimeSpan IDefaultCommunicationTimeouts.ReceiveTimeout 45TimeSpan IDefaultCommunicationTimeouts.SendTimeout 50protected override TimeSpan DefaultCloseTimeout 55protected override TimeSpan DefaultOpenTimeout 60protected TimeSpan DefaultReceiveTimeout 65protected TimeSpan DefaultSendTimeout
System\ServiceModel\Channels\ChannelDemuxer.cs (76)
21public readonly static TimeSpan UseDefaultReceiveTimeout = TimeSpan.MinValue; 26TimeSpan peekTimeout; 36public TimeSpan PeekTimeout 179void OnOuterListenerOpen(ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout); 180IAsyncResult OnBeginOuterListenerOpen(ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout, AsyncCallback callback, object state); 183void OnOuterListenerClose(ChannelDemuxerFilter filter, TimeSpan timeout); 184IAsyncResult OnBeginOuterListenerClose(ChannelDemuxerFilter filter, TimeSpan timeout, AsyncCallback callback, object state); 239protected abstract IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state); 395public void OnOuterListenerClose(ChannelDemuxerFilter filter, TimeSpan timeout) 435public IAsyncResult OnBeginOuterListenerClose(ChannelDemuxerFilter filter, TimeSpan timeout, AsyncCallback callback, object state) 530public void OnOuterListenerOpen(ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout) 574public IAsyncResult OnBeginOuterListenerOpen(ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout, AsyncCallback callback, object state) 674result = this.BeginReceive(TimeSpan.MaxValue, onReceiveComplete, this); 737public OpenAsyncResult(DatagramChannelDemuxer<TInnerChannel, TInnerItem> channelDemuxer, ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout, AsyncCallback callback, object state) 983public CloseAsyncResult(DatagramChannelDemuxer<TInnerChannel, TInnerItem> channelDemuxer, TimeSpan timeout, AsyncCallback callback, object state) 1111protected override IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 1173protected override IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 1267protected override void OnSend(Message message, TimeSpan timeout) 1272protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1282protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1292protected override void OnOpen(TimeSpan timeout) 1311protected override IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 1544protected override void OnOpen(TimeSpan timeout) 1551protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1561IAsyncResult OnBeginOuterListenerOpen(TimeSpan timeout, AsyncCallback callback, object state) 1577protected override void OnClose(TimeSpan timeout) 1584protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1594IAsyncResult OnBeginOuterListenerClose(TimeSpan timeout, AsyncCallback callback, object state) 1642TimeSpan peekTimeout; 1644public SessionChannelDemuxer(BindingContext context, TimeSpan peekTimeout, int maxPendingSessions) 1682protected abstract IAsyncResult BeginReceive(TInnerChannel channel, TimeSpan timeout, AsyncCallback callback, object state); 1711result = this.innerListener.BeginAcceptChannel(TimeSpan.MaxValue, onAcceptComplete, this); 2043public void OnOuterListenerOpen(ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout) 2083public IAsyncResult OnBeginOuterListenerOpen(ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout, AsyncCallback callback, object state) 2121public void OnOuterListenerClose(ChannelDemuxerFilter filter, TimeSpan timeout) 2143public IAsyncResult OnBeginOuterListenerClose(ChannelDemuxerFilter filter, TimeSpan timeout, AsyncCallback callback, object state) 2537public OpenAsyncResult(SessionChannelDemuxer<TInnerChannel, TInnerItem> channelDemuxer, ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout, AsyncCallback callback, object state) 2688public InputSessionChannelDemuxer(BindingContext context, TimeSpan peekTimeout, int maxPendingSessions) 2703protected override IAsyncResult BeginReceive(IInputSessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 2754public DuplexSessionChannelDemuxer(BindingContext context, TimeSpan peekTimeout, int maxPendingSessions) 2769protected override IAsyncResult BeginReceive(IDuplexSessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 2930public void Send(Message message, TimeSpan timeout) 2940public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 2953public ReplySessionChannelDemuxer(BindingContext context, TimeSpan peekTimeout, int maxPendingSessions) 2969protected override IAsyncResult BeginReceive(IReplySessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 3128protected abstract void CloseFirstItem(TimeSpan timeout); 3143this.CloseFirstItem(TimeSpan.Zero); 3146protected override void OnClose(TimeSpan timeout) 3153protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 3211protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 3221protected override void OnOpen(TimeSpan timeout) 3225protected override void CloseFirstItem(TimeSpan timeout) 3242public Message Receive(TimeSpan timeout) 3258public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 3273public bool TryReceive(TimeSpan timeout, out Message message) 3281public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 3299public bool WaitForMessage(TimeSpan timeout) 3306public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 3333protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 3343protected override void OnOpen(TimeSpan timeout) 3347protected override void CloseFirstItem(TimeSpan timeout) 3380public RequestContext ReceiveRequest(TimeSpan timeout) 3396public IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 3411public bool TryReceiveRequest(TimeSpan timeout, out RequestContext request) 3419public IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 3437public bool WaitForRequest(TimeSpan timeout) 3444public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state) 3483protected override void OnOpen(TimeSpan timeout) 3490protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 3500IAsyncResult OnBeginOuterListenerOpen(TimeSpan timeout, AsyncCallback callback, object state) 3516protected override void OnClose(TimeSpan timeout) 3523protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 3533IAsyncResult OnBeginOuterListenerClose(TimeSpan timeout, AsyncCallback callback, object state) 3571public TimeSpan PeekTimeout 3579if (value < TimeSpan.Zero && value != ChannelDemuxer.UseDefaultReceiveTimeout)
System\ServiceModel\Channels\ChannelFactoryBase.cs (12)
12TimeSpan closeTimeout = ServiceDefaults.CloseTimeout; 13TimeSpan openTimeout = ServiceDefaults.OpenTimeout; 14TimeSpan receiveTimeout = ServiceDefaults.ReceiveTimeout; 15TimeSpan sendTimeout = ServiceDefaults.SendTimeout; 26protected override TimeSpan DefaultCloseTimeout 31protected override TimeSpan DefaultOpenTimeout 36protected override TimeSpan DefaultReceiveTimeout 41protected override TimeSpan DefaultSendTimeout 61protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 66protected override void OnClose(TimeSpan timeout) 162protected override void OnClose(TimeSpan timeout) 172protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ChannelListenerBase.cs (16)
19TimeSpan closeTimeout = ServiceDefaults.CloseTimeout; 20TimeSpan openTimeout = ServiceDefaults.OpenTimeout; 21TimeSpan receiveTimeout = ServiceDefaults.ReceiveTimeout; 22TimeSpan sendTimeout = ServiceDefaults.SendTimeout; 39protected override TimeSpan DefaultCloseTimeout 44protected override TimeSpan DefaultOpenTimeout 49protected override TimeSpan DefaultReceiveTimeout 54protected override TimeSpan DefaultSendTimeout 72public bool WaitForChannel(TimeSpan timeout) 79public IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 91protected abstract bool OnWaitForChannel(TimeSpan timeout); 92protected abstract IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state); 109protected abstract TChannel OnAcceptChannel(TimeSpan timeout); 110protected abstract IAsyncResult OnBeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state); 118public TChannel AcceptChannel(TimeSpan timeout) 130public IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ChannelManagerBase.cs (8)
20protected abstract TimeSpan DefaultReceiveTimeout { get; } 21protected abstract TimeSpan DefaultSendTimeout { get; } 23internal TimeSpan InternalReceiveTimeout 28internal TimeSpan InternalSendTimeout 33TimeSpan IDefaultCommunicationTimeouts.CloseTimeout 38TimeSpan IDefaultCommunicationTimeouts.OpenTimeout 43TimeSpan IDefaultCommunicationTimeouts.ReceiveTimeout 48TimeSpan IDefaultCommunicationTimeouts.SendTimeout
System\ServiceModel\Channels\ChannelPool.cs (2)
27protected override void CloseItem(TChannel item, TimeSpan timeout) 32protected override void CloseItemAsync(TChannel item, TimeSpan timeout)
System\ServiceModel\Channels\ChannelPoolSettings.cs (8)
13TimeSpan idleTimeout; 14TimeSpan leaseTimeout; 31[DefaultValue(typeof(TimeSpan), OneWayDefaults.IdleTimeoutString)] 32public TimeSpan IdleTimeout 41if (value < TimeSpan.Zero) 57[DefaultValue(typeof(TimeSpan), OneWayDefaults.LeaseTimeoutString)] 58public TimeSpan LeaseTimeout 66if (value < TimeSpan.Zero)
System\ServiceModel\Channels\ChannelReliableSession.cs (16)
24TimeSpan initiationTime; 72public TimeSpan InitiationTime 208public virtual IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 213public abstract IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state); 215public virtual void Close(TimeSpan timeout) 383public abstract void Open(TimeSpan timeout); 707public override IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 727public override void Close(TimeSpan timeout) 751TimeSpan GetPollingInterval() 762return TimeSpan.MaxValue; 765TimeSpan keepAliveInterval = WsrmUtilities.CalculateKeepAliveInterval(this.Settings.InactivityTimeout, this.Settings.MaxRetryCount); 766TimeSpan fastPollingInterval = Ticks.ToTimeSpan(Ticks.FromTimeSpan(this.binder.DefaultSendTimeout) / 2); 824public override void Open(TimeSpan timeout) 1050public OpenAsyncResult(ClientReliableSession session, TimeSpan timeout, AsyncCallback callback, object state) 1131public override IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1146public override void Open(TimeSpan timeout)
System\ServiceModel\Channels\ChannelTracker.cs (6)
98protected override void OnClose(TimeSpan timeout) 132protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 149protected override TimeSpan DefaultCloseTimeout 154protected override TimeSpan DefaultOpenTimeout 159protected override void OnOpen(TimeSpan timeout) 163protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (42)
24TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 91public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, 97public IAsyncResult BeginRequest(Message message, TimeSpan timeout, MaskingMode maskingMode, 105protected override IAsyncResult BeginTryGetChannel(TimeSpan timeout, 128TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 184protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, 190protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, 197TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, object state) 202protected override void OnClose(TimeSpan timeout) 222protected override void OnOpen(TimeSpan timeout) 226protected virtual Message OnRequest(TChannel channel, Message message, TimeSpan timeout, 232public Message Request(Message message, TimeSpan timeout) 237public Message Request(Message message, TimeSpan timeout, MaskingMode maskingMode) 295protected override bool TryGetChannel(TimeSpan timeout) 325TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 356TimeSpan timeout, AsyncCallback callback, object state) 362TimeSpan timeout, AsyncCallback callback, object state) 390TimeSpan timeout) 395protected override bool OnTryReceive(TDuplexChannel channel, TimeSpan timeout, 415TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 446TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 466TimeSpan timeout, AsyncCallback callback, object state) 472protected override void CloseChannel(IDuplexSessionChannel channel, TimeSpan timeout) 503TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 509public override IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, 576Message message, TimeSpan timeout, MaskingMode maskingMode, 583TimeSpan timeout, AsyncCallback callback, object state) 601TimeSpan timeout, MaskingMode maskingMode) 607TimeSpan timeout) 621public override bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 643TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, object state) 661protected override string GetTimeoutString(TimeSpan timeout) 673TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 704TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (3)
46protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 122protected override void OnOpen(TimeSpan timeout) 294HttpWebRequest CreateHttpWebRequest(TimeSpan timeout)
System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (1)
18public CloseCollectionAsyncResult(TimeSpan timeout, AsyncCallback otherCallback, object state, IList<ICommunicationObject> collection)
System\ServiceModel\Channels\CommunicationObject.cs (18)
80protected abstract TimeSpan DefaultCloseTimeout { get; } 81protected abstract TimeSpan DefaultOpenTimeout { get; } 83internal TimeSpan InternalCloseTimeout 88internal TimeSpan InternalOpenTimeout 150public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 152if (timeout < TimeSpan.Zero) 226public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 228if (timeout < TimeSpan.Zero) 268public void Close(TimeSpan timeout) 270if (timeout < TimeSpan.Zero) 564public void Open(TimeSpan timeout) 566if (timeout < TimeSpan.Zero) 1023protected abstract void OnClose(TimeSpan timeout); 1025protected abstract IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state); 1027protected abstract void OnOpen(TimeSpan timeout); 1028protected abstract IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state); 1088public OpenAsyncResult(CommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state) 1163public CloseAsyncResult(CommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ConnectAlgorithms.cs (1)
51public void Connect(TimeSpan timeout)
System\ServiceModel\Channels\Connection.cs (34)
24void Close(TimeSpan timeout, bool asyncAndLinger); 25void Shutdown(TimeSpan timeout); 27AsyncCompletionResult BeginWrite(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, 30void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout); 31void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, BufferManager bufferManager); 33int Read(byte[] buffer, int offset, int size, TimeSpan timeout); 34AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, WaitCallback callback, object state); 47IConnection Connect(Uri uri, TimeSpan timeout); 48IAsyncResult BeginConnect(Uri uri, TimeSpan timeout, AsyncCallback callback, object state); 100public virtual void Close(TimeSpan timeout, bool asyncAndLinger) 105public virtual void Shutdown(TimeSpan timeout) 130public virtual AsyncCompletionResult BeginWrite(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, 141public virtual void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout) 146public virtual void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, BufferManager bufferManager) 151public virtual int Read(byte[] buffer, int offset, int size, TimeSpan timeout) 156public virtual AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, 207public override int Read(byte[] buffer, int offset, int size, TimeSpan timeout) 223public override AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, WaitCallback callback, object state) 255TimeSpan closeTimeout; 295public TimeSpan CloseTimeout 410protected int Read(byte[] buffer, int offset, int count, TimeSpan timeout) 426public void Shutdown(TimeSpan timeout) 493public ReadAsyncResult(IConnection connection, byte[] buffer, int offset, int count, TimeSpan timeout, 524public WriteAsyncResult(IConnection connection, byte[] buffer, int offset, int count, bool immediate, TimeSpan timeout, AsyncCallback callback, object state) 646public void Close(TimeSpan timeout, bool asyncAndLinger) 659public void Shutdown(TimeSpan timeout) 684public AsyncCompletionResult BeginWrite(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, 765public void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout) 779public void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, BufferManager bufferManager) 785void SetReadTimeout(TimeSpan timeout) 795void SetWriteTimeout(TimeSpan timeout) 805public int Read(byte[] buffer, int offset, int size, TimeSpan timeout) 818public AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, WaitCallback callback, object state) 902internal static void CloseNoThrow(IConnection connection, TimeSpan timeout)
System\ServiceModel\Channels\ConnectionDemuxer.cs (10)
40TimeSpan channelInitializationTimeout; 41TimeSpan idleTimeout; 46TimeSpan channelInitializationTimeout, TimeSpan idleTimeout, int maxPooledConnections, 122public void ReuseConnection(IConnection connection, TimeSpan closeTimeout) 321long streamPosition, int offset, int size, TimeSpan timeout) 439long streamPosition, int offset, int size, TimeSpan timeout) 574TimeSpan closeTimeout; 576public ReuseConnectionState(ConnectionModeReader modeReader, TimeSpan closeTimeout) 587public TimeSpan CloseTimeout
System\ServiceModel\Channels\ConnectionModeReader.cs (2)
45public TimeSpan GetRemainingTimeout() 193public void StartReading(TimeSpan receiveTimeout, Action connectionDequeuedCallback)
System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (8)
23TimeSpan channelInitializationTimeout; 27TimeSpan maxOutputDelay; 184[DefaultValue(typeof(TimeSpan), ConnectionOrientedTransportDefaults.ChannelInitializationTimeoutString)] 185public TimeSpan ChannelInitializationTimeout 194if (value <= TimeSpan.Zero) 211[DefaultValue(typeof(TimeSpan), ConnectionOrientedTransportDefaults.MaxOutputDelayString)] 212public TimeSpan MaxOutputDelay 221if (value < TimeSpan.Zero)
System\ServiceModel\Channels\ConnectionOrientedTransportChannelFactory.cs (13)
21TimeSpan idleTimeout; 24TimeSpan maxOutputDelay; 32string connectionPoolGroupName, TimeSpan idleTimeout, int maxOutboundConnectionsPerEndpoint, bool supportsImpersonationDuringAsyncOpen) 109public TimeSpan IdleTimeout 133public TimeSpan MaxOutputDelay 205internal abstract void ReleaseConnectionPool(ConnectionPool pool, TimeSpan timeout); 253ReleaseConnectionPool(localConnectionPool, TimeSpan.Zero); 263protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 273protected override void OnClose(TimeSpan timeout) 301protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 316public OpenAsyncResult(ICommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state) 364protected override void OnOpen(TimeSpan timeout) 387public CloseAsyncResult(ConnectionOrientedTransportChannelFactory<TChannel> parent, TimeSpan timeout,
System\ServiceModel\Channels\ConnectionOrientedTransportChannelListener.cs (17)
21TimeSpan channelInitializationTimeout; 24TimeSpan maxOutputDelay; 26TimeSpan idleTimeout; 97public TimeSpan IdleTimeout 107internal void SetIdleTimeout(TimeSpan idleTimeout) 160public TimeSpan ChannelInitializationTimeout 184public TimeSpan MaxOutputDelay 241protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 266protected override void OnOpen(TimeSpan timeout) 297protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 315protected override void OnClose(TimeSpan timeout) 388IAsyncResult DummyBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 398protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 416protected override void OnClose(TimeSpan timeout) 473protected override void OnClose(TimeSpan timeout) 483IAsyncResult DummyBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 493protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ConnectionOrientedTransportManager.cs (6)
18TimeSpan channelInitializationTimeout; 20TimeSpan maxOutputDelay; 22TimeSpan idleTimeout; 36protected TimeSpan ChannelInitializationTimeout 71internal TimeSpan MaxOutputDelay 87internal TimeSpan IdleTimeout
System\ServiceModel\Channels\ConnectionPool.cs (31)
49protected abstract void CloseItem(TItem item, TimeSpan timeout); 50protected abstract void CloseItemAsync(TItem item, TimeSpan timeout); 59public bool Close(TimeSpan timeout) 122EndpointConnectionPool GetEndpointPool(TKey key, TimeSpan timeout) 171void OnClose(TimeSpan timeout) 203public void AddConnection(TKey key, TItem connection, TimeSpan timeout) 210public TItem TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, out TKey key) 218public void ReturnConnection(TKey key, TItem connection, bool connectionIsStillGood, TimeSpan timeout) 307protected virtual void CloseItem(TItem item, TimeSpan timeout) 312protected virtual void CloseItemAsync(TItem item, TimeSpan timeout) 339public void Close(TimeSpan timeout) 398public void AddConnection(TItem connection, TimeSpan timeout) 431public TItem TakeConnection(TimeSpan timeout) 485public void ReturnConnection(TItem connection, bool connectionIsStillGood, TimeSpan timeout) 523public void CloseIdleConnection(TItem connection, TimeSpan timeout) 624TimeSpan maxOutputDelay; 627protected ConnectionPool(IConnectionOrientedTransportChannelFactorySettings settings, TimeSpan leaseTimeout) 645protected override void CloseItem(IConnection item, TimeSpan timeout) 650protected override void CloseItemAsync(IConnection item, TimeSpan timeout) 718protected abstract TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException); 720public IAsyncResult BeginEstablishConnection(TimeSpan timeout, AsyncCallback callback, object state) 730IConnection TakeConnection(TimeSpan timeout) 735public IConnection EstablishConnection(TimeSpan timeout) 800this.connectionPool.ReturnConnection(connectionKey, localRawConnection, false, TimeSpan.Zero); 810TimeSpan connectTimeout = timeoutHelper.RemainingTime(); 861this.connectionPool.ReturnConnection(this.connectionKey, rawConnection, false, TimeSpan.Zero); 879ReleaseConnection(true, TimeSpan.Zero); 882public void Close(TimeSpan timeout) 887void ReleaseConnection(bool abort, TimeSpan timeout) 942TimeSpan connectTimeout; 948TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
64public void Release(ConnectionPool pool, TimeSpan timeout)
System\ServiceModel\Channels\ContextChannelListener.cs (4)
35protected override TChannel OnAcceptChannel(TimeSpan timeout) 40protected override IAsyncResult OnBeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 45protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 60protected override bool OnWaitForChannel(TimeSpan timeout)
System\ServiceModel\Channels\ContextChannelRequestContext.cs (6)
14TimeSpan defaultSendTimeout; 17public ContextChannelRequestContext(RequestContext innerContext, ContextProtocol contextProtocol, TimeSpan defaultSendTimeout) 43public override IAsyncResult BeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 53public override void Close(TimeSpan timeout) 68public override void Reply(Message message, TimeSpan timeout) 121public ReplyAsyncResult(Message message, ContextChannelRequestContext context, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ContextDuplexSessionChannel.cs (6)
49public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 59public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 64public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 94public Message Receive(TimeSpan timeout) 114public bool TryReceive(TimeSpan timeout, out Message message) 124public bool WaitForMessage(TimeSpan timeout)
System\ServiceModel\Channels\ContextInputChannelBase.cs (6)
28public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 38public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 43public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 73public Message Receive(TimeSpan timeout) 87public bool TryReceive(TimeSpan timeout, out Message message) 100public bool WaitForMessage(TimeSpan timeout)
System\ServiceModel\Channels\ContextOutputChannelBase.cs (3)
38public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 65public void Send(Message message, TimeSpan timeout) 113TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ContextReplyChannel.cs (6)
26public IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 36public IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 41public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state) 82public RequestContext ReceiveRequest(TimeSpan timeout) 108public bool TryReceiveRequest(TimeSpan timeout, out RequestContext context) 123public bool WaitForRequest(TimeSpan timeout)
System\ServiceModel\Channels\ContextReplySessionChannel.cs (6)
31public IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 41public IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 46public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state) 88public RequestContext ReceiveRequest(TimeSpan timeout) 114public bool TryReceiveRequest(TimeSpan timeout, out RequestContext context) 129public bool WaitForRequest(TimeSpan timeout)
System\ServiceModel\Channels\ContextRequestChannelBase.cs (3)
32public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 67public Message Request(Message message, TimeSpan timeout) 120public RequestAsyncResult(Message message, IRequestChannel channel, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\CorrelationCallbackMessageProperty.cs (6)
123public IAsyncResult BeginFinalizeCorrelation(Message message, TimeSpan timeout, AsyncCallback callback, object state) 130if (timeout < TimeSpan.Zero) 156public Message FinalizeCorrelation(Message message, TimeSpan timeout) 163if (timeout < TimeSpan.Zero) 177protected abstract IAsyncResult OnBeginFinalizeCorrelation(Message message, TimeSpan timeout, AsyncCallback callback, object state); 179protected abstract Message OnFinalizeCorrelation(Message message, TimeSpan timeout);
System\ServiceModel\Channels\CreateSequenceResponse.cs (2)
13Nullable<TimeSpan> expires; 43public Nullable<TimeSpan> Expires
System\ServiceModel\Channels\DatagramAdapter.cs (27)
137result = this.listener.BeginAcceptChannel(TimeSpan.MaxValue, acceptCallbackDelegate, this); 268protected override void OnOpen(TimeSpan timeout) 285protected override void OnClose(TimeSpan timeout) 292protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 304void WaitForAcceptLoop(TimeSpan timeout) 323IAsyncResult BeginWaitForAcceptLoop(TimeSpan timeout, AsyncCallback callback, object state) 661internal AsyncWaiter(TimeSpan timeout, AsyncCallback callback, object state) 664if (timeout != TimeSpan.MaxValue) 722public bool Wait(TimeSpan timeout) 770return channel.BeginReceive(TimeSpan.MaxValue, callback, state); 859return channel.BeginReceiveRequest(TimeSpan.MaxValue, callback, state); 938TimeSpan defaultCloseTimeout; 939TimeSpan defaultOpenTimeout; 940TimeSpan defaultSendTimeout; 964protected override TimeSpan DefaultCloseTimeout 969protected override TimeSpan DefaultOpenTimeout 974protected TimeSpan DefaultSendTimeout 979protected override void OnOpen(TimeSpan timeout) 983protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1071protected override void OnClose(TimeSpan timeout) 1092protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1160public void Send(Message message, TimeSpan timeout) 1204public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1221public SendAsyncResult(OutputDatagramAdapterChannel adapter, Message message, TimeSpan timeout, AsyncCallback callback, object state) 1390public Message Request(Message request, TimeSpan timeout) 1437public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1455public RequestAsyncResult(RequestDatagramAdapterChannel adapter, Message message, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\DelegatingChannelListener.cs (8)
42protected override TChannel OnAcceptChannel(TimeSpan timeout) 47protected override IAsyncResult OnBeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 57protected override bool OnWaitForChannel(TimeSpan timeout) 62protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 81protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 91protected override void OnClose(TimeSpan timeout) 98protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 108protected override void OnOpen(TimeSpan timeout)
System\ServiceModel\Channels\DnsCache.cs (2)
21static readonly TimeSpan cacheTimeout = TimeSpan.FromSeconds(2);
System\ServiceModel\Channels\DuplexChannel.cs (18)
34public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 39if (timeout < TimeSpan.Zero) 69protected abstract void OnSend(Message message, TimeSpan timeout); 71protected virtual IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 87public void Send(Message message, TimeSpan timeout) 92if (timeout < TimeSpan.Zero) 111public Message Receive(TimeSpan timeout) 113if (timeout < TimeSpan.Zero) 126public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 128if (timeout < TimeSpan.Zero) 143public bool TryReceive(TimeSpan timeout, out Message message) 145if (timeout < TimeSpan.Zero) 153public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 155if (timeout < TimeSpan.Zero) 168public bool WaitForMessage(TimeSpan timeout) 170if (timeout < TimeSpan.Zero) 178public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 180if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\ExclusiveNamedPipeTransportManager.cs (1)
62internal override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\ExclusiveTcpTransportManager.cs (4)
122internal override void OnClose(TimeSpan timeout) 162TimeSpan channelInitializationTimeout; 163TimeSpan idleTimeout; 167TimeSpan maxOutputDelay;
System\ServiceModel\Channels\FramingChannels.cs (11)
65protected override void CloseOutputSessionCore(TimeSpan timeout) 70protected override void CompleteClose(TimeSpan timeout) 84protected override void OnSendCore(Message message, TimeSpan timeout) 94protected override AsyncCompletionResult BeginCloseOutput(TimeSpan timeout, WaitCallback callback, object state) 105protected override AsyncCompletionResult StartWritingBufferedMessage(Message message, ArraySegment<byte> messageData, bool allowOutputBatching, TimeSpan timeout, WaitCallback callback, object state) 111protected override AsyncCompletionResult StartWritingStreamedMessage(Message message, TimeSpan timeout, WaitCallback callback, object state) 227protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 311protected override void OnOpen(TimeSpan timeout) 339protected override void ReturnConnectionIfNecessary(bool abort, TimeSpan timeout) 398protected override TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException) 850public OpenAsyncResult(ClientFramingDuplexSessionChannel duplexChannel, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\HttpChannelFactory.cs (19)
393SecurityTokenProviderContainer CreateAndOpenTokenProvider(TimeSpan timeout, AuthenticationSchemes authenticationScheme, 520protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 531protected override void OnOpen(TimeSpan timeout) 733SecurityTokenProviderContainer proxyTokenProvider, SecurityTokenContainer clientCertificateToken, TimeSpan timeout, bool isWebSocketRequest) 856void CreateAndOpenTokenProvidersCore(EndpointAddress to, Uri via, ChannelParameterCollection channelParameters, TimeSpan timeout, out SecurityTokenProviderContainer tokenProvider, out SecurityTokenProviderContainer proxyTokenProvider) 870internal void CreateAndOpenTokenProviders(EndpointAddress to, Uri via, ChannelParameterCollection channelParameters, TimeSpan timeout, out SecurityTokenProviderContainer tokenProvider, out SecurityTokenProviderContainer proxyTokenProvider) 884SecurityTokenProviderContainer proxyTokenProvider, SecurityTokenContainer clientCertificateToken, TimeSpan timeout, bool isWebSocketRequest) 977void CreateAndOpenTokenProviders(TimeSpan timeout) 986void CloseTokenProviders(TimeSpan timeout) 1011protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1019protected override void OnOpen(TimeSpan timeout) 1052protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1075protected override void OnClose(TimeSpan timeout) 1209public void SendRequest(Message message, TimeSpan timeout) 1291public Message WaitForReply(TimeSpan timeout) 1441public void BeginSendRequest(Message message, TimeSpan timeout) 1714void SetSendTimeout(TimeSpan timeout) 1720if (timeout == TimeSpan.MaxValue) 2142public IWebProxy CreateWebProxy(HttpWebRequest request, SecurityTokenProviderContainer tokenProvider, TimeSpan timeout)
System\ServiceModel\Channels\HttpChannelHelpers.cs (20)
1057TimeSpan timeSpan = this.CanTimeout ? TimeoutHelper.FromMilliseconds(this.ReadTimeout) : TimeSpan.MaxValue; 1501void WriteStreamedMessage(TimeSpan timeout) 1543IAsyncResult BeginWriteStreamedMessage(HttpResponseMessage httpResponseMessage, TimeSpan timeout, AsyncCallback callback, object state) 1631public WriteStreamedMessageAsyncResult(TimeSpan timeout, HttpOutput httpOutput, HttpResponseMessage httpResponseMessage, AsyncCallback callback, object state) 1767void SetTimer(TimeSpan timeout) 1781public IAsyncResult BeginSend(HttpResponseMessage httpResponseMessage, TimeSpan timeout, AsyncCallback callback, object state) 1787public IAsyncResult BeginSend(TimeSpan timeout, AsyncCallback callback, object state) 1792IAsyncResult BeginSendCore(HttpResponseMessage httpResponseMessage, TimeSpan timeout, AsyncCallback callback, object state) 1861public void Send(HttpResponseMessage httpResponseMessage, TimeSpan timeout) 1945public void Send(TimeSpan timeout) 2029public SendAsyncResult(HttpOutput httpOutput, HttpResponseMessage httpResponseMessage, bool suppressEntityBody, TimeSpan timeout, AsyncCallback callback, object state) 3279public static void SetRequestTimeout(HttpWebRequest request, TimeSpan timeout) 3436SecurityTokenProviderContainer credentialProvider, TimeSpan timeout, 3454SecurityTokenProviderContainer credentialProvider, TimeSpan timeout, 3625public static Exception CreateResponseIOException(IOException ioException, TimeSpan receiveTimeout) 3645TimeSpan.FromMilliseconds(response.GetResponseStream().ReadTimeout)), webException)); 3675return SocketConnection.ConvertTransferException((SocketException)ioException.InnerException, TimeSpan.FromMilliseconds(request.Timeout), exception); 3683return SR.GetString(SR.HttpRequestTimedOut, request.RequestUri, TimeSpan.FromMilliseconds(request.Timeout)); 3708return SocketConnectionInitiator.ConvertConnectException((SocketException)webException.InnerException, request.RequestUri, TimeSpan.MaxValue, webException);
System\ServiceModel\Channels\HttpChannelListener.cs (12)
46readonly TimeSpan requestInitializationTimeout; 138public TimeSpan RequestInitializationTimeout 479protected void CloseUserNameTokenAuthenticator(TimeSpan timeout) 902public TChannel AcceptChannel(TimeSpan timeout) 908public IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 965protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 970protected override void OnOpen(TimeSpan timeout) 982protected override void OnClose(TimeSpan timeout) 997protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1075protected override bool OnWaitForChannel(TimeSpan timeout) 1080protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 1415public LifetimeWrappedCloseAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, CommunicationObjectManager<TCommunicationObject> communicationObjectManager, ChainedBeginHandler begin1, ChainedEndHandler end1, ICommunicationObject[] communicationObjects)
System\ServiceModel\Channels\HttpPipeline.cs (8)
118public abstract void SendReply(Message message, TimeSpan timeout); 227public override void SendReply(Message message, TimeSpan timeout) 283protected virtual void SendReplyCore(Message message, TimeSpan timeout) 360protected override void SendReplyCore(Message message, TimeSpan timeout) 401TimeSpan defaultSendTimeout; 435public override void SendReply(Message message, TimeSpan timeout) 758void WaitTransportIntegrationHandlerTask(TimeSpan timeout) 772public override void SendReply(Message message, TimeSpan timeout)
System\ServiceModel\Channels\HttpRequestContext.cs (6)
147protected override void OnClose(TimeSpan timeout) 312protected override void OnReply(Message message, TimeSpan timeout) 343Message message, TimeSpan timeout, AsyncCallback callback, object state) 483public void AcceptWebSocket(HttpResponseMessage response, string protocol, TimeSpan timeout) 565public ReplyAsyncResult(HttpRequestContext context, Message message, TimeSpan timeout, AsyncCallback callback, object state) 869protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\HttpsChannelFactory.cs (8)
179protected override void OnOpen(TimeSpan timeout) 185internal SecurityTokenProvider CreateAndOpenCertificateTokenProvider(EndpointAddress target, Uri via, ChannelParameterCollection channelParameters, TimeSpan timeout) 298void CreateAndOpenTokenProvider(TimeSpan timeout) 306void CloseTokenProvider(TimeSpan timeout) 322protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 329protected override void OnOpen(TimeSpan timeout) 342protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 349protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\HttpTransportBindingElement.cs (4)
36TimeSpan requestInitializationTimeout; 369[DefaultValue(typeof(TimeSpan), HttpTransportDefaults.RequestInitializationTimeoutString)] 370public TimeSpan RequestInitializationTimeout 378if (value < TimeSpan.Zero)
System\ServiceModel\Channels\HttpTransportManager.cs (1)
104internal override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\IChannelAcceptor.cs (4)
9TChannel AcceptChannel(TimeSpan timeout); 10IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state); 13bool WaitForChannel(TimeSpan timeout); 14IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\IChannelListener.cs (4)
15bool WaitForChannel(TimeSpan timeout); 16IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state); 24TChannel AcceptChannel(TimeSpan timeout); 26IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\IdlingCommunicationPool.cs (13)
18TimeSpan idleTimeout; 19TimeSpan leaseTimeout; 21protected IdlingCommunicationPool(int maxCount, TimeSpan idleTimeout, TimeSpan leaseTimeout) 28public TimeSpan IdleTimeout 33protected TimeSpan LeaseTimeout 38protected override void CloseItemAsync(TItem item, TimeSpan timeout) 46if (idleTimeout != TimeSpan.MaxValue || leaseTimeout != TimeSpan.MaxValue) 77protected override void CloseItemAsync(TItem item, TimeSpan timeout) 83protected override void CloseItem(TItem item, TimeSpan timeout) 104TimeSpan idleTimeout; 105TimeSpan leaseTimeout;
System\ServiceModel\Channels\IDuplexSession.cs (2)
11void CloseOutputSession(TimeSpan timeout); 13IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\IInputChannel.cs (6)
15Message Receive(TimeSpan timeout); 17IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state); 20bool TryReceive(TimeSpan timeout, out Message message); 21IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state); 24bool WaitForMessage(TimeSpan timeout); 25IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\ILockingQueue.cs (2)
9void DeleteMessage(long lookupId, TimeSpan timeout); 10void UnlockMessage(long lookupId, TimeSpan timeout);
System\ServiceModel\Channels\IMessageSource.cs (4)
17AsyncReceiveResult BeginReceive(TimeSpan timeout, WaitCallback callback, object state); 19Message Receive(TimeSpan timeout); 21AsyncReceiveResult BeginWaitForMessage(TimeSpan timeout, WaitCallback callback, object state); 23bool WaitForMessage(TimeSpan timeout);
System\ServiceModel\Channels\InitialServerConnectionReader.cs (4)
114public void CloseFromPool(TimeSpan timeout) 200protected void Close(TimeSpan timeout) 235internal static void SendFault(IConnection connection, string faultString, byte[] drainBuffer, TimeSpan sendTimeout, int maxRead) 297if (readTotal > maxRead || timeoutHelper.RemainingTime() <= TimeSpan.Zero)
System\ServiceModel\Channels\InputChannel.cs (19)
42protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 52protected override void OnOpen(TimeSpan timeout) 61public virtual Message Receive(TimeSpan timeout) 63if (timeout < TimeSpan.Zero) 77public virtual IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 79if (timeout < TimeSpan.Zero) 95public virtual bool TryReceive(TimeSpan timeout, out Message message) 97if (timeout < TimeSpan.Zero) 107public virtual IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 109if (timeout < TimeSpan.Zero) 124public bool WaitForMessage(TimeSpan timeout) 126if (timeout < TimeSpan.Zero) 136public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 138if (timeout < TimeSpan.Zero) 152internal static Message HelpReceive(IInputChannel channel, TimeSpan timeout) 165internal static IAsyncResult HelpBeginReceive(IInputChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 178TimeSpan timeout; 182public HelpReceiveAsyncResult(IInputChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 241static Exception CreateReceiveTimedOutException(IInputChannel channel, TimeSpan timeout)
System\ServiceModel\Channels\InputQueueChannel.cs (6)
101protected IAsyncResult BeginDequeue(TimeSpan timeout, AsyncCallback callback, object state) 120protected bool Dequeue(TimeSpan timeout, out TDisposable item) 134protected bool WaitForItem(TimeSpan timeout) 145protected IAsyncResult BeginWaitForItem(TimeSpan timeout, AsyncCallback callback, object state) 172protected override void OnClose(TimeSpan timeout) 177protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\InputQueueChannelAcceptor.cs (4)
26public override TChannel AcceptChannel(TimeSpan timeout) 32public override IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 95public override bool WaitForChannel(TimeSpan timeout) 101public override IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\InternalDuplexChannelFactory.cs (6)
125protected override void OnOpen(TimeSpan timeout) 132protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 142protected override void OnClose(TimeSpan timeout) 149protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 206protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 211protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\InternalDuplexChannelListener.cs (18)
40protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 50protected override void OnClose(TimeSpan timeout) 63protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 73protected override void OnOpen(TimeSpan timeout) 117TimeSpan sendTimeout; 151public Message Receive(TimeSpan timeout) 161public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 171public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 181public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 201protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 211protected override void OnClose(TimeSpan timeout) 217protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 227protected override void OnOpen(TimeSpan timeout) 232public bool TryReceive(TimeSpan timeout, out Message message) 242public void Send(Message message, TimeSpan timeout) 292public SendAsyncResult(ServerCompositeDuplexChannel outer, Message message, TimeSpan timeout, AsyncCallback callback, object state) 361public bool WaitForMessage(TimeSpan timeout) 366public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\IOutputChannel.cs (2)
15void Send(Message message, TimeSpan timeout); 17IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\IPeerNeighbor.cs (1)
19IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\IReceiveContextSettings.cs (1)
11TimeSpan ValidityDuration { get; }
System\ServiceModel\Channels\IReliableChannelBinder.cs (21)
14TimeSpan DefaultSendTimeout { get; } 25void Close(TimeSpan timeout); 26void Close(TimeSpan timeout, MaskingMode maskingMode); 27IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state); 28IAsyncResult BeginClose(TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, object state); 31void Open(TimeSpan timeout); 32IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state); 35IAsyncResult BeginSend(Message message, TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, object state); 36IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state); 38void Send(Message message, TimeSpan timeout); 39void Send(Message message, TimeSpan timeout, MaskingMode maskingMode); 41bool TryReceive(TimeSpan timeout, out RequestContext requestContext); 42bool TryReceive(TimeSpan timeout, out RequestContext requestContext, MaskingMode maskingMode); 43IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state); 44IAsyncResult BeginTryReceive(TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, object state); 61IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state); 62IAsyncResult BeginRequest(Message message, TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, object state); 64Message Request(Message message, TimeSpan timeout); 65Message Request(Message message, TimeSpan timeout, MaskingMode maskingMode); 74IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state); 76bool WaitForRequest(TimeSpan timeout);
System\ServiceModel\Channels\IReliableFactorySettings.cs (3)
8TimeSpan AcknowledgementInterval { get; } 12TimeSpan InactivityTimeout { get; } 26TimeSpan SendTimeout { get; }
System\ServiceModel\Channels\IReplyChannel.cs (6)
14RequestContext ReceiveRequest(TimeSpan timeout); 16IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state); 19bool TryReceiveRequest(TimeSpan timeout, out RequestContext context); 20IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state); 23bool WaitForRequest(TimeSpan timeout); 24IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\IRequestChannel.cs (2)
15Message Request(Message message, TimeSpan timeout); 17IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\ITransportFactorySettings.cs (4)
15TimeSpan MaxOutputDelay { get; } 16TimeSpan IdleTimeout { get; } 21TimeSpan ChannelInitializationTimeout { get; } 53TimeSpan LeaseTimeout { get; }
System\ServiceModel\Channels\LayeredChannel.cs (4)
54protected override void OnClose(TimeSpan timeout) 59protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 69protected override void OnOpen(TimeSpan timeout) 74protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\LayeredChannelFactory.cs (16)
41protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 51protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 61protected override void OnClose(TimeSpan timeout) 68protected override void OnOpen(TimeSpan timeout) 111public Message Receive(TimeSpan timeout) 123public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 135public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 147public bool TryReceive(TimeSpan timeout, out Message message) 154public bool WaitForMessage(TimeSpan timeout) 159public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 212protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 222protected override void OnClose(TimeSpan timeout) 229protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 239protected override void OnOpen(TimeSpan timeout) 251public void Send(Message message, TimeSpan timeout) 261public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\LayeredChannelListener.cs (10)
111protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 122protected override void OnClose(TimeSpan timeout) 140protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 150protected override void OnOpen(TimeSpan timeout) 193public OpenAsyncResult(ICommunicationObject communicationObject, bool sharedInnerListener, TimeSpan timeout, AsyncCallback callback, object state) 247public CloseAsyncResult(ICommunicationObject communicationObject, bool sharedInnerListener, TimeSpan timeout, AsyncCallback callback, object state) 312public override TChannel AcceptChannel(TimeSpan timeout) 321public override IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 335public override bool WaitForChannel(TimeSpan timeout) 340public override IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\LifetimeManager.cs (14)
81public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 96public void Close(TimeSpan timeout) 112CommunicationWaitResult CloseCore(TimeSpan timeout, bool aborting) 209CloseCore(TimeSpan.FromSeconds(1), true); 212protected virtual IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 245protected virtual void OnClose(TimeSpan timeout) 287CommunicationWaitResult Wait(TimeSpan timeout, bool aborting); 296TimeSpan timeout; 298public CloseCommunicationAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, object mutex) 305if (timeout < TimeSpan.Zero) 355public CommunicationWaitResult Wait(TimeSpan timeout, bool aborting) 357if (timeout < TimeSpan.Zero) 421public CommunicationWaitResult Wait(TimeSpan timeout, bool aborting) 427if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\LocalClientSecuritySettings.cs (18)
15TimeSpan replayWindow; 16TimeSpan maxClockSkew; 18TimeSpan maxCookieCachingTime; 19TimeSpan sessionKeyRenewalInterval; 20TimeSpan sessionKeyRolloverInterval; 22TimeSpan timestampValidityDuration; 73public TimeSpan ReplayWindow 81if (value < TimeSpan.Zero) 97public TimeSpan MaxClockSkew 105if (value < TimeSpan.Zero) 133public TimeSpan TimestampValidityDuration 141if (value < TimeSpan.Zero) 169public TimeSpan MaxCookieCachingTime 177if (value < TimeSpan.Zero) 210public TimeSpan SessionKeyRenewalInterval 218if (value < TimeSpan.Zero) 234public TimeSpan SessionKeyRolloverInterval 242if (value < TimeSpan.Zero)
System\ServiceModel\Channels\LocalServiceSecuritySettings.cs (24)
15TimeSpan replayWindow; 16TimeSpan maxClockSkew; 17TimeSpan issuedCookieLifetime; 19TimeSpan negotiationTimeout; 22TimeSpan inactivityTimeout; 23TimeSpan sessionKeyRenewalInterval; 24TimeSpan sessionKeyRolloverInterval; 26TimeSpan timestampValidityDuration; 77public TimeSpan ReplayWindow 85if (value < TimeSpan.Zero) 101public TimeSpan MaxClockSkew 109if (value < TimeSpan.Zero) 138public TimeSpan IssuedCookieLifetime 146if (value < TimeSpan.Zero) 179public TimeSpan NegotiationTimeout 187if (value < TimeSpan.Zero) 220public TimeSpan InactivityTimeout 228if (value < TimeSpan.Zero) 244public TimeSpan SessionKeyRenewalInterval 252if (value < TimeSpan.Zero) 268public TimeSpan SessionKeyRolloverInterval 276if (value < TimeSpan.Zero) 304public TimeSpan TimestampValidityDuration 312if (value < TimeSpan.Zero)
System\ServiceModel\Channels\Msmq3PoisonHandler.cs (1)
57queue.UnlockMessage(messageProperty.LookupId, TimeSpan.Zero);
System\ServiceModel\Channels\Msmq4PoisonHandler.cs (4)
85handler.retryQueueForPeek.BeginPeek(handler.retryQueueMessage, TimeSpan.MaxValue, onPeekCompleted, handler); 296TimeSpan waitTime = lastMoveTime + handler.ReceiveParameters.RetryCycleDelay - DateTime.UtcNow; 297if (waitTime < TimeSpan.Zero) 320this.retryQueueForPeek.BeginPeek(this.retryQueueMessage, TimeSpan.MaxValue, onPeekCompleted, this);
System\ServiceModel\Channels\MsmqBindingElementBase.cs (8)
25TimeSpan retryCycleDelay; 26TimeSpan timeToLive; 187public TimeSpan RetryCycleDelay 192if (value < TimeSpan.Zero) 209public TimeSpan TimeToLive 214if (value < TimeSpan.Zero) 242public TimeSpan ValidityDuration 247if (value < TimeSpan.Zero)
System\ServiceModel\Channels\MsmqBindingMonitor.cs (4)
17static readonly TimeSpan DefaultUpdateInterval = TimeSpan.FromMinutes(10); 27TimeSpan updateInterval; 36public MsmqBindingMonitor(string host, TimeSpan updateInterval, bool retryMatchedFilters)
System\ServiceModel\Channels\MsmqChannelFactoryBase.cs (4)
22TimeSpan timeToLive; 117public TimeSpan TimeToLive 187protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 197protected override void OnOpen(TimeSpan timeout)
System\ServiceModel\Channels\MsmqChannelListenerBase.cs (7)
89protected virtual void OnOpenCore(TimeSpan timeout) 95protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 101protected override void OnClose(TimeSpan timeout) 113protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 121protected override void OnOpen(TimeSpan timeout) 282public abstract TChannel AcceptChannel(TimeSpan timeout); 283public abstract IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\MsmqDefaultLockingQueue.cs (5)
34public override ReceiveResult TryReceive(NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode) 77unsafe int PeekLockCore(MsmqQueueHandle handle, MsmqInputMessage message, TimeSpan timeout) 173public void DeleteMessage(long lookupId, TimeSpan timeout) 276public void UnlockMessage(long lookupId, TimeSpan timeout) 430this.UnlockMessage(lookupId, TimeSpan.Zero);
System\ServiceModel\Channels\MsmqInputChannelBase.cs (10)
68protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 74protected override void OnOpen(TimeSpan timeout) 89protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 95protected override void OnClose(TimeSpan timeout) 124public Message Receive(TimeSpan timeout) 134public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 148public bool TryReceive(TimeSpan timeout, out Message message) 203public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 273public bool WaitForMessage(TimeSpan timeout) 293public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\MsmqInputChannelListenerBase.cs (5)
35protected override void OnOpenCore(TimeSpan timeout) 61public override IInputChannel AcceptChannel(TimeSpan timeout) 66public override IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 77protected override bool OnWaitForChannel(TimeSpan timeout) 82protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\MsmqInputSessionChannel.cs (19)
74void AbandonMessage(TimeSpan timeout) 80void CompleteMessage(TimeSpan timeout) 95public override Message Receive(TimeSpan timeout) 105public override IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 110public override bool TryReceive(TimeSpan timeout, out Message message) 136public override IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 188this.sessiongramReceiveContext.Abandon(TimeSpan.MaxValue); 196this.sessiongramReceiveContext.Abandon(TimeSpan.MaxValue); 238protected override void OnClose(TimeSpan timeout) 244protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 338protected override void OnAbandon(TimeSpan timeout) 343protected override IAsyncResult OnBeginAbandon(TimeSpan timeout, AsyncCallback callback, object state) 348protected override IAsyncResult OnBeginComplete(TimeSpan timeout, AsyncCallback callback, object state) 353protected override void OnComplete(TimeSpan timeout) 377SessionReceiveContextAsyncResult(MsmqSessionReceiveContext receiveContext, TimeSpan timeout, AsyncCallback callback, object state, Action<object> target) 386public static IAsyncResult CreateComplete(MsmqSessionReceiveContext receiveContext, TimeSpan timeout, AsyncCallback callback, object state) 395public static IAsyncResult CreateAbandon(MsmqSessionReceiveContext receiveContext, TimeSpan timeout, AsyncCallback callback, object state) 478this.sessiongramReceiveContext.Abandon(TimeSpan.MaxValue); 492this.sessiongramReceiveContext.Complete(TimeSpan.MaxValue);
System\ServiceModel\Channels\MsmqInputSessionChannelListener.cs (5)
51protected override void OnOpenCore(TimeSpan timeout) 70public override IInputSessionChannel AcceptChannel(TimeSpan timeout) 124public override IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 196protected override bool OnWaitForChannel(TimeSpan timeout) 213protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\MsmqOutputChannel.cs (9)
49void OnCloseCore(bool isAborting, TimeSpan timeout) 62protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 73protected override void OnClose(TimeSpan timeout) 80OnCloseCore(true, TimeSpan.Zero); 83void OnOpenCore(TimeSpan timeout) 113protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 124protected override void OnOpen(TimeSpan timeout) 129protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 140protected override void OnSend(Message message, TimeSpan timeout)
System\ServiceModel\Channels\MsmqOutputMessage.cs (2)
60if (factory.TimeToLive != TimeSpan.MaxValue) 153internal void ApplyCertificateIfNeeded(SecurityTokenProviderContainer certificateTokenProvider, MsmqAuthenticationMode authenticationMode, TimeSpan timeout)
System\ServiceModel\Channels\MsmqOutputSessionChannel.cs (9)
79void OnCloseCore(bool isAborting, TimeSpan timeout) 139this.OnCloseCore(true, TimeSpan.Zero); 142protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 153protected override void OnClose(TimeSpan timeout) 158void OnOpenCore(TimeSpan timeout) 172protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 183protected override void OnOpen(TimeSpan timeout) 188protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 199protected override void OnSend(Message message, TimeSpan timeout)
System\ServiceModel\Channels\MsmqQueue.cs (9)
398public virtual ReceiveResult TryReceive(NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode) 403ReceiveResult TryReceiveInternal(NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode, int action) 545unsafe int ReceiveCoreDtcTransacted(MsmqQueueHandle handle, NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode, int action) 578unsafe int ReceiveCore(MsmqQueueHandle handle, NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode, int action) 614public ReceiveResult TryPeek(NativeMsmqMessage message, TimeSpan timeout) 716unsafe int ReceiveCoreAsync(MsmqQueueHandle handle, IntPtr nativePropertiesPointer, TimeSpan timeout, 727public IAsyncResult BeginTryReceive(NativeMsmqMessage message, TimeSpan timeout, 739public IAsyncResult BeginPeek(NativeMsmqMessage message, TimeSpan timeout, 764public TryReceiveAsyncResult(MsmqQueue msmqQueue, NativeMsmqMessage message, TimeSpan timeout,
System\ServiceModel\Channels\MsmqReceiveContext.cs (9)
28public TimeSpan ValidityDuration 40internal void SetValidityDuration(TimeSpan validityDuration) 89protected override void OnComplete(TimeSpan timeout) 94protected override void OnAbandon(TimeSpan timeout) 99protected override IAsyncResult OnBeginComplete(TimeSpan timeout, AsyncCallback callback, object state) 109protected override IAsyncResult OnBeginAbandon(TimeSpan timeout, AsyncCallback callback, object state) 127ReceiveContextAsyncResult(MsmqReceiveContext receiver, TimeSpan timeout, AsyncCallback callback, object state, Action<object> target) 141public static IAsyncResult CreateComplete(MsmqReceiveContext receiver, TimeSpan timeout, AsyncCallback callback, object state) 150public static IAsyncResult CreateAbandon(MsmqReceiveContext receiver, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\MsmqReceiveContextLockManager.cs (5)
16TimeSpan messageTimeoutInterval = TimeSpan.FromSeconds(60); 68public void DeleteMessage(MsmqReceiveContext receiveContext, TimeSpan timeout) 121public void UnlockMessage(MsmqReceiveContext receiveContext, TimeSpan timeout) 221UnlockMessage(receiveContext, TimeSpan.Zero);
System\ServiceModel\Channels\MsmqReceiveHelper.cs (8)
39Thread.Sleep(TimeSpan.FromMilliseconds(MillisecondsToSleep)); 246internal bool WaitForMessage(TimeSpan timeout) 254internal IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 264internal bool TryReceive(MsmqInputMessage msmqMessage, TimeSpan timeout, MsmqTransactionMode transactionMode, out MsmqMessageProperty property) 289internal IAsyncResult BeginTryReceive(MsmqInputMessage msmqMessage, TimeSpan timeout, MsmqTransactionMode transactionMode, AsyncCallback callback, object state) 334TimeSpan timeout, MsmqTransactionMode transactionMode, AsyncCallback callback, object state) 389internal TryNonTransactedReceiveAsyncResult(MsmqReceiveHelper receiver, MsmqInputMessage msmqMessage, TimeSpan timeout, AsyncCallback callback, object state) 443public WaitForMessageAsyncResult(MsmqQueue msmqQueue, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\MsmqReceiveParameters.cs (2)
14TimeSpan retryCycleDelay; 75internal TimeSpan RetryCycleDelay
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (8)
24TimeSpan lockCollectionInterval = TimeSpan.FromMinutes(5); 125public override ReceiveResult TryReceive(NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode) 171this.UnlockMessage(lookupId, TimeSpan.Zero); 181this.UnlockMessage(lookupId, TimeSpan.Zero); 186public void DeleteMessage(long lookupId, TimeSpan timeout) 216public void UnlockMessage(long lookupId, TimeSpan timeout) 338result = lockQueue.TryPeek(message, TimeSpan.FromSeconds(0));
System\ServiceModel\Channels\NamedPipeChannelFactory.cs (1)
57internal override void ReleaseConnectionPool(ConnectionPool pool, TimeSpan timeout)
System\ServiceModel\Channels\NamedPipeChannelListener.cs (9)
26protected override void OnOpen(TimeSpan timeout) 33protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 43protected override void OnClose(TimeSpan timeout) 56protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 76public TChannel AcceptChannel(TimeSpan timeout) 82public IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 94protected override bool OnWaitForChannel(TimeSpan timeout) 99protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 126TimeSpan ISingletonChannelListener.ReceiveTimeout
System\ServiceModel\Channels\NamedPipeConnectionPool.cs (1)
29: base(settings, TimeSpan.MaxValue)
System\ServiceModel\Channels\NamedPipeConnectionPoolSettings.cs (3)
12TimeSpan idleTimeout; 41public TimeSpan IdleTimeout 46if (value < TimeSpan.Zero)
System\ServiceModel\Channels\NamedPipeTransportManager.cs (1)
110internal override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\NativeMsmqMessage.cs (3)
566public static int FromTimeSpan(TimeSpan timeSpan) 575public static TimeSpan ToTimeSpan(int seconds) 577return TimeSpan.FromSeconds(seconds);
System\ServiceModel\Channels\OneWayChannelFactory.cs (24)
125protected override void OnOpen(TimeSpan timeout) 130protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 140protected override void OnClose(TimeSpan timeout) 145protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 179protected override void OnSend(Message message, TimeSpan timeout) 188protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 298protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 303protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 308protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 314protected override void OnClose(TimeSpan timeout) 334protected override void OnOpen(TimeSpan timeout) 339protected override void OnSend(Message message, TimeSpan timeout) 401this.channelPool.Close(TimeSpan.Zero); 406protected override void OnClose(TimeSpan timeout) 416protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 463protected override void OnOpen(TimeSpan timeout) 467protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 481this.channelPool.Close(TimeSpan.Zero); 485protected override void OnClose(TimeSpan timeout) 493protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 508protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 518protected override void OnSend(Message message, TimeSpan timeout) 558channel.BeginReceive(TimeSpan.MaxValue, this.onReceive, channel); 663public SendAsyncResult(DuplexSessionOutputChannel parent, Message message, TimeSpan timeout,
System\ServiceModel\Channels\OneWayChannelListener.cs (36)
37protected override IInputChannel OnAcceptChannel(TimeSpan timeout) 43protected override IAsyncResult OnBeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 54protected override bool OnWaitForChannel(TimeSpan timeout) 59protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 96Message ProcessContext(RequestContext context, TimeSpan timeout) 156public Message Receive(TimeSpan timeout) 168public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 178public bool TryReceive(TimeSpan timeout, out Message message) 194public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 204public bool WaitForMessage(TimeSpan timeout) 209public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 223public TryReceiveAsyncResult(IReplyChannel innerChannel, TimeSpan timeout, bool validateHeader, 236protected override IAsyncResult OnBeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 251public ReceiveAsyncResult(IReplyChannel innerChannel, TimeSpan timeout, bool validateHeader, 263protected override IAsyncResult OnBeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 284protected ReceiveAsyncResultBase(IReplyChannel innerChannel, TimeSpan timeout, bool validateHeader, 319protected abstract IAsyncResult OnBeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state); 505protected override IInputChannel OnAcceptChannel(TimeSpan timeout) 511protected override IAsyncResult OnBeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 516protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 532protected override bool OnWaitForChannel(TimeSpan timeout) 569public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 574public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 579public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 607public Message Receive(TimeSpan timeout) 613public bool TryReceive(TimeSpan timeout, out Message message) 620public bool WaitForMessage(TimeSpan timeout) 648TimeSpan idleTimeout; 734result = this.innerChannelListener.BeginAcceptChannel(TimeSpan.MaxValue, onAcceptInnerChannel, this); 1086protected override void OnOpen(TimeSpan timeout) 1094protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1117protected override void OnClose(TimeSpan timeout) 1128protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1196protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1213protected override void OnClose(TimeSpan timeout) 1236TimeSpan idleTimeout;
System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (1)
19public OpenCollectionAsyncResult(TimeSpan timeout, AsyncCallback otherCallback, object state, IList<ICommunicationObject> collection)
System\ServiceModel\Channels\OutputChannel.cs (6)
27public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 32if (timeout < TimeSpan.Zero) 63protected abstract void OnSend(Message message, TimeSpan timeout); 65protected abstract IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state); 74public void Send(Message message, TimeSpan timeout) 79if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\OverlappedContext.cs (2)
268public bool WaitForSyncOperation(TimeSpan timeout) 275public bool WaitForSyncOperation(TimeSpan timeout, ref object holder)
System\ServiceModel\Channels\PeerChannelFactory.cs (2)
117protected override void OnOpen(TimeSpan timeout) 121protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\PeerChannelListener.cs (16)
162void OnCloseCore(TimeSpan timeout) 170protected override void OnClose(TimeSpan timeout) 195protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 207void OnOpenCore(TimeSpan timeout) 215protected override void OnOpen(TimeSpan timeout) 220protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 300public TChannel AcceptChannel(TimeSpan timeout) 306public IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 317void OnCloseCore(TimeSpan timeout) 324protected override void OnClose(TimeSpan timeout) 336protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 348void OnOpenCore(TimeSpan timeout) 356protected override void OnOpen(TimeSpan timeout) 362protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 374protected override bool OnWaitForChannel(TimeSpan timeout) 379protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\PeerDuplexChannel.cs (6)
116protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 121protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 127protected override void OnClose(TimeSpan timeout) 183protected override void OnOpen(TimeSpan timeout) 195protected override void OnSend(Message message, TimeSpan timeout) 200protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\PeerDuplexChannelListener.cs (1)
33protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\PeerFlooder.cs (5)
139public virtual IAsyncResult BeginFloodEncodedMessage(byte[] id, MessageBuffer encodedMessage, TimeSpan timeout, AsyncCallback callback, object state) 161TimeSpan timeout, AsyncCallback callback, object state, int index, MessageHeader hopHeader) 195protected IAsyncResult BeginSendHelper(IPeerNeighbor neighbor, TimeSpan timeout, Message message, FloodAsyncResult fresult) 249TimeSpan timeout, AsyncCallback callback, object state, 837public FloodAsyncResult(PeerNeighborManager owner, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\PeerHelpers.cs (10)
74TimeSpan maintainerRetryInterval; 75TimeSpan maintainerTimeout; 76TimeSpan unregisterTimeout; 162public TimeSpan MaintainerRetryInterval 167public TimeSpan MaintainerTimeout 256public TimeSpan UnregisterTimeout 503public static TimeSpan ForwardInterval = TimeSpan.FromSeconds(10); 504public static TimeSpan ForwardTimeout = TimeSpan.FromSeconds(60);
System\ServiceModel\Channels\PeerInputChannel.cs (6)
72protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 80IAsyncResult OnBeginCloseNode(TimeSpan timeout, AsyncCallback callback, object state) 85protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 93IAsyncResult OnBeginOpenNode(TimeSpan timeout, AsyncCallback callback, object state) 99protected override void OnClose(TimeSpan timeout) 163protected override void OnOpen(TimeSpan timeout)
System\ServiceModel\Channels\PeerInputChannelListener.cs (1)
46protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\PeerMaintainer.cs (5)
34IAsyncResult BeginOpenNeighbor(PeerNodeAddress to, TimeSpan timeout, AsyncCallback callback, object asyncState); 46void Connect(TimeSpan timeout); 516ReadOnlyCollection<PeerNodeAddress> ResolveNewAddresses(TimeSpan timeLeft, bool retryResolve) 536for (int i = 0; i < nresolves && reply.Count < config.MaxResolveAddresses && isOpen && timeoutHelper.RemainingTime() > TimeSpan.Zero; i++) 611IAsyncResult IPeerMaintainer.BeginOpenNeighbor(PeerNodeAddress address, TimeSpan timeout, AsyncCallback callback, object asyncState)
System\ServiceModel\Channels\PeerMessageDispatcher.cs (6)
76protected override TimeSpan DefaultCloseTimeout 81protected override TimeSpan DefaultOpenTimeout 95protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 106protected override void OnClose(TimeSpan timeout) 131protected override void OnOpen(TimeSpan timeout) 135protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\PeerNeighborManager.cs (10)
134public IAsyncResult BeginOpenNeighbor(PeerNodeAddress remoteAddress, TimeSpan timeout, AsyncCallback callback, object asyncState) 148internal IAsyncResult BeginOpenNeighborInternal(PeerNodeAddress remoteAddress, TimeSpan timeout, AsyncCallback callback, object asyncState) 671public void Shutdown(bool graceful, TimeSpan timeout) 721void Shutdown(PeerNeighbor[] neighbors, TimeSpan timeout) 1045PeerService service, ClosedCallback closedCallback, TimeSpan timeout, 1057InstanceContext instanceContext, TimeSpan timeout, AsyncCallback callback, object state) 1087TimeSpan timeout, AsyncCallback callback, object asyncState) 1417PeerService service, ClosedCallback closedCallback, TimeSpan timeout, 1514&& timeoutHelper.RemainingTime() > TimeSpan.Zero 1616PeerService service, ClosedCallback closedCallback, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\PeerNodeImplementation.cs (16)
334public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 339public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state, bool waitForOnline) 365public void SecureOutgoingMessage(ref Message message, Uri via, TimeSpan timeout, SecurityProtocol securityProtocol) 374ITransportFactorySettings settings, TimeSpan timeout, AsyncCallback callback, object state, SecurityProtocol securityProtocol) 479public void Close(TimeSpan timeout) 484void CloseCore(TimeSpan timeout, bool graceful) 835void InternalClose(TimeSpan timeout, bool graceful) 846InternalClose(TimeSpan.FromTicks(0), false); 849protected void OnClose(TimeSpan timeout) 1056void RegisterAddress(string lclMeshId, PeerNodeAddress nodeAddress, TimeSpan timeout) 1090UnregisterAddress((TimeSpan)timeout); 1099void UnregisterAddress(TimeSpan timeout) 1216void OnOpen(TimeSpan timeout, bool waitForOnline) 1269CloseCore(TimeSpan.FromTicks(0), false); 1279internal void Open(TimeSpan timeout, bool waitForOnline) 1285void OpenCore(TimeSpan timeout)
System\ServiceModel\Channels\PeerNodeStateManager.cs (9)
73public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 97public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state, bool waitForOnline) 123public void Close(TimeSpan timeout) 158public void Open(TimeSpan timeout, bool waitForOnline) 223PeerNodeImplementation peerNode, TimeSpan timeout, AsyncCallback callback, object state) 246else if (timeoutHelper.RemainingTime() <= TimeSpan.Zero) 301public OpenOperation(SimpleStateManager stateManager, PeerNodeImplementation peerNode, TimeSpan timeout, 326else if (timeoutHelper.RemainingTime() <= TimeSpan.Zero) 394public OperationBase(SimpleStateManager stateManager, TimeSpan timeout,
System\ServiceModel\Channels\PeerOutputChannel.cs (6)
74protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 79protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 85protected override void OnClose(TimeSpan timeout) 115protected override void OnOpen(TimeSpan timeout) 137protected override void OnSend(Message message, TimeSpan timeout) 142protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\PeerSecurityHelpers.cs (9)
150public override void SecureOutgoingMessage(ref Message message, TimeSpan timeout) 153public override void VerifyIncomingMessage(ref Message request, TimeSpan timeout) 182public override void OnClose(TimeSpan timeout) 186public override void OnOpen(TimeSpan timeout) 193protected override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout) 203public override void OnOpen(TimeSpan timeout) 207public override void OnClose(TimeSpan timeout) 251protected override SecurityToken GetTokenCore(TimeSpan timeout) 690static TimeSpan Timeout = new TimeSpan(0, 2, 0);
System\ServiceModel\Channels\PeerSecurityManager.cs (1)
465public SecurityProtocol CreateSecurityProtocol<TChannel>(EndpointAddress target, TimeSpan timespan)
System\ServiceModel\Channels\PeerService.cs (2)
135this.binding.ReceiveTimeout = TimeSpan.MaxValue; 185public void Open(TimeSpan timeout)
System\ServiceModel\Channels\PipeConnection.cs (29)
75TimeSpan readTimeout; 80TimeSpan writeTimeout; 231public unsafe AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, 269if (this.readTimeout != TimeSpan.MaxValue) 328public unsafe AsyncCompletionResult BeginWrite(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, 424public void Close(TimeSpan timeout, bool asyncAndLinger) 598FinishPendingWrite(TimeSpan.Zero); 738void FinishPendingWrite(TimeSpan timeout) 856if (this.readTimeout != TimeSpan.MaxValue && !this.ReadTimer.Cancel()) 988unsafe public int Read(byte[] buffer, int offset, int size, TimeSpan timeout) 1045public void Shutdown(TimeSpan timeout) 1077unsafe void StartWriteZero(TimeSpan timeout) 1106void WaitForReadZero(TimeSpan timeout, bool traceExceptionsAsErrors) 1146void WaitForWriteZero(TimeSpan timeout, bool traceExceptionsAsErrors) 1177public void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout) 1184unsafe void WriteHelper(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, ref object holder) 1251public unsafe void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, BufferManager bufferManager) 1403unsafe void WaitForSyncRead(TimeSpan timeout, bool traceExceptionsAsErrors) 1497void WaitForSyncWrite(TimeSpan timeout, bool traceExceptionsAsErrors) 1503unsafe void WaitForSyncWrite(TimeSpan timeout, bool traceExceptionsAsErrors, ref object holder) 1650public IConnection Connect(Uri remoteUri, TimeSpan timeout) 1764public IAsyncResult BeginConnect(Uri uri, TimeSpan timeout, AsyncCallback callback, object state) 1774void PrepareConnect(Uri remoteUri, TimeSpan timeout, out string resolvedAddress, out BackoffTimeoutHelper backoffHelper) 1785TimeSpan backoffTimeout; 1786if (timeout >= TimeSpan.FromMilliseconds(backoffBufferMilliseconds * 2)) 1788backoffTimeout = TimeoutHelper.Add(timeout, TimeSpan.Zero - TimeSpan.FromMilliseconds(backoffBufferMilliseconds)); 1795backoffHelper = new BackoffTimeoutHelper(backoffTimeout, TimeSpan.FromMinutes(5)); 1893public ConnectAsyncResult(PipeConnectionInitiator parent, Uri remoteUri, TimeSpan timeout,
System\ServiceModel\Channels\PnrpPeerResolver.cs (17)
47static TimeSpan MaxTimeout = new TimeSpan(0, 10, 0); //PNRP validates the timeout to be no greater than 10 minutes 48static TimeSpan MaxResolveTimeout = new TimeSpan(0, 0, 45); 52static TimeSpan TimeToWaitForStatus = TimeSpan.FromSeconds(15); 227public override object Register(string meshId, PeerNodeAddress nodeAddress, TimeSpan timeout) 337public override void Unregister(object registrationId, TimeSpan timeout) 357public override void Update(object registrationId, PeerNodeAddress updatedNodeAddress, TimeSpan timeout) 625public override ReadOnlyCollection<PeerNodeAddress> Resolve(string meshId, int maxAddresses, TimeSpan timeout) 637TimeoutHelper timeoutHelper = new TimeoutHelper(TimeSpan.Compare(timeout, MaxResolveTimeout) <= 0 ? timeout : MaxResolveTimeout); 1641public bool IsPnrpServiceRunning(TimeSpan waitForService) 1679public bool IsPnrpAvailable(TimeSpan waitForService) 1869public void Register(PnrpRegistration registration, TimeSpan timeout) 1908public void Unregister(string peerName, List<string> clouds, TimeSpan timeout) 1924public void Unregister(string peerName, string cloudName, TimeSpan timeout) 1993PnrpResolveCriteria resolveCriteria, TimeSpan timeout, List<PnrpRegistration> results) 1999PnrpResolveCriteria resolveCriteria, uint scopeId, string cloudName, TimeSpan timeout, List<PnrpRegistration> results) 2065if (timeoutHelper.RemainingTime() == TimeSpan.Zero)
System\ServiceModel\Channels\ReceiveContext.cs (19)
76public virtual void Abandon(TimeSpan timeout) 81public virtual void Abandon(Exception exception, TimeSpan timeout) 137public virtual IAsyncResult BeginAbandon(TimeSpan timeout, AsyncCallback callback, object state) 142public virtual IAsyncResult BeginAbandon(Exception exception, TimeSpan timeout, AsyncCallback callback, object state) 148public virtual IAsyncResult BeginComplete(TimeSpan timeout, AsyncCallback callback, object state) 154public virtual void Complete(TimeSpan timeout) 212void EnsureValidTimeout(TimeSpan timeout) 214if (timeout < TimeSpan.Zero) 240protected abstract void OnAbandon(TimeSpan timeout); 241protected virtual void OnAbandon(Exception exception, TimeSpan timeout) 247protected abstract IAsyncResult OnBeginAbandon(TimeSpan timeout, AsyncCallback callback, object state); 248protected virtual IAsyncResult OnBeginAbandon(Exception exception, TimeSpan timeout, AsyncCallback callback, object state) 254protected abstract IAsyncResult OnBeginComplete(TimeSpan timeout, AsyncCallback callback, object state); 256protected abstract void OnComplete(TimeSpan timeout); 390void WaitForStateLock(TimeSpan timeout) 402bool WaitForStateLockAsync(TimeSpan timeout, FastAsyncCallback callback, object state) 417public AbandonAsyncResult(ReceiveContext receiveContext, Exception exception, TimeSpan timeout, AsyncCallback callback, object state) 524public CompleteAsyncResult(ReceiveContext receiveContext, TimeSpan timeout, AsyncCallback callback, object state) 659public WaitAndContinueOperationAsyncResult(ReceiveContext receiveContext, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ReliableChannelBinder.cs (92)
32TimeSpan defaultCloseTimeout; 34TimeSpan defaultSendTimeout; 41TolerateFaultsMode faultMode, TimeSpan defaultCloseTimeout, 42TimeSpan defaultSendTimeout) 95public TimeSpan DefaultSendTimeout 202public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, 208public IAsyncResult BeginClose(TimeSpan timeout, MaskingMode maskingMode, 224protected virtual IAsyncResult BeginCloseChannel(TChannel channel, TimeSpan timeout, 230public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 263public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, 269public IAsyncResult BeginSend(Message message, TimeSpan timeout, MaskingMode maskingMode, 278protected abstract IAsyncResult BeginTryGetChannel(TimeSpan timeout, 281public virtual IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, 287public virtual IAsyncResult BeginTryReceive(TimeSpan timeout, MaskingMode maskingMode, 296internal IAsyncResult BeginWaitForPendingOperations(TimeSpan timeout, 365public void Close(TimeSpan timeout) 370public void Close(TimeSpan timeout, MaskingMode maskingMode) 444protected virtual void CloseChannel(TChannel channel, TimeSpan timeout) 669protected abstract IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, 671protected abstract IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, 675TimeSpan timeout, AsyncCallback callback, object state) 680protected virtual IAsyncResult OnBeginTryReceive(TChannel channel, TimeSpan timeout, 686protected abstract void OnClose(TimeSpan timeout); 738protected abstract void OnOpen(TimeSpan timeout); 793protected virtual void OnSend(TChannel channel, Message message, TimeSpan timeout) 798protected virtual bool OnTryReceive(TChannel channel, TimeSpan timeout, 804public void Open(TimeSpan timeout) 851public void Send(Message message, TimeSpan timeout) 856public void Send(Message message, TimeSpan timeout, MaskingMode maskingMode) 955void ThrowIfTimeoutNegative(TimeSpan timeout) 957if (timeout < TimeSpan.Zero) 980protected abstract bool TryGetChannel(TimeSpan timeout); 982public virtual bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 987public virtual bool TryReceive(TimeSpan timeout, out RequestContext requestContext, MaskingMode maskingMode) 1053protected bool ValidateInputOperation(TimeSpan timeout) 1055if (timeout < TimeSpan.Zero) 1064protected bool ValidateOutputOperation(Message message, TimeSpan timeout, MaskingMode maskingMode) 1071if (timeout < TimeSpan.Zero) 1080internal void WaitForPendingOperations(TimeSpan timeout) 1274public IAsyncResult BeginTryGetChannelForInput(bool canGetChannel, TimeSpan timeout, 1281public IAsyncResult BeginTryGetChannelForOutput(TimeSpan timeout, 1289TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, object state) 1371public IAsyncResult BeginWaitForPendingOperations(TimeSpan timeout, 1494if (this.binder.TryGetChannel(TimeSpan.Zero)) 1941if (!this.binder.TryGetChannel(TimeSpan.Zero)) 2007public bool TryGetChannelForInput(bool canGetChannel, TimeSpan timeout, 2014public bool TryGetChannelForOutput(TimeSpan timeout, MaskingMode maskingMode, 2020bool TryGetChannel(bool canGetChannel, bool canCauseFault, TimeSpan timeout, 2144public void WaitForPendingOperations(TimeSpan timeout) 2203TChannel channel, TimeSpan timeout, MaskingMode maskingMode, 2541TimeSpan timeout = this.timeoutHelper.RemainingTime(); 2543if (timeout > TimeSpan.Zero) 2581TChannel channel, TimeSpan timeout, MaskingMode maskingMode, 2735TimeoutHelper.WaitOne(this.completeEvent, TimeSpan.MaxValue); 2754TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, object state) 2938public InputAsyncResult(TBinder binder, bool canGetChannel, TimeSpan timeout, 2949TimeSpan timeout, AsyncCallback callback, object state); 3219protected override void OnClose(TimeSpan timeout) 3223protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 3233protected override void OnReply(Message message, TimeSpan timeout) 3246public ReplyAsyncResult(MessageRequestContext context, Message message, TimeSpan timeout, AsyncCallback callback, object state) 3311TimeSpan timeout; 3329Message message, TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, 3379protected abstract string GetTimeoutString(TimeSpan timeout); 3467public void Start(Message message, TimeSpan timeout, MaskingMode maskingMode) 3543protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, 3571protected override void OnClose(TimeSpan timeout) 3624protected override void OnReply(Message message, TimeSpan timeout) 3659TChannel channel, Message message, TimeSpan timeout, MaskingMode maskingMode, 3677protected override string GetTimeoutString(TimeSpan timeout) 3687public TryReceiveAsyncResult(ReliableChannelBinder<TChannel> binder, TimeSpan timeout, 3696TChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 3730TimeSpan timeout, AsyncCallback callback, object state) 3738TimeSpan timeout, AsyncCallback callback, object state) 3746TimeSpan timeout) 3753TimeSpan iterationTimeout = timeoutHelper.RemainingTime(); 3754bool lastIteration = (iterationTimeout == TimeSpan.Zero); 3802lastIteration = (iterationTimeout == TimeSpan.Zero); 3810TimeSpan timeout) 3816TimeSpan iterationTimeout = timeoutHelper.RemainingTime(); 3817bool lastIteration = (iterationTimeout == TimeSpan.Zero); 3868lastIteration = (iterationTimeout == TimeSpan.Zero); 3915TimeSpan timeout, AsyncCallback callback, object state) 3931protected TimeSpan RemainingTime 3952protected abstract IAsyncResult BeginTryInput(TimeSpan timeout, AsyncCallback callback, 4129TimeSpan iterationTimeout = this.RemainingTime; 4130this.lastReceive = (iterationTimeout == TimeSpan.Zero); 4170this.lastReceive = (iterationTimeout == TimeSpan.Zero); 4186TimeSpan timeout, AsyncCallback callback, object state) 4201protected override IAsyncResult BeginTryInput(TimeSpan timeout, AsyncCallback callback, object state) 4260TimeSpan timeout, AsyncCallback callback, object state) 4267protected override IAsyncResult BeginTryInput(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ReliableChannelFactory.cs (9)
13TimeSpan acknowledgementInterval; 16TimeSpan inactivityTimeout; 43public TimeSpan AcknowledgementInterval 58public TimeSpan InactivityTimeout 114public TimeSpan SendTimeout 127protected override void OnOpen(TimeSpan timeout) 132protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 142protected override void OnClose(TimeSpan timeout) 151protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ReliableChannelListener.cs (25)
25TimeSpan acknowledgementInterval; 30TimeSpan inactivityTimeout; 53public TimeSpan AcknowledgementInterval 69public TimeSpan InactivityTimeout 116public TimeSpan SendTimeout 156protected virtual void CloseInnerListener(TimeSpan timeout) 163protected virtual IAsyncResult BeginCloseInnerListener(TimeSpan timeout, AsyncCallback callback, object state) 181protected override void OnClose(TimeSpan timeout) 193protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, 205protected override void OnOpen(TimeSpan timeout) 212protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, 252TimeSpan timeout) 266UniqueId outputId, TimeSpan timeout, AsyncCallback callback, object state) 326OperationEndCallback baseEndClose, TimeSpan timeout, AsyncCallback callback, 359bool CloseBaseChannelListener(TimeSpan timeout) 467UniqueId outputId, TimeSpan timeout, AsyncCallback callback, object state) 868IAsyncResult result = this.typedListener.BeginAcceptChannel(TimeSpan.MaxValue, onAcceptCompleted, this); 1173protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1184protected override void OnOpen(TimeSpan timeout) 1220protected override void CloseInnerListener(TimeSpan timeout) 1227protected override IAsyncResult BeginCloseInnerListener(TimeSpan timeout, AsyncCallback callback, object state) 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 (34)
114IAsyncResult BeginCloseBinder(TimeSpan timeout, AsyncCallback callback, 120void CloseSequence(TimeSpan timeout) 127IAsyncResult BeginCloseSequence(TimeSpan timeout, AsyncCallback callback, object state) 247void InternalCloseOutputSession(TimeSpan timeout) 260IAsyncResult BeginInternalCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 748protected IAsyncResult OnBeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 795protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 865protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 870IAsyncResult OnBeginSendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, bool maskUnhandledException, AsyncCallback callback, object state) 903IAsyncResult OnBeginSendAckRequestedHandler(TimeSpan timeout, AsyncCallback callback, object state) 951protected override void OnClose(TimeSpan timeout) 976protected void OnCloseOutputSession(TimeSpan timeout) 1109protected override void OnSend(Message message, TimeSpan timeout) 1115void OnSendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, bool maskUnhandledException) 1161void OnSendAckRequestedHandler(TimeSpan timeout) 1301IAsyncResult result = this.binder.BeginTryReceive(TimeSpan.MaxValue, onReceiveCompleted, this); 1322void TerminateSequence(TimeSpan timeout) 1349IAsyncResult BeginTerminateSequence(TimeSpan timeout, AsyncCallback callback, object state) 1520protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1527protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1533protected override void OnClose(TimeSpan timeout) 1563protected override void OnOpen(TimeSpan timeout) 1688TimeSpan timeout = this.closing ? this.closeTimeoutHelper.RemainingTime() : this.DefaultCloseTimeout; 1710TimeSpan timeout; 1737public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 1752public void CloseOutputSession(TimeSpan timeout) 1774session.Open(TimeSpan.Zero); 1797IAsyncResult BeginUnregisterChannel(TimeSpan timeout, AsyncCallback callback, object state) 1817protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, 1834protected override void OnClose(TimeSpan timeout) 1847protected override void OnOpen(TimeSpan timeout) 1851protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1944public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 1959public void CloseOutputSession(TimeSpan timeout)
System\ServiceModel\Channels\ReliableInputConnection.cs (2)
239public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 249public void Close(TimeSpan timeout)
System\ServiceModel\Channels\ReliableInputSessionChannel.cs (11)
46this.session.Open(TimeSpan.Zero); 183IAsyncResult BeginCloseBinder(TimeSpan timeout, AsyncCallback callback, object state) 188protected virtual IAsyncResult BeginCloseGuards(TimeSpan timeout, AsyncCallback callback, object state) 193IAsyncResult BeginUnregisterChannel(TimeSpan timeout, AsyncCallback callback, object state) 206protected virtual void CloseGuards(TimeSpan timeout) 279protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 322protected override void OnClose(TimeSpan timeout) 364IAsyncResult result = this.Binder.BeginTryReceive(TimeSpan.MaxValue, onReceiveCompleted, this); 415TimeSpan acknowledgementInterval; 455protected override IAsyncResult BeginCloseGuards(TimeSpan timeout, AsyncCallback callback, object state) 460protected override void CloseGuards(TimeSpan timeout)
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (79)
17delegate IAsyncResult OperationWithTimeoutBeginCallback(TimeSpan timeout, AsyncCallback asyncCallback, object asyncState); 18delegate void OperationWithTimeoutCallback(TimeSpan timeout); 23TimeSpan timeout, OperationWithTimeoutBeginCallback[] beginOperations, OperationEndCallback[] endOperations, 34public static TimeSpan RemainingTime(IAsyncResult result) 49TimeSpan timeout, OperationWithTimeoutBeginCallback[] beginOperations, OperationEndCallback[] endOperations, 69public TimeSpan RemainingTime() 176public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 207public void Close(TimeSpan timeout) 292TimeSpan defaultInterval; 299public InterruptibleTimer(TimeSpan defaultInterval, WaitCallback callback, object state) 379public void Set(TimeSpan interval) 389void InternalSet(TimeSpan interval, bool ifNotSet) 478public IAsyncResult BeginWait(TimeSpan timeout, AsyncCallback callback, object state) 483public IAsyncResult BeginWait(TimeSpan timeout, bool throwTimeoutException, AsyncCallback callback, object state) 515public IAsyncResult BeginTryWait(TimeSpan timeout, AsyncCallback callback, object state) 583public bool Wait(TimeSpan timeout) 588public bool Wait(TimeSpan timeout, bool throwTimeoutException) 680public abstract IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state); 681public abstract void Close(TimeSpan timeout); 689TimeSpan defaultCloseTimeout; 690TimeSpan defaultSendTimeout; 696protected TypedFaultHelper(TimeSpan defaultSendTimeout, TimeSpan defaultCloseTimeout) 773public override IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 781protected abstract IAsyncResult BeginSendFault(IReliableChannelBinder binder, TState state, TimeSpan timeout, 784public override void Close(TimeSpan timeout) 1044public ReplyFaultHelper(TimeSpan defaultSendTimeout, TimeSpan defaultCloseTimeout) 1060TimeSpan timeout, AsyncCallback callback, object state) 1080public SendFaultHelper(TimeSpan defaultSendTimeout, TimeSpan defaultCloseTimeout) 1095TimeSpan timeout, AsyncCallback callback, object state) 1120OperationEndCallback[] endCallbacks, IReliableChannelBinder binder, TimeSpan timeout, 1225ChannelReliableSession session, TimeSpan timeout, AsyncCallback callback, object state) 1405static public TimeSpan UnknownInitiationTime = TimeSpan.FromSeconds(2); 1406static public TimeSpan RequestorIterationTime = TimeSpan.FromSeconds(10); 1407static public TimeSpan RequestorReceiveTime = TimeSpan.FromSeconds(10); 1425TimeSpan originalTimeout; 1535TimeSpan GetNextRequestTimeout(TimeSpan remainingTimeout, out TimeoutHelper iterationTimeout, out bool lastIteration) 1579protected abstract Message OnRequest(Message request, TimeSpan timeout, bool last); 1580protected abstract IAsyncResult OnBeginRequest(Message request, TimeSpan timeout, 1584public Message Request(TimeSpan timeout) 1596TimeSpan requestTimeout = this.GetNextRequestTimeout(timeoutHelper.RemainingTime(), 1643public IAsyncResult BeginRequest(TimeSpan timeout, AsyncCallback callback, object state) 1689public RequestAsyncResult(ReliableRequestor requestor, TimeSpan timeout, AsyncCallback callback, object state) 1715TimeSpan requestTimeout = (requestResult == null) 1718: TimeSpan.Zero; 1907protected override Message OnRequest(Message request, TimeSpan timeout, bool last) 1912protected override IAsyncResult OnBeginRequest(Message request, TimeSpan timeout, AsyncCallback callback, object state) 1948TimeSpan GetReceiveTimeout(TimeSpan timeoutRemaining) 1960protected override Message OnRequest(Message request, TimeSpan timeout, bool last) 1965TimeSpan receiveTimeout = this.GetReceiveTimeout(timeoutHelper.RemainingTime()); 1972protected override IAsyncResult OnBeginRequest(Message request, TimeSpan timeout, AsyncCallback callback, object state) 1997internal SendReceiveAsyncResult(SendReceiveReliableRequestor requestor, Message request, TimeSpan timeout, 2036TimeSpan receiveTimeout = this.requestor.GetReceiveTimeout(this.timeoutHelper.RemainingTime()); 2165TimeSpan GetWaitTimeout(TimeSpan timeoutRemaining) 2177protected override Message OnRequest(Message request, TimeSpan timeout, bool last) 2181TimeSpan waitTimeout = this.GetWaitTimeout(timeoutHelper.RemainingTime()); 2186protected override IAsyncResult OnBeginRequest(Message request, TimeSpan timeout, AsyncCallback callback, object state) 2206IAsyncResult BeginSend(TimeSpan timeout, AsyncCallback callback, object state) 2238IAsyncResult BeginWait(TimeSpan timeout, AsyncCallback callback, object state) 2240TimeSpan waitTimeout = this.GetWaitTimeout(timeout); 2298public void Begin(TimeSpan timeout) 2329bool BeginInternal(TimeSpan timeout) 2357protected abstract IAsyncResult BeginOperation(TimeSpan timeout, AsyncCallback callback, object state); 2425protected override IAsyncResult BeginOperation(TimeSpan timeout, AsyncCallback callback, 2469protected override IAsyncResult BeginOperation(TimeSpan timeout, AsyncCallback callback, 2486TimeSpan timeout; 2493public WaitAsyncResult(TimeSpan timeout, bool throwTimeoutException, AsyncCallback callback, object state) 2507if (this.timeout != TimeSpan.MaxValue) 2520protected virtual string GetTimeoutString(TimeSpan timeout) 3057public static TimeSpan CalculateKeepAliveInterval(TimeSpan inactivityTimeout, int maxRetryCount)
System\ServiceModel\Channels\ReliableOutputConnection.cs (13)
10delegate IAsyncResult BeginSendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, bool maskUnhandledException, AsyncCallback asyncCallback, object state); 12delegate void SendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, bool maskUnhandledException); 34TimeSpan sendTimeout; 43TimeSpan initialRtt, 45TimeSpan sendTimeout) 152void CompleteTransfer(TimeSpan timeout) 179public bool AddMessage(Message message, TimeSpan timeout, object state) 184public IAsyncResult BeginAddMessage(Message message, TimeSpan timeout, object state, AsyncCallback callback, object asyncState) 194IAsyncResult BeginCompleteTransfer(TimeSpan timeout, AsyncCallback callback, object state) 244public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 277public void Close(TimeSpan timeout) 360bool InternalAddMessage(Message message, TimeSpan timeout, object state, bool isLast) 628public AddAsyncResult(Message message, bool isLast, TimeSpan timeout, object state,
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (29)
111void CloseSequence(TimeSpan timeout) 118IAsyncResult BeginCloseSequence(TimeSpan timeout, AsyncCallback callback, object state) 225protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 249protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 255protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 290protected override void OnClose(TimeSpan timeout) 311protected abstract void OnConnectionSend(Message message, TimeSpan timeout, bool saveHandledException, 313protected abstract IAsyncResult OnConnectionBeginSend(MessageAttemptInfo attemptInfo, TimeSpan timeout, 317void OnConnectionSendAckRequestedHandler(TimeSpan timeout) 327IAsyncResult OnConnectionBeginSendAckRequestedHandler(TimeSpan timeout, AsyncCallback callback, object state) 341void OnConnectionSendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, bool maskUnhandledException) 363IAsyncResult OnConnectionBeginSendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, bool maskUnhandledException, AsyncCallback callback, object state) 390protected abstract void OnConnectionSendMessage(Message message, TimeSpan timeout, MaskingMode maskingMode); 391protected abstract IAsyncResult OnConnectionBeginSendMessage(Message message, TimeSpan timeout, 428protected override void OnOpen(TimeSpan timeout) 448protected override void OnSend(Message message, TimeSpan timeout) 668void TerminateSequence(TimeSpan timeout) 695IAsyncResult BeginTerminateSequence(TimeSpan timeout, AsyncCallback callback, object state) 787protected override void OnConnectionSend(Message message, TimeSpan timeout, 825TimeSpan timeout, bool maskUnhandledException, AsyncCallback callback, object state) 860protected override void OnConnectionSendMessage(Message message, TimeSpan timeout, MaskingMode maskingMode) 870protected override IAsyncResult OnConnectionBeginSendMessage(Message message, TimeSpan timeout, 924protected override void OnConnectionSend(Message message, TimeSpan timeout, bool saveHandledException, bool maskUnhandledException) 957TimeSpan timeout, bool maskUnhandledException, AsyncCallback callback, object state) 989protected override void OnConnectionSendMessage(Message message, TimeSpan timeout, MaskingMode maskingMode) 994protected override IAsyncResult OnConnectionBeginSendMessage(Message message, TimeSpan timeout, 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 (20)
67this.session.Open(TimeSpan.Zero); 198IAsyncResult BeginCloseBinder(TimeSpan timeout, AsyncCallback callback, object state) 203IAsyncResult BeginCloseOutput(TimeSpan timeout, AsyncCallback callback, object state) 226IAsyncResult BeginUnregisterChannel(TimeSpan timeout, AsyncCallback callback, object state) 285void CloseOutput(TimeSpan timeout) 432protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 487protected override void OnClose(TimeSpan timeout) 1235IAsyncResult result = this.binder.BeginTryReceive(TimeSpan.MaxValue, onReceiveCompleted, this); 1256void TerminateSequence(TimeSpan timeout) 1268IAsyncResult BeginTerminateSequence(TimeSpan timeout, AsyncCallback callback, object state) 1402internal IAsyncResult BeginReplyInternal(Message reply, TimeSpan timeout, AsyncCallback callback, object state) 1508protected override IAsyncResult OnBeginReply(Message reply, TimeSpan timeout, AsyncCallback callback, object state) 1513protected override void OnClose(TimeSpan timeout) 1525protected override void OnReply(Message reply, TimeSpan timeout) 1530internal void ReplyInternal(Message reply, TimeSpan timeout) 1651public ReplyAsyncResult(ReliableRequestContext thisContext, TimeSpan timeout, AsyncCallback callback, object state) 1794internal void Reply(RequestContext context, WsrmMessageInfo info, TimeSpan timeout, MaskingMode maskingMode) 1803IAsyncResult BeginReply(TimeSpan timeout, AsyncCallback callback, object state) 1894internal void WaitAndReply(TimeSpan timeout) 1913internal IAsyncResult BeginWaitAndReply(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (20)
77IAsyncResult BeginCloseBinder(TimeSpan timeout, AsyncCallback callback, object state) 82IAsyncResult BeginTerminateSequence(TimeSpan timeout, AsyncCallback callback, object state) 88void CloseSequence(TimeSpan timeout) 95IAsyncResult BeginCloseSequence(TimeSpan timeout, AsyncCallback callback, object state) 251protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 276protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 312protected override void OnClose(TimeSpan timeout) 334IAsyncResult OnConnectionBeginSend(MessageAttemptInfo attemptInfo, TimeSpan timeout, 396void OnConnectionSend(MessageAttemptInfo attemptInfo, TimeSpan timeout, bool maskUnhandledException) 449void OnConnectionSendAckRequested(TimeSpan timeout) 454IAsyncResult OnConnectionBeginSendAckRequested(TimeSpan timeout, AsyncCallback callback, object state) 492protected override void OnOpen(TimeSpan timeout) 771IAsyncResult BeginSendAckRequestedMessage(TimeSpan timeout, MaskingMode maskingMode, AsyncCallback callback, 794void TerminateSequence(TimeSpan timeout) 832void WaitForShutdown(TimeSpan timeout) 850IAsyncResult BeginWaitForShutdown(TimeSpan timeout, AsyncCallback callback, object state) 890TimeSpan originalTimeout; 942public void SendRequest(Message message, TimeSpan timeout) 970public Message WaitForReply(TimeSpan timeout) 1107public void BeginSendRequest(Message message, TimeSpan timeout)
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (9)
16TimeSpan acknowledgementInterval = ReliableSessionDefaults.AcknowledgementInterval; 18TimeSpan inactivityTimeout = ReliableSessionDefaults.InactivityTimeout; 52[DefaultValue(typeof(TimeSpan), ReliableSessionDefaults.AcknowledgementIntervalString)] 53public TimeSpan AcknowledgementInterval 61if (value <= TimeSpan.Zero) 90[DefaultValue(typeof(TimeSpan), ReliableSessionDefaults.InactivityTimeoutString)] 91public TimeSpan InactivityTimeout 99if (value <= TimeSpan.Zero) 739static void WriteMillisecondsAttribute(XmlElement childElement, TimeSpan timeSpan)
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (6)
242static TimeSpan ReadMillisecondsAttribute(XmlNode wsrmNode, bool convertToTimeSpan) 269TimeSpan interval; 273interval = TimeSpan.FromMilliseconds(Convert.ToDouble(milliseconds)); 284return default(TimeSpan); 288static void SetInactivityTimeout(ReliableSessionBindingElement settings, TimeSpan inactivityTimeout, string localName) 301static void SetAcknowledgementInterval(ReliableSessionBindingElement settings, TimeSpan acknowledgementInterval, string localName)
System\ServiceModel\Channels\ReplyAdapterChannelListener.cs (13)
32protected override TOuterChannel OnAcceptChannel(TimeSpan timeout) 39protected override IAsyncResult OnBeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 50protected override bool OnWaitForChannel(TimeSpan timeout) 55protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 128public RequestContext ReceiveRequest(TimeSpan timeout) 138public IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 148public bool TryReceiveRequest(TimeSpan timeout, out RequestContext context) 160public IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 177public bool WaitForRequest(TimeSpan timeout) 182public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state) 243public override void Close(TimeSpan timeout) 253public override void Reply(Message message, TimeSpan timeout) 264public override IAsyncResult BeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ReplyChannel.cs (19)
42protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 52protected override void OnOpen(TimeSpan timeout) 57internal static RequestContext HelpReceiveRequest(IReplyChannel channel, TimeSpan timeout) 71internal static IAsyncResult HelpBeginReceiveRequest(IReplyChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 84TimeSpan timeout; 88public HelpReceiveRequestAsyncResult(IReplyChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 147static Exception CreateReceiveRequestTimedOutException(IReplyChannel channel, TimeSpan timeout) 166public RequestContext ReceiveRequest(TimeSpan timeout) 168if (timeout < TimeSpan.Zero) 181public IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 183if (timeout < TimeSpan.Zero) 198public bool TryReceiveRequest(TimeSpan timeout, out RequestContext context) 200if (timeout < TimeSpan.Zero) 208public IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 210if (timeout < TimeSpan.Zero) 223public bool WaitForRequest(TimeSpan timeout) 225if (timeout < TimeSpan.Zero) 233public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state) 235if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\RequestChannel.cs (13)
76protected IAsyncResult BeginWaitForPendingRequests(TimeSpan timeout, AsyncCallback callback, object state) 107protected void WaitForPendingRequests(TimeSpan timeout) 217public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 222if (timeout < TimeSpan.Zero) 289public Message Request(Message message, TimeSpan timeout) 296if (timeout < TimeSpan.Zero) 310TimeSpan savedTimeout = timeoutHelper.RemainingTime(); 361TimeSpan timeout; 364public WaitForPendingRequestsAsyncResult(TimeSpan timeout, RequestChannel requestChannel, IRequestBase[] pendingRequests, AsyncCallback callback, object state) 371if (this.timeout == TimeSpan.Zero || this.pendingRequests == null) 447void SendRequest(Message message, TimeSpan timeout); 448Message WaitForReply(TimeSpan timeout); 453void BeginSendRequest(Message message, TimeSpan timeout);
System\ServiceModel\Channels\RequestContext.cs (3)
15public abstract void Close(TimeSpan timeout); 18public abstract void Reply(Message message, TimeSpan timeout); 20public abstract IAsyncResult BeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Channels\RequestContextBase.cs (13)
15TimeSpan defaultSendTimeout; 16TimeSpan defaultCloseTimeout; 25protected RequestContextBase(Message requestMessage, TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 89public TimeSpan DefaultCloseTimeout 94public TimeSpan DefaultSendTimeout 132public override void Close(TimeSpan timeout) 134if (timeout < TimeSpan.Zero) 193protected abstract void OnClose(TimeSpan timeout); 194protected abstract void OnReply(Message message, TimeSpan timeout); 195protected abstract IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state); 237public override IAsyncResult BeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 260public override void Reply(Message message, TimeSpan timeout)
System\ServiceModel\Channels\SafeNativeMethods.cs (1)
53return 15 * TimeSpan.TicksPerMillisecond;
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (3)
38if (value is TimeSpan) 40typeof(TimeSpan), 41new CodePrimitiveExpression(((TimeSpan)(object)value).Ticks));
System\ServiceModel\Channels\SecurityChannelFactory.cs (27)
124void CloseProtocolFactory(bool aborted, TimeSpan timeout) 150CloseProtocolFactory(true, TimeSpan.Zero); 157protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 184protected override void OnClose(TimeSpan timeout) 228protected override void OnOpen(TimeSpan timeout) 259protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 269void OnOpenCore(TimeSpan timeout) 356protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 368protected override void OnOpen(TimeSpan timeout) 428public OpenAsyncResult(ClientSecurityChannel<UChannel> clientChannel, TimeSpan timeout, 552public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 569public void Send(Message message, TimeSpan timeout) 607public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 624internal Message ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) 677public Message Request(Message message, TimeSpan timeout) 734public Message Receive(TimeSpan timeout) 744public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 754public virtual IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 778internal Message ProcessMessage(Message message, TimeSpan timeout) 810public bool TryReceive(TimeSpan timeout, out Message message) 827public bool WaitForMessage(TimeSpan timeout) 832public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 869public RequestChannelSendAsyncResult(Message message, SecurityProtocol protocol, IRequestChannel channel, SecurityRequestChannel securityChannel, TimeSpan timeout, 877protected override IAsyncResult BeginSendCore(IRequestChannel channel, Message message, TimeSpan timeout, AsyncCallback callback, object state) 894protected override void OnSendCompleteCore(TimeSpan timeout) 904public ClientDuplexReceiveMessageAndVerifySecurityAsyncResult(SecurityDuplexChannel channel, IDuplexChannel innerChannel, TimeSpan timeout, AsyncCallback callback, object state) 910protected override bool OnInnerReceiveDone(ref Message message, TimeSpan timeout)
System\ServiceModel\Channels\SecurityChannelListener.cs (68)
229protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 247IAsyncResult OnBeginCloseSharedState(TimeSpan timeout, AsyncCallback callback, object state) 257internal IAsyncResult OnBeginOpenListenerState(TimeSpan timeout, AsyncCallback callback, object state) 267protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 286protected override void OnClose(TimeSpan timeout) 342protected override void OnOpen(TimeSpan timeout) 499typeof(TChannel) == typeof(IReplyChannel) || typeof(TChannel) == typeof(IReplySessionChannel), TimeSpan.Zero); 539public CloseSharedStateAsyncResult(SecurityChannelListener<TChannel> securityListener, TimeSpan timeout, AsyncCallback callback, object state) 591public OpenListenerStateAsyncResult(SecurityChannelListener<TChannel> securityListener, TimeSpan timeout, AsyncCallback callback, object state) 677protected override void OnOpen(TimeSpan timeout) 694protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 742protected override void OnClose(TimeSpan timeout) 756protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 766IAsyncResult OnBeginCloseSharedState(TimeSpan timeout, AsyncCallback callback, object state) 812internal SecurityProtocolCorrelationState VerifyIncomingMessage(ref Message message, TimeSpan timeout, params SecurityProtocolCorrelationState[] correlationState) 828internal void VerifyIncomingMessage(ref Message message, TimeSpan timeout) 846public CloseSharedStateAsyncResult(ServerSecurityChannel<UChannel> securityChannel, TimeSpan timeout, AsyncCallback callback, object state) 911public Message Receive(TimeSpan timeout) 921public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 931public virtual IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 952public virtual bool TryReceive(TimeSpan timeout, out Message message) 982if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 992public bool WaitForMessage(TimeSpan timeout) 997public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 1051public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1068public void Send(Message message, TimeSpan timeout) 1098void SendFaultIfRequired(Exception e, Message unverifiedMessage, TimeSpan timeout) 1129public override bool TryReceive(TimeSpan timeout, out Message message) 1166if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1176public override IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 1223public RequestContext ReceiveRequest(TimeSpan timeout) 1233public IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 1243public IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 1264internal RequestContext ProcessReceivedRequest(RequestContext requestContext, TimeSpan timeout) 1279void SendFaultIfRequired(Exception e, RequestContext innerContext, TimeSpan timeout) 1318public bool TryReceiveRequest(TimeSpan timeout, out RequestContext requestContext) 1355if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1365public bool WaitForRequest(TimeSpan timeout) 1370public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state) 1402TimeSpan defaultSendTimeout, TimeSpan defaultCloseTimeout) 1415protected override void OnClose(TimeSpan timeout) 1420protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1445protected override void OnReply(Message message, TimeSpan timeout) 1457public RequestContextSendAsyncResult(Message message, SecurityProtocol protocol, RequestContext context, TimeSpan timeout, 1464protected override IAsyncResult BeginSendCore(RequestContext context, Message message, TimeSpan timeout, AsyncCallback callback, object state) 1480protected override void OnSendCompleteCore(TimeSpan timeout) 1498public ReceiveItemAndVerifySecurityAsyncResult(ServerSecurityChannel<UChannel> channel, TimeSpan timeout, AsyncCallback callback, object state) 1542protected abstract IAsyncResult BeginTryReceiveItem(TimeSpan timeout, AsyncCallback callback, object state); 1544protected abstract TItem ProcessInnerItem(TItem innerItem, TimeSpan timeout); 1546protected abstract IAsyncResult BeginSendFault(TItem innerItem, Message faultMessage, TimeSpan timeout, AsyncCallback callback, object state); 1548protected abstract void CloseInnerItem(TItem innerItem, TimeSpan timeout); 1665if (this.timeoutHelper.RemainingTime() == TimeSpan.Zero) 1789public ReceiveRequestAndVerifySecurityAsyncResult(SecurityReplyChannel channel, IReplyChannel innerChannel, TimeSpan timeout, AsyncCallback callback, object state) 1823protected override void CloseInnerItem(RequestContext innerItem, TimeSpan timeout) 1828protected override IAsyncResult BeginTryReceiveItem(TimeSpan timeout, AsyncCallback callback, object state) 1838protected override RequestContext ProcessInnerItem(RequestContext innerItem, TimeSpan timeout) 1852protected override IAsyncResult BeginSendFault(RequestContext innerItem, Message faultMessage, TimeSpan timeout, AsyncCallback callback, object state) 1875public DuplexSessionReceiveMessageAndVerifySecurityAsyncResult(SecurityDuplexSessionChannel channel, IDuplexChannel innerChannel, TimeSpan timeout, AsyncCallback callback, object state) 1906protected override void CloseInnerItem(Message innerItem, TimeSpan timeout) 1911protected override IAsyncResult BeginTryReceiveItem(TimeSpan timeout, AsyncCallback callback, object state) 1921protected override Message ProcessInnerItem(Message innerItem, TimeSpan timeout) 1940protected override IAsyncResult BeginSendFault(Message innerItem, Message faultMessage, TimeSpan timeout, AsyncCallback callback, object state) 1964public InputChannelReceiveMessageAndVerifySecurityAsyncResult(SecurityInputChannel channel, IInputChannel innerChannel, TimeSpan timeout, AsyncCallback callback, object state) 2000protected override void CloseInnerItem(Message innerItem, TimeSpan timeout) 2005protected override IAsyncResult BeginTryReceiveItem(TimeSpan timeout, AsyncCallback callback, object state) 2015protected override Message ProcessInnerItem(Message innerItem, TimeSpan timeout) 2031protected override IAsyncResult BeginSendFault(Message innerItem, Message faultMessage, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ServerReliableChannelBinder.cs (59)
28TolerateFaultsMode faultMode, TimeSpan defaultCloseTimeout, 29TimeSpan defaultSendTimeout) 38TolerateFaultsMode faultMode, TimeSpan defaultCloseTimeout, 39TimeSpan defaultSendTimeout) 143protected override IAsyncResult BeginTryGetChannel(TimeSpan timeout, 149public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, 186TolerateFaultsMode faultMode, TimeSpan defaultCloseTimeout, 187TimeSpan defaultSendTimeout) 221TolerateFaultsMode faultMode, TimeSpan defaultCloseTimeout, 222TimeSpan defaultSendTimeout) 392protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, 405protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, 418protected abstract IAsyncResult OnBeginWaitForRequest(TChannel channel, TimeSpan timeout, 421protected override void OnClose(TimeSpan timeout) 444protected abstract bool OnWaitForRequest(TChannel channel, TimeSpan timeout); 473protected override void OnOpen(TimeSpan timeout) 494IAsyncResult result = this.listener.BeginAcceptChannel(TimeSpan.MaxValue, 536protected override bool TryGetChannel(TimeSpan timeout) 604public bool WaitForRequest(TimeSpan timeout) 668TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 677TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 699TimeSpan timeout, AsyncCallback callback, object state) 705TimeSpan timeout, AsyncCallback callback, object state) 711TimeSpan timeout, AsyncCallback callback, object state) 743TimeSpan timeout) 748protected override bool OnTryReceive(TDuplexChannel channel, TimeSpan timeout, 761protected override bool OnWaitForRequest(TDuplexChannel channel, TimeSpan timeout) 773MaskingMode maskingMode, TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 781MaskingMode maskingMode, TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 816TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 825TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 840TimeSpan timeout, AsyncCallback callback, object state) 846protected override void CloseChannel(IDuplexSessionChannel channel, TimeSpan timeout) 881TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 890TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 912TimeSpan timeout, AsyncCallback callback, object state) 918TimeSpan timeout, AsyncCallback callback, object state) 944protected override bool OnTryReceive(TReplyChannel channel, TimeSpan timeout, 956protected override bool OnWaitForRequest(TReplyChannel channel, TimeSpan timeout) 967MaskingMode maskingMode, TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 975MaskingMode maskingMode, TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 1006TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 1015TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 1030TimeSpan timeout, AsyncCallback callback, object state) 1036protected override void CloseChannel(IReplySessionChannel channel, TimeSpan timeout) 1067TimeSpan timeout, AsyncCallback callback, object state) 1075ServerReliableChannelBinder<TChannel> binder, TChannel channel, TimeSpan timeout,
System\ServiceModel\Channels\ServerWebSocketTransportDuplexSessionChannel.cs (2)
93protected override void OnOpen(TimeSpan timeout) 110protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\ServiceChannel.cs (44)
51TimeSpan operationTimeout; 183protected override TimeSpan DefaultCloseTimeout 188protected override TimeSpan DefaultOpenTimeout 219internal TimeSpan CloseTimeout 310internal TimeSpan OpenTimeout 325public TimeSpan OperationTimeout 330if (value < TimeSpan.Zero) 495manager.CallOnce(TimeSpan.MaxValue, null); 505return manager.BeginCallOnce(TimeSpan.MaxValue, null, callback, state); 527void EnsureOpened(TimeSpan timeout) 539IAsyncResult BeginEnsureOpened(TimeSpan timeout, AsyncCallback callback, object state) 741internal IAsyncResult BeginCall(string action, bool oneway, ProxyOperationRuntime operation, object[] ins, TimeSpan timeout, AsyncCallback callback, object asyncState) 783internal object Call(string action, bool oneway, ProxyOperationRuntime operation, object[] ins, object[] outs, TimeSpan timeout) 939TimeoutException GetOpenTimeoutException(TimeSpan timeout) 1278public void Send(Message message, TimeSpan timeout) 1289public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1305public Message Request(Message message, TimeSpan timeout) 1316public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1363protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1402protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1429protected override void OnClose(TimeSpan timeout) 1505protected override void OnOpen(TimeSpan timeout) 1626IAsyncResult IDuplexContextChannel.BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 1636void IDuplexContextChannel.CloseOutputSession(TimeSpan timeout) 1898string action, object[] inputParameters, bool isOneWay, TimeSpan timeout, 1971TimeSpan timeout = this.Rpc.TimeoutHelper.RemainingTime(); 2037TimeSpan timeout = this.Rpc.TimeoutHelper.RemainingTime(); 2149void Call(ServiceChannel channel, TimeSpan timeout); 2150IAsyncResult BeginCall(ServiceChannel channel, TimeSpan timeout, AsyncCallback callback, object state); 2171void ValidateTimeoutIsMaxValue(TimeSpan timeout) 2173if (timeout != TimeSpan.MaxValue) 2179void ICallOnce.Call(ServiceChannel channel, TimeSpan timeout) 2185IAsyncResult ICallOnce.BeginCall(ServiceChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 2213void ICallOnce.Call(ServiceChannel channel, TimeSpan timeout) 2218IAsyncResult ICallOnce.BeginCall(ServiceChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 2250internal void CallOnce(TimeSpan timeout, CallOnceManager cascade) 2299internal IAsyncResult BeginCallOnce(TimeSpan timeout, CallOnceManager cascade, 2465internal bool Wait(TimeSpan timeout) 2505TimeSpan timeout; 2508internal AsyncWaiter(CallOnceManager manager, TimeSpan timeout, 2515if (timeout != TimeSpan.MaxValue) 2582SessionIdleManager(IChannelBinder binder, TimeSpan idle) 2591internal static SessionIdleManager CreateIfNeeded(IChannelBinder binder, TimeSpan idle) 2593if (binder.HasSession && (idle != TimeSpan.MaxValue))
System\ServiceModel\Channels\ServiceChannelFactory.cs (18)
59protected override TimeSpan DefaultCloseTimeout 64protected override TimeSpan DefaultReceiveTimeout 69protected override TimeSpan DefaultOpenTimeout 74protected override TimeSpan DefaultSendTimeout 257protected override void OnClose(TimeSpan timeout) 275protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 448protected override void OnOpen(TimeSpan timeout) 453protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 463protected override void OnClose(TimeSpan timeout) 470protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 657TimeSpan closeTimeout; 658TimeSpan openTimeout; 659TimeSpan receiveTimeout; 660TimeSpan sendTimeout; 670public TimeSpan CloseTimeout 675public TimeSpan OpenTimeout 680public TimeSpan ReceiveTimeout 685public TimeSpan SendTimeout
System\ServiceModel\Channels\SessionConnectionReader.cs (15)
86TimeSpan GetRemainingTimeout() 325public void StartReading(Action<Uri> viaDelegate, TimeSpan receiveTimeout) 371protected override void ReturnConnectionIfNecessary(bool abort, TimeSpan timeout) 413protected override void OnOpen(TimeSpan timeout) 592protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 671public OpenAsyncResult(ServerFramingDuplexSessionChannel channel, TimeSpan timeout, 1009protected override Message DecodeMessage(byte[] buffer, ref int offset, ref int size, ref bool isAtEof, TimeSpan timeout) 1138Message DecodeMessage(TimeSpan timeout) 1158protected abstract Message DecodeMessage(byte[] buffer, ref int offset, ref int size, ref bool isAtEof, TimeSpan timeout); 1202public AsyncReceiveResult BeginReceive(TimeSpan timeout, WaitCallback callback, object state) 1278public Message Receive(TimeSpan timeout) 1360public AsyncReceiveResult BeginWaitForMessage(TimeSpan timeout, WaitCallback callback, object state) 1392public bool WaitForMessage(TimeSpan timeout) 1494protected void SendFault(string faultString, TimeSpan timeout) 1560protected override Message DecodeMessage(byte[] buffer, ref int offset, ref int size, ref bool isAtEOF, TimeSpan timeout)
System\ServiceModel\Channels\SharedConnectionListener.cs (17)
76return connectionQueue.BeginDequeue(TimeSpan.MaxValue, callback, state); 80public void Stop(TimeSpan timeout) 87public void Stop(bool aborting, TimeSpan timeout) 175Stop(true, TimeSpan.Zero); 269new BackoffTimeoutHelper(TimeSpan.MaxValue, TimeSpan.FromMinutes(5), TimeSpan.FromSeconds(30)); 419Cleanup(true, TimeSpan.Zero); 428public void Close(TimeSpan timeout) 433void Close(bool isAborting, TimeSpan timeout) 466void Cleanup(bool isAborting, TimeSpan timeout) 534Close(true, TimeSpan.Zero); 537void Unregister(TimeSpan timeout) 870if (this.proxy.validateUriCallThrottle.EnterAsync(TimeSpan.MaxValue, onEnterThrottle, this)) 1252new BackoffTimeoutHelper(TimeSpan.MaxValue, TimeSpan.FromMilliseconds(pollMax), TimeSpan.FromMilliseconds(pollMin));
System\ServiceModel\Channels\SharedHttpTransportManager.cs (3)
66internal override void OnClose(TimeSpan timeout) 73Cleanup(true, TimeSpan.Zero); 77void Cleanup(bool aborting, TimeSpan timeout)
System\ServiceModel\Channels\SharedTcpTransportManager.cs (3)
156protected void CleanUp(bool aborting, TimeSpan timeout) 192CleanUp(true, TimeSpan.Zero); 197internal override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\SingletonChannelAcceptor.cs (2)
25public override ChannelInterfaceType AcceptChannel(TimeSpan timeout) 31public override IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\SingletonConnectionReader.cs (19)
28TimeSpan ReceiveTimeout { get; } 109TimeSpan GetRemainingTimeout() 299public IAsyncResult BeginCompletePreamble(TimeSpan timeout, AsyncCallback callback, object state) 322public CompletePreambleAsyncResult(TimeSpan timeout, ServerSingletonPreambleConnectionReader parent, AsyncCallback callback, object state) 942public void StartReading(Action<Uri> viaDelegate, TimeSpan timeout) 1007protected override void OnClose(TimeSpan timeout) 1097void DoneReceiving(bool atEof, TimeSpan timeout) 1111public void Close(TimeSpan timeout) 1153protected abstract void OnClose(TimeSpan timeout); 1155public void DoneSending(TimeSpan timeout) 1172public RequestContext ReceiveRequest(TimeSpan timeout) 1178public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 1188public Message Receive(TimeSpan timeout) 1270TimeSpan timeout; 1272public ReceiveAsyncResult(SingletonConnectionReader parent, TimeSpan timeout, AsyncCallback callback, 1331protected override void OnClose(TimeSpan timeout) 1336protected override void OnReply(Message message, TimeSpan timeout) 1349protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1688base.Connection.Write(encodedSize, 0, bytesEncoded, false, TimeSpan.FromMilliseconds(this.WriteTimeout));
System\ServiceModel\Channels\SocketConnection.cs (58)
30TimeSpan asyncSendTimeout; 31TimeSpan readFinTimeout; 32TimeSpan asyncReceiveTimeout; 37TimeSpan socketSyncSendTimeout; 38TimeSpan socketSyncReceiveTimeout; 93this.asyncSendTimeout = this.asyncReceiveTimeout = TimeSpan.MaxValue; 94this.socketSyncSendTimeout = this.socketSyncReceiveTimeout = TimeSpan.MaxValue; 158ConvertReceiveException(socketException, TimeSpan.Zero, TimeSpan.Zero), ExceptionEventType); 464public void Close(TimeSpan timeout, bool asyncAndLinger) 519public void ContinueClose(TimeSpan timeout) 522if (timeout <= TimeSpan.Zero && DiagnosticUtility.ShouldTraceWarning) 551public void Shutdown(TimeSpan timeout) 570ConvertSendException(socketException, TimeSpan.MaxValue, this.socketSyncSendTimeout), ExceptionEventType); 681Exception ConvertSendException(SocketException socketException, TimeSpan remainingTime, TimeSpan timeout) 687Exception ConvertReceiveException(SocketException socketException, TimeSpan remainingTime, TimeSpan timeout) 693internal static Exception ConvertTransferException(SocketException socketException, TimeSpan timeout, Exception originalException) 696TransferOperation.Undefined, false, null, TransferOperation.Undefined, null, TimeSpan.MaxValue); 715static Exception ConvertTransferException(SocketException socketException, TimeSpan timeout, Exception originalException, 717SocketConnection socketConnection, TimeSpan remainingTime) 733remainingTime <= TimeSpan.Zero) 797TraceUtility.TraceEvent(exceptionEventType, TraceCode.TcpTransferError, GetEndpointString(SR.TcpTransferError, TimeSpan.MinValue, socketException, socketConnection), communicationException, null); 822static string GetEndpointString(string sr, TimeSpan timeout, SocketException socketException, SocketConnection socketConnection) 849public AsyncCompletionResult BeginWrite(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, 890ConvertSendException(socketException, TimeSpan.MaxValue, this.asyncSendTimeout), ExceptionEventType); 950this.asyncWriteException = ConvertSendException(socketException, TimeSpan.MaxValue, this.asyncSendTimeout); 1017public void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout) 1077public void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, BufferManager bufferManager) 1089public int Read(byte[] buffer, int offset, int size, TimeSpan timeout) 1096int ReadCore(byte[] buffer, int offset, int size, TimeSpan timeout, bool closing) 1143public virtual AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, 1151AsyncCompletionResult BeginReadCore(int offset, int size, TimeSpan timeout, 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); 1427void SetReadTimeout(TimeSpan timeout, bool synchronous, bool closing) 1434if (timeout <= TimeSpan.Zero) 1456if (timeout == TimeSpan.MaxValue) 1467void SetWriteTimeout(TimeSpan timeout, bool synchronous) 1474if (timeout <= TimeSpan.Zero) 1493if (timeout == TimeSpan.MaxValue) 1504bool ShouldUpdateTimeout(TimeSpan oldTimeout, TimeSpan newTimeout) 1581public static Exception ConvertConnectException(SocketException socketException, Uri remoteUri, TimeSpan timeSpent, Exception innerException) 1596if (timeSpent == TimeSpan.MaxValue) 1617if (timeSpent == TimeSpan.MaxValue) 1658static TimeoutException CreateTimeoutException(Uri uri, TimeSpan timeout, IPAddress[] addresses, int invalidAddressCount, 1681public IConnection Connect(Uri uri, TimeSpan timeout) 1704if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1751public IAsyncResult BeginConnect(Uri uri, TimeSpan timeout, AsyncCallback callback, object state) 1769TimeSpan timeSpentInConnect) 1785TimeSpan timeout; 1794public ConnectAsyncResult(Uri uri, TimeSpan timeout, AsyncCallback callback, object state) 1859if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 2090TimeSpan listenTimeout = TimeSpan.FromSeconds(1);
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (13)
263protected override void OnClose(TimeSpan timeout) 272protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 307protected override void OnOpen(TimeSpan timeout) 322protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 341public OpenAsyncResult(SslStreamSecurityUpgradeProvider parent, TimeSpan timeout, 826IAsyncResult BaseBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 836internal override IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 846internal override void Open(TimeSpan timeout) 857IAsyncResult BaseBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 867internal override IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 877internal override void Close(TimeSpan timeout) 1064public OpenAsyncResult(SslStreamSecurityUpgradeInitiator parent, TimeSpan timeout, 1236public CloseAsyncResult(SslStreamSecurityUpgradeInitiator parent, TimeSpan timeout,
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (11)
40protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 50protected override void OnOpen(TimeSpan timeout) 131protected override void OnClose(TimeSpan timeout) 144protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 176protected override TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException) 531protected override void OnClose(TimeSpan timeout) 549public void SendRequest(Message message, TimeSpan timeout) 580public Message WaitForReply(TimeSpan timeout) 585connectionReader.DoneSending(TimeSpan.Zero); // we still need to receive 636public void BeginSendRequest(Message message, TimeSpan timeout) 725connectionReader.DoneSending(TimeSpan.Zero); // we still need to receive
System\ServiceModel\Channels\StreamSecurityUpgradeInitiatorBase.cs (4)
51this.Open(TimeSpan.Zero); 94this.Open(TimeSpan.Zero); 108internal override void Open(TimeSpan timeout) 120internal override void Close(TimeSpan timeout)
System\ServiceModel\Channels\StreamUpgradeInitiator.cs (4)
21internal virtual IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 31internal virtual IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 41internal virtual void Open(TimeSpan timeout) 45internal virtual void Close(TimeSpan timeout)
System\ServiceModel\Channels\StreamUpgradeProvider.cs (4)
8TimeSpan closeTimeout; 9TimeSpan openTimeout; 30protected override TimeSpan DefaultCloseTimeout 35protected override TimeSpan DefaultOpenTimeout
System\ServiceModel\Channels\SynchronizedMessageSource.cs (10)
22public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 32public bool WaitForMessage(TimeSpan timeout) 52public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 62public Message Receive(TimeSpan timeout) 90public SynchronizedAsyncResult(SynchronizedMessageSource syncSource, TimeSpan timeout, 133protected abstract bool PerformOperation(TimeSpan timeout); 203public ReceiveAsyncResult(SynchronizedMessageSource syncSource, TimeSpan timeout, 209protected override bool PerformOperation(TimeSpan timeout) 247public WaitForMessageAsyncResult(SynchronizedMessageSource syncSource, TimeSpan timeout, 253protected override bool PerformOperation(TimeSpan timeout)
System\ServiceModel\Channels\TcpChannelFactory.cs (3)
21TimeSpan leaseTimeout; 33public TimeSpan LeaseTimeout 62internal override void ReleaseConnectionPool(ConnectionPool pool, TimeSpan timeout)
System\ServiceModel\Channels\TcpChannelListener.cs (9)
33protected override void OnOpen(TimeSpan timeout) 40protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 50protected override void OnClose(TimeSpan timeout) 57protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 83public TChannel AcceptChannel(TimeSpan timeout) 89public IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 101protected override bool OnWaitForChannel(TimeSpan timeout) 106protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 133TimeSpan ISingletonChannelListener.ReceiveTimeout
System\ServiceModel\Channels\TcpConnectionPoolSettings.cs (6)
12TimeSpan idleTimeout; 13TimeSpan leaseTimeout; 44public TimeSpan IdleTimeout 49if (value < TimeSpan.Zero) 65public TimeSpan LeaseTimeout 70if (value < TimeSpan.Zero)
System\ServiceModel\Channels\TracingConnection.cs (7)
71public override void Close(TimeSpan timeout, bool asyncAndLinger) 89public override void Shutdown(TimeSpan timeout) 113public override AsyncCompletionResult BeginWrite(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, WaitCallback callback, object state) 129public override void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout) 137public override void Write(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, BufferManager bufferManager) 145public override int Read(byte[] buffer, int offset, int size, TimeSpan timeout) 159public override AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, System.Threading.WaitCallback callback, object state)
System\ServiceModel\Channels\TracingConnectionInitiator.cs (2)
29public IConnection Connect(Uri uri, TimeSpan timeout) 44public IAsyncResult BeginConnect(Uri uri, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\TransactionChannelFactory.cs (4)
246public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback asyncCallback, object state) 264public void Send(Message message, TimeSpan timeout) 303public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback asyncCallback, object state) 323public Message Request(Message message, TimeSpan timeout)
System\ServiceModel\Channels\TransactionChannelListener.cs (21)
186TimeSpan defaultCloseTimeout, TimeSpan defaultSendTimeout) 203protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 218protected override void OnClose(TimeSpan timeout) 238protected override void OnReply(Message message, TimeSpan timeout) 283public Message Receive(TimeSpan timeout) 293public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 303public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 323public virtual bool TryReceive(TimeSpan timeout, out Message message) 338public bool WaitForMessage(TimeSpan timeout) 343public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 378public RequestContext ReceiveRequest(TimeSpan timeout) 388public IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 398public IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 405RequestContext FinishReceiveRequest(RequestContext innerContext, TimeSpan timeout) 455public bool TryReceiveRequest(TimeSpan timeout, out RequestContext requestContext) 472public bool WaitForRequest(TimeSpan timeout) 477public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state) 566public virtual IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback asyncCallback, object state) 583public virtual void Send(Message message, TimeSpan timeout) 602internal ReceiveTimeoutAsyncResult(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\TransmissionStrategy.cs (12)
82public TransmissionStrategy(ReliableMessagingVersion reliableMessagingVersion, TimeSpan initRtt, 85if (initRtt < TimeSpan.Zero) 143return (Ticks.Now / TimeSpan.TicksPerMillisecond) << Constants.TimeMultiplier; 208public bool Add(Message message, TimeSpan timeout, object state, out MessageAttemptInfo attemptInfo) 213public MessageAttemptInfo AddLast(Message message, TimeSpan timeout, object state) 256public IAsyncResult BeginAdd(Message message, TimeSpan timeout, object state, AsyncCallback callback, object asyncState) 261public IAsyncResult BeginAddLast(Message message, TimeSpan timeout, object state, AsyncCallback callback, object asyncState) 468bool InternalAdd(Message message, bool isLast, TimeSpan timeout, object state, out MessageAttemptInfo attemptInfo) 500IAsyncResult InternalBeginAdd(Message message, bool isLast, TimeSpan timeout, object state, AsyncCallback callback, object asyncState) 851public AsyncQueueAdder(Message message, bool isLast, TimeSpan timeout, object state, TransmissionStrategy strategy, AsyncCallback callback, object asyncState) 890protected override string GetTimeoutString(TimeSpan timeout) 1137public MessageAttemptInfo Wait(TimeSpan timeout)
System\ServiceModel\Channels\TransportChannelFactory.cs (2)
141protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 147protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\TransportChannelListener.cs (4)
414protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 426protected override void OnOpen(TimeSpan timeout) 452protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 462protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Channels\TransportDefaults.cs (13)
172internal static TimeSpan RetryCycleDelay { get { return TimeSpanHelper.FromMinutes(30, MsmqDefaults.RetryCycleDelayString); } } 174internal static TimeSpan TimeToLive { get { return TimeSpanHelper.FromDays(1, MsmqDefaults.TimeToLiveString); } } 179internal static TimeSpan ValidityDuration { get { return TimeSpanHelper.FromMinutes(5, MsmqDefaults.ValidityDurationString); } } 246internal static TimeSpan IdleTimeout { get { return TimeSpanHelper.FromMinutes(2, IdleTimeoutString); } } 248internal static TimeSpan ChannelInitializationTimeout { get { return TimeSpanHelper.FromSeconds(30, ChannelInitializationTimeoutString); } } 253internal static TimeSpan MaxOutputDelay { get { return TimeSpanHelper.FromMilliseconds(200, MaxOutputDelayString); } } 294internal static TimeSpan ConnectionLeaseTimeout { get { return TimeSpanHelper.FromMinutes(5, TcpTransportDefaults.ConnectionLeaseTimeoutString); } } 348internal static TimeSpan RequestInitializationTimeout { get { return TimeSpanHelper.FromMilliseconds(0, RequestInitializationTimeoutString); } } 443internal static TimeSpan IdleTimeout { get { return TimeSpanHelper.FromMinutes(2, IdleTimeoutString); } } 446internal static TimeSpan LeaseTimeout { get { return TimeSpanHelper.FromMinutes(10, LeaseTimeoutString); } } 455internal static TimeSpan AcknowledgementInterval { get { return TimeSpanHelper.FromMilliseconds(200, AcknowledgementIntervalString); } } 459internal static TimeSpan InactivityTimeout { get { return TimeSpanHelper.FromMinutes(10, InactivityTimeoutString); } } 494internal static readonly TimeSpan DefaultKeepAliveInterval = TimeSpanHelper.FromSeconds(0, DefaultKeepAliveIntervalString);
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (28)
109public Message Receive(TimeSpan timeout) 145public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 209public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 219public bool TryReceive(TimeSpan timeout, out Message message) 240public bool WaitForMessage(TimeSpan timeout) 263public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 329protected IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 339protected abstract void CloseOutputSessionCore(TimeSpan timeout); 341protected void CloseOutputSession(TimeSpan timeout) 392protected abstract void ReturnConnectionIfNecessary(bool abort, TimeSpan timeout); 396this.ReturnConnectionIfNecessary(true, TimeSpan.Zero); 402this.ReturnConnectionIfNecessary(true, TimeSpan.Zero); 405protected override void OnClose(TimeSpan timeout) 420protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 493protected abstract AsyncCompletionResult StartWritingBufferedMessage(Message message, ArraySegment<byte> messageData, bool allowOutputBatching, TimeSpan timeout, WaitCallback callback, object state); 495protected abstract AsyncCompletionResult BeginCloseOutput(TimeSpan timeout, WaitCallback callback, object state); 503protected abstract void OnSendCore(Message message, TimeSpan timeout); 505protected abstract AsyncCompletionResult StartWritingStreamedMessage(Message message, TimeSpan timeout, WaitCallback callback, object state); 507protected override void OnSend(Message message, TimeSpan timeout) 552protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 564protected abstract void CompleteClose(TimeSpan timeout); 575void EnsureInputClosed(TimeSpan timeout) 673public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 688public void CloseOutputSession(TimeSpan timeout) 702public CloseAsyncResult(TransportDuplexSessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 883public CloseOutputSessionAsyncResult(TransportDuplexSessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 1043public SendAsyncResult(TransportDuplexSessionChannel channel, Message message, TimeSpan timeout, bool streamedOutput, AsyncCallback callback, object state) 1231public TryReceiveAsyncResult(TransportDuplexSessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\TransportManager.cs (9)
32internal void Close(TransportChannelListener channelListener, TimeSpan timeout) 37void Cleanup(TransportChannelListener channelListener, TimeSpan timeout, bool aborting) 99internal abstract void OnClose(TimeSpan timeout); 151this.Cleanup(channelListener, TimeSpan.Zero, true); 215Close(true, TimeSpan.Zero); 253public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 263public void Close(TimeSpan timeout) 268public void Close(bool aborting, TimeSpan timeout) 369public CloseAsyncResult(TransportManagerContainer parent, AsyncCallback callback, TimeSpan timeout,
System\ServiceModel\Channels\TransportReplyChannelAcceptor.cs (6)
41IAsyncResult DummyBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 51protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 69protected override void OnClose(TimeSpan timeout) 126protected override void OnClose(TimeSpan timeout) 136IAsyncResult DummyBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 146protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (11)
221public static IAsyncResult BeginGetSspiCredential(SecurityTokenProviderContainer tokenProvider, TimeSpan timeout, 227public static IAsyncResult BeginGetSspiCredential(SecurityTokenProvider tokenProvider, TimeSpan timeout, 246public static NetworkCredential GetSspiCredential(SecurityTokenProviderContainer tokenProvider, TimeSpan timeout, 259public static NetworkCredential GetSspiCredential(SspiSecurityTokenProvider tokenProvider, TimeSpan timeout, 269SecurityTokenRequirement sspiTokenRequirement, TimeSpan timeout, 307static NetworkCredential GetSspiCredential(SspiSecurityTokenProvider tokenProvider, TimeSpan timeout, 460static T GetToken<T>(SecurityTokenProvider tokenProvider, TimeSpan timeout) 472public static IAsyncResult BeginGetUserNameCredential(SecurityTokenProviderContainer tokenProvider, TimeSpan timeout, 483public static NetworkCredential GetUserNameCredential(SecurityTokenProviderContainer tokenProvider, TimeSpan timeout) 563public GetUserNameCredentialAsyncResult(SecurityTokenProviderContainer tokenProvider, TimeSpan timeout, 636public GetSspiCredentialAsyncResult(SspiSecurityTokenProvider credentialProvider, TimeSpan timeout,
System\ServiceModel\Channels\UtilityExtension.cs (2)
35TimeSpan pruneInterval; 45pruneInterval = TimeSpan.FromMilliseconds(PruneIntervalMilliseconds + new Random(Process.GetCurrentProcess().Id).Next(PruneIntervalMilliseconds));
System\ServiceModel\Channels\WebSocketHelper.cs (5)
231internal static void ThrowCorrectException(Exception ex, TimeSpan timeout, string operation) 240TimeSpan.MinValue, // this is a dummy since operation type is null, so the timespan value won't be used 246internal static Exception ConvertAndTraceException(Exception ex, TimeSpan timeout, string operation) 325internal static void ThrowExceptionOnTaskFailure(Task task, TimeSpan timeout, string operation) 337internal static TimeoutException GetTimeoutException(Exception innerException, TimeSpan timeout, string operation)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (22)
149protected override void CompleteClose(TimeSpan timeout) 174protected override void CloseOutputSessionCore(TimeSpan timeout) 188protected override void OnClose(TimeSpan timeout) 200protected override void ReturnConnectionIfNecessary(bool abort, TimeSpan timeout) 204protected override AsyncCompletionResult StartWritingBufferedMessage(Message message, ArraySegment<byte> messageData, bool allowOutputBatching, TimeSpan timeout, Threading.WaitCallback callback, object state) 259protected override AsyncCompletionResult StartWritingStreamedMessage(Message message, TimeSpan timeout, WaitCallback callback, object state) 281protected override AsyncCompletionResult BeginCloseOutput(TimeSpan timeout, Threading.WaitCallback callback, object state) 314protected override void OnSendCore(Message message, TimeSpan timeout) 472thisPtr.webSocketStream.WriteEndOfMessage(TimeSpan.MaxValue); 507TimeSpan asyncReceiveTimeout; 569public AsyncReceiveResult BeginReceive(TimeSpan timeout, WaitCallback callback, object state) 614public Message Receive(TimeSpan timeout) 700WebSocketHelper.ThrowCorrectException(ex, TimeSpan.MaxValue, WebSocketHelper.ReceiveOperation); 731this.pendingException = WebSocketHelper.ConvertAndTraceException(ex, TimeSpan.MaxValue, WebSocketHelper.ReceiveOperation); 746public AsyncReceiveResult BeginWaitForMessage(TimeSpan timeout, Threading.WaitCallback callback, object state) 780public bool WaitForMessage(TimeSpan timeout) 1033TimeSpan closeTimeout; 1051TimeSpan closeTimeout) 1067TimeSpan closeTimeout) 1369public void WriteEndOfMessage(TimeSpan timeout) 1391public async void WriteEndOfMessageAsync(TimeSpan timeout, WaitCallback callback, object state) 1453void Cleanup(TimeSpan timeout)
System\ServiceModel\Channels\WebSocketTransportSettings.cs (6)
26TimeSpan keepAliveInterval; 81[DefaultValue(typeof(TimeSpan), WebSocketDefaults.DefaultKeepAliveIntervalString)] 82public TimeSpan KeepAliveInterval 91if (value < TimeSpan.Zero && value != Timeout.InfiniteTimeSpan) 226internal TimeSpan GetEffectiveKeepAliveInterval() 228return this.keepAliveInterval == TimeSpan.Zero ? WebSocket.DefaultKeepAliveInterval : this.keepAliveInterval;
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (12)
136protected override void OnClose(TimeSpan timeout) 140protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 150protected override void OnOpen(TimeSpan timeout) 161protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 321IAsyncResult BaseBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 331internal override IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 341internal override void Open(TimeSpan timeout) 350IAsyncResult BaseBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 360internal override IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 370internal override void Close(TimeSpan timeout) 540public OpenAsyncResult(WindowsStreamSecurityUpgradeInitiator parent, TimeSpan timeout, 705public CloseAsyncResult(WindowsStreamSecurityUpgradeInitiator parent, TimeSpan timeout,
System\ServiceModel\Channels\WsrmMessageInfo.cs (4)
830Nullable<TimeSpan> expires; 831Nullable<TimeSpan> offerExpires; 847public Nullable<TimeSpan> Expires 859public Nullable<TimeSpan> OfferExpires
System\ServiceModel\ClientBase.cs (17)
586void ICommunicationObject.Open(TimeSpan timeout) 597void ICommunicationObject.Close(TimeSpan timeout) 708IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 723IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 735internal IAsyncResult BeginFactoryOpen(TimeSpan timeout, AsyncCallback callback, object state) 759internal IAsyncResult BeginChannelOpen(TimeSpan timeout, AsyncCallback callback, object state) 769internal IAsyncResult BeginFactoryClose(TimeSpan timeout, AsyncCallback callback, object state) 793internal IAsyncResult BeginChannelClose(TimeSpan timeout, AsyncCallback callback, object state) 1227TimeSpan IContextChannel.OperationTimeout 1298void ICommunicationObject.Close(TimeSpan timeout) 1308IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1323void ICommunicationObject.Open(TimeSpan timeout) 1333IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1368void IOutputChannel.Send(Message message, TimeSpan timeout) 1378IAsyncResult IOutputChannel.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1403Message IRequestChannel.Request(Message message, TimeSpan timeout) 1413IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\ComIntegration\ComPlusServiceHost.cs (1)
96protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Configuration\CallbackTimeoutsElement.cs (2)
21public TimeSpan TransactionTimeout 23get { return (TimeSpan)base[ConfigurationStrings.TransactionTimeout]; }
System\ServiceModel\Configuration\ChannelPoolSettingsElement.cs (4)
21public TimeSpan IdleTimeout 23get { return (TimeSpan)base[ConfigurationStrings.IdleTimeout]; } 30public TimeSpan LeaseTimeout 32get { return (TimeSpan)base[ConfigurationStrings.LeaseTimeout]; }
System\ServiceModel\Configuration\ConnectionOrientedTransportElement.cs (4)
38public TimeSpan ChannelInitializationTimeout 40get { return (TimeSpan)base[ConfigurationStrings.ChannelInitializationTimeout]; } 63public TimeSpan MaxOutputDelay 65get { return (TimeSpan)base[ConfigurationStrings.MaxOutputDelay]; }
System\ServiceModel\Configuration\CustomBindingElement.cs (8)
29public TimeSpan CloseTimeout 31get { return (TimeSpan)base[ConfigurationStrings.CloseTimeout]; } 42public TimeSpan OpenTimeout 44get { return (TimeSpan)base[ConfigurationStrings.OpenTimeout]; } 55public TimeSpan ReceiveTimeout 57get { return (TimeSpan)base[ConfigurationStrings.ReceiveTimeout]; } 68public TimeSpan SendTimeout 70get { return (TimeSpan)base[ConfigurationStrings.SendTimeout]; }
System\ServiceModel\Configuration\HostTimeoutsElement.cs (4)
18public TimeSpan CloseTimeout 20get { return (TimeSpan)base[ConfigurationStrings.CloseTimeout]; } 27public TimeSpan OpenTimeout 29get { return (TimeSpan)base[ConfigurationStrings.OpenTimeout]; }
System\ServiceModel\Configuration\HttpTransportElement.cs (2)
37public TimeSpan RequestInitializationTimeout 39get { return (TimeSpan)base[ConfigurationStrings.RequestInitializationTimeout]; }
System\ServiceModel\Configuration\IBindingConfigurationElement.cs (4)
11TimeSpan CloseTimeout 21TimeSpan OpenTimeout 26TimeSpan ReceiveTimeout 31TimeSpan SendTimeout
System\ServiceModel\Configuration\IssuedTokenClientElement.cs (2)
59public TimeSpan MaxIssuedTokenCachingTime 61get { return (TimeSpan)base[ConfigurationStrings.MaxIssuedTokenCachingTime]; }
System\ServiceModel\Configuration\LocalClientSecuritySettingsElement.cs (12)
44public TimeSpan MaxClockSkew 46get { return (TimeSpan)base[ConfigurationStrings.MaxClockSkew]; } 53public TimeSpan MaxCookieCachingTime 55get { return (TimeSpan)base[ConfigurationStrings.MaxCookieCachingTime]; } 62public TimeSpan ReplayWindow 64get { return (TimeSpan)base[ConfigurationStrings.ReplayWindow]; } 71public TimeSpan SessionKeyRenewalInterval 73get { return (TimeSpan)base[ConfigurationStrings.SessionKeyRenewalInterval]; } 80public TimeSpan SessionKeyRolloverInterval 82get { return (TimeSpan)base[ConfigurationStrings.SessionKeyRolloverInterval]; } 96public TimeSpan TimestampValidityDuration 98get { return (TimeSpan)base[ConfigurationStrings.TimestampValidityDuration]; }
System\ServiceModel\Configuration\LocalServiceSecuritySettingsElement.cs (16)
29public TimeSpan IssuedCookieLifetime 31get { return (TimeSpan)base[ConfigurationStrings.IssuedCookieLifetime]; } 54public TimeSpan MaxClockSkew 56get { return (TimeSpan)base[ConfigurationStrings.MaxClockSkew]; } 63public TimeSpan NegotiationTimeout 65get { return (TimeSpan)base[ConfigurationStrings.NegotiationTimeout]; } 72public TimeSpan ReplayWindow 74get { return (TimeSpan)base[ConfigurationStrings.ReplayWindow]; } 81public TimeSpan InactivityTimeout 83get { return (TimeSpan)base[ConfigurationStrings.InactivityTimeout]; } 90public TimeSpan SessionKeyRenewalInterval 92get { return (TimeSpan)base[ConfigurationStrings.SessionKeyRenewalInterval]; } 99public TimeSpan SessionKeyRolloverInterval 101get { return (TimeSpan)base[ConfigurationStrings.SessionKeyRolloverInterval]; } 131public TimeSpan TimestampValidityDuration 133get { return (TimeSpan)base[ConfigurationStrings.TimestampValidityDuration]; }
System\ServiceModel\Configuration\MsmqBindingElementBase.cs (6)
94public TimeSpan RetryCycleDelay 96get { return (TimeSpan)base[ConfigurationStrings.RetryCycleDelay]; } 103public TimeSpan TimeToLive 105get { return (TimeSpan)base[ConfigurationStrings.TimeToLive]; } 126public TimeSpan ValidityDuration 128get { return (TimeSpan)base[ConfigurationStrings.ValidityDuration]; }
System\ServiceModel\Configuration\MsmqElementBase.cs (6)
78public TimeSpan RetryCycleDelay 80get { return (TimeSpan)base[ConfigurationStrings.RetryCycleDelay]; } 93public TimeSpan TimeToLive 95get { return (TimeSpan)base[ConfigurationStrings.TimeToLive]; } 116public TimeSpan ValidityDuration 118get { return (TimeSpan)base[ConfigurationStrings.ValidityDuration]; }
System\ServiceModel\Configuration\NamedPipeConnectionPoolSettingsElement.cs (2)
38public TimeSpan IdleTimeout 40get { return (TimeSpan)base[ConfigurationStrings.IdleTimeout]; }
System\ServiceModel\Configuration\Properties.cs (192)
65properties.Add(new ConfigurationProperty("receiveTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:30", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 93properties.Add(new ConfigurationProperty("receiveTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:30", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 680properties.Add(new ConfigurationProperty("idleTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:02:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 681properties.Add(new ConfigurationProperty("leaseTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 804properties.Add(new ConfigurationProperty("transactionTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 911properties.Add(new ConfigurationProperty("channelInitializationTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:30", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 914properties.Add(new ConfigurationProperty("maxOutputDelay", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00.2", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 940properties.Add(new ConfigurationProperty("closeTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 941properties.Add(new ConfigurationProperty("openTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 942properties.Add(new ConfigurationProperty("receiveTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 943properties.Add(new ConfigurationProperty("sendTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1227properties.Add(new ConfigurationProperty("closeTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:10", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1228properties.Add(new ConfigurationProperty("openTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1360properties.Add(new ConfigurationProperty("requestInitializationTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1460properties.Add(new ConfigurationProperty("maxIssuedTokenCachingTime", typeof(System.TimeSpan), System.TimeSpan.Parse("10675199.02:48:05.4775807", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1603properties.Add(new ConfigurationProperty("maxClockSkew", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1604properties.Add(new ConfigurationProperty("maxCookieCachingTime", typeof(System.TimeSpan), System.TimeSpan.Parse("10675199.02:48:05.4775807", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1605properties.Add(new ConfigurationProperty("replayWindow", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1606properties.Add(new ConfigurationProperty("sessionKeyRenewalInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("10:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1607properties.Add(new ConfigurationProperty("sessionKeyRolloverInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1609properties.Add(new ConfigurationProperty("timestampValidityDuration", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1635properties.Add(new ConfigurationProperty("issuedCookieLifetime", typeof(System.TimeSpan), System.TimeSpan.Parse("10:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1638properties.Add(new ConfigurationProperty("maxClockSkew", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1639properties.Add(new ConfigurationProperty("negotiationTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1640properties.Add(new ConfigurationProperty("replayWindow", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1641properties.Add(new ConfigurationProperty("inactivityTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:02:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1642properties.Add(new ConfigurationProperty("sessionKeyRenewalInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("15:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1643properties.Add(new ConfigurationProperty("sessionKeyRolloverInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1647properties.Add(new ConfigurationProperty("timestampValidityDuration", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1812properties.Add(new ConfigurationProperty("retryCycleDelay", typeof(System.TimeSpan), System.TimeSpan.Parse("00:30:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1813properties.Add(new ConfigurationProperty("timeToLive", typeof(System.TimeSpan), System.TimeSpan.Parse("1.00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1816properties.Add(new ConfigurationProperty("validityDuration", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1922properties.Add(new ConfigurationProperty("retryCycleDelay", typeof(System.TimeSpan), System.TimeSpan.Parse("00:30:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1924properties.Add(new ConfigurationProperty("timeToLive", typeof(System.TimeSpan), System.TimeSpan.Parse("1.00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 1927properties.Add(new ConfigurationProperty("validityDuration", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 2034properties.Add(new ConfigurationProperty("idleTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:02:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 2239properties.Add(new ConfigurationProperty("keepAliveInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("-00:00:00.0010000", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 2702properties.Add(new ConfigurationProperty("closeTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 2703properties.Add(new ConfigurationProperty("openTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 2704properties.Add(new ConfigurationProperty("receiveTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 2705properties.Add(new ConfigurationProperty("sendTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 2887properties.Add(new ConfigurationProperty("inactivityTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 2935properties.Add(new ConfigurationProperty("acknowledgementInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00.2", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 2937properties.Add(new ConfigurationProperty("inactivityTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 3661properties.Add(new ConfigurationProperty("cachedLogonTokenLifetime", typeof(System.TimeSpan), System.TimeSpan.Parse("00:15:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 4568properties.Add(new ConfigurationProperty("transactionTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 4593properties.Add(new ConfigurationProperty("leaseTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 4594properties.Add(new ConfigurationProperty("idleTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:02:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\ReliableSessionElement.cs (4)
22public TimeSpan AcknowledgementInterval 24get { return (TimeSpan)base[ConfigurationStrings.AcknowledgementInterval]; } 43public TimeSpan InactivityTimeout 45get { return (TimeSpan)base[ConfigurationStrings.InactivityTimeout]; }
System\ServiceModel\Configuration\ServiceModelTimeSpanValidator.cs (2)
31public TimeSpan MinValue 51public TimeSpan MaxValue
System\ServiceModel\Configuration\ServiceTimeoutsElement.cs (2)
21public TimeSpan TransactionTimeout 23get { return (TimeSpan)base[ConfigurationStrings.TransactionTimeout]; }
System\ServiceModel\Configuration\StandardBindingElement.cs (8)
56public TimeSpan CloseTimeout 58get { return (TimeSpan)base[ConfigurationStrings.CloseTimeout]; } 65public TimeSpan OpenTimeout 67get { return (TimeSpan)base[ConfigurationStrings.OpenTimeout]; } 74public TimeSpan ReceiveTimeout 76get { return (TimeSpan)base[ConfigurationStrings.ReceiveTimeout]; } 83public TimeSpan SendTimeout 85get { return (TimeSpan)base[ConfigurationStrings.SendTimeout]; }
System\ServiceModel\Configuration\StandardBindingReliableSessionElement.cs (2)
30public TimeSpan InactivityTimeout 32get { return (TimeSpan)base[ConfigurationStrings.InactivityTimeout]; }
System\ServiceModel\Configuration\TcpConnectionPoolSettingsElement.cs (4)
38public TimeSpan LeaseTimeout 40get { return (TimeSpan)base[ConfigurationStrings.LeaseTimeout]; } 47public TimeSpan IdleTimeout 49get { return (TimeSpan)base[ConfigurationStrings.IdleTimeout]; }
System\ServiceModel\Configuration\TimeSpanOrInfiniteConverter.cs (5)
22if (!(value is TimeSpan)) 24throw FxTrace.Exception.Argument("value", InternalSR.IncompatibleArgumentType(typeof(TimeSpan), value.GetType())); 27if ((TimeSpan)value == TimeSpan.MaxValue) 41return TimeSpan.MaxValue;
System\ServiceModel\Configuration\TimeSpanOrInfiniteValidator.cs (5)
12public TimeSpanOrInfiniteValidator(TimeSpan minValue, TimeSpan maxValue) 19if (value.GetType() == typeof(TimeSpan) && (TimeSpan)value == TimeSpan.MaxValue)
System\ServiceModel\Configuration\UserNameServiceElement.cs (2)
85public TimeSpan CachedLogonTokenLifetime 87get { return (TimeSpan)base[ConfigurationStrings.CachedLogonTokenLifetime]; }
System\ServiceModel\Configuration\WebSocketTransportSettingsElement.cs (2)
36public TimeSpan KeepAliveInterval 38get { return (TimeSpan)base[ConfigurationStrings.KeepAliveInterval]; }
System\ServiceModel\Description\CallbackTimeoutsBehavior.cs (6)
13TimeSpan transactionTimeout = TimeSpan.Zero; 15public TimeSpan TransactionTimeout 20if (value < TimeSpan.Zero) 53if (this.transactionTimeout != TimeSpan.Zero) 57(channelDispatcher.TransactionTimeout == TimeSpan.Zero) ||
System\ServiceModel\Description\ConfigLoader.cs (2)
422if (hte.OpenTimeout != TimeSpan.Zero) 426if (hte.CloseTimeout != TimeSpan.Zero)
System\ServiceModel\Description\MetadataExchangeClient.cs (4)
33TimeSpan resolveTimeout = TimeSpan.FromMinutes(1); 118public TimeSpan OperationTimeout 123if (value < TimeSpan.Zero)
System\ServiceModel\Description\ServiceTimeoutsBehavior.cs (7)
16TimeSpan transactionTimeout = TimeSpan.Zero; 18internal ServiceTimeoutsBehavior(TimeSpan transactionTimeout) 23internal TimeSpan TransactionTimeout 28if (value < TimeSpan.Zero) 48if (this.transactionTimeout != TimeSpan.Zero) 55if ((channelDispatcher.TransactionTimeout == TimeSpan.Zero) ||
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
534TimeSpan elapsedTime = new TimeSpan(DateTime.UtcNow.Ticks - startTicks);
System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (10)
61public void CloseAfterFault(TimeSpan timeout) 72public bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 94public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 129public void Send(Message message, TimeSpan timeout) 134public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 144public Message Request(Message message, TimeSpan timeout) 149public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 159public bool WaitForMessage(TimeSpan timeout) 164public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 192if (binder.channelBinder.TryReceive(TimeSpan.MaxValue, out requestContext))
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (11)
48TimeSpan transactionTimeout; 98this.transactionTimeout = TimeSpan.Zero; 116protected override TimeSpan DefaultCloseTimeout 131protected override TimeSpan DefaultOpenTimeout 394public TimeSpan TransactionTimeout 402if (value < TimeSpan.Zero) 430internal override void CloseInput(TimeSpan timeout) 622protected override void OnClose(TimeSpan timeout) 640protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 684protected override void OnOpen(TimeSpan timeout) 750protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Dispatcher\ChannelDispatcherBase.cs (1)
37internal virtual void CloseInput(TimeSpan timeout)
System\ServiceModel\Dispatcher\ChannelHandler.cs (8)
26public static readonly TimeSpan CloseAfterFaultTimeout = TimeSpan.FromSeconds(10); 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); 1131bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 1467while (!TryReceive(TimeSpan.MaxValue, out request)) 1730received = this.receiver.TryReceive(TimeSpan.Zero, out request); 1735TimeSpan receiveTimeout = TimeoutHelper.Min(this.listener.ChannelDispatcher.TransactionTimeout, this.listener.ChannelDispatcher.DefaultCommunicationTimeouts.ReceiveTimeout);
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (40)
23TimeSpan defaultCloseTimeout; 24TimeSpan defaultSendTimeout; 66public TimeSpan DefaultCloseTimeout 92public TimeSpan DefaultSendTimeout 201public void CloseAfterFault(TimeSpan timeout) 255TimeoutException GetReceiveTimeoutException(TimeSpan timeout) 314public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 358public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 368public void Send(Message message, TimeSpan timeout) 373public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 424public bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 454public Message Request(Message message, TimeSpan timeout) 492TimeSpan remaining = timeoutHelper.RemainingTime(); 657public bool WaitForMessage(TimeSpan timeout) 662public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 688protected override void OnClose(TimeSpan timeout) 692protected override void OnReply(Message message, TimeSpan timeout) 700protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 715public ReplyAsyncResult(DuplexRequestContext context, Message message, TimeSpan timeout, AsyncCallback callback, object state) 808internal Message WaitForReply(TimeSpan timeout) 874TimeSpan timeout; 879internal AsyncDuplexRequest(Message message, DuplexChannelBinder parent, TimeSpan timeout, AsyncCallback callback, object state) 885if (timeout != TimeSpan.MaxValue) 1179TimeSpan DefaultCloseTimeout 1196TimeSpan DefaultReceiveTimeout 1225result = this.innerChannel.BeginReceive(TimeSpan.MaxValue, receiveAsyncCallback, this); 1392public Message Receive(TimeSpan timeout) 1402public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 1412public bool TryReceive(TimeSpan timeout, out Message message) 1417public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 1427public bool WaitForMessage(TimeSpan timeout) 1432public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 1458public void Close(TimeSpan timeout) 1481public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1524public void Open(TimeSpan timeout) 1535public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1551public void Send(Message message, TimeSpan timeout) 1561public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1613public void WaitForBackgroundClose(TimeSpan timeout) 1620public IAsyncResult BeginWaitForBackgroundClose(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Dispatcher\ErrorHandlingAcceptor.cs (4)
65internal bool TryAccept(TimeSpan timeout, out IChannelBinder channelBinder) 109internal IAsyncResult BeginTryAccept(TimeSpan timeout, AsyncCallback callback, object state) 200this.binder.Listener.WaitForChannel(TimeSpan.MaxValue); 222return this.binder.Listener.BeginWaitForChannel(TimeSpan.MaxValue, callback, state);
System\ServiceModel\Dispatcher\ErrorhandlingReceiver.cs (4)
58internal bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 98internal IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 186this.binder.WaitForMessage(TimeSpan.MaxValue); 208return this.binder.BeginWaitForMessage(TimeSpan.MaxValue, callback, state);
System\ServiceModel\Dispatcher\IChannelBinder.cs (9)
20void CloseAfterFault(TimeSpan timeout); 22bool TryReceive(TimeSpan timeout, out RequestContext requestContext); 23IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state); 26void Send(Message message, TimeSpan timeout); 27IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state); 30Message Request(Message message, TimeSpan timeout); 31IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state); 34bool WaitForMessage(TimeSpan timeout); 35IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Dispatcher\IListenerBinder.cs (2)
15IChannelBinder Accept(TimeSpan timeout); 16IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Dispatcher\ImmutableCommunicationTimeouts.cs (8)
11TimeSpan close; 12TimeSpan open; 13TimeSpan receive; 14TimeSpan send; 39TimeSpan IDefaultCommunicationTimeouts.CloseTimeout 44TimeSpan IDefaultCommunicationTimeouts.OpenTimeout 49TimeSpan IDefaultCommunicationTimeouts.ReceiveTimeout 54TimeSpan IDefaultCommunicationTimeouts.SendTimeout
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (3)
1085receiveContext.Complete(this, ref rpc, TimeSpan.MaxValue, rpc.Transaction.Current); 1862protected override IAsyncResult OnBeginFinalizeCorrelation(Message message, TimeSpan timeout, 1900protected override Message OnFinalizeCorrelation(Message message, TimeSpan timeout)
System\ServiceModel\Dispatcher\InputChannelBinder.cs (14)
63public void CloseAfterFault(TimeSpan timeout) 68public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 93public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 103public void Send(Message message, TimeSpan timeout) 108public bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 123public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 133public Message Request(Message message, TimeSpan timeout) 138public bool WaitForMessage(TimeSpan timeout) 143public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 170: base(request, TimeSpan.Zero, TimeSpan.Zero) 179protected override void OnClose(TimeSpan timeout) 183protected override void OnReply(Message message, TimeSpan timeout) 187protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Dispatcher\InstanceContextManager.cs (10)
18IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state); 19IAsyncResult BeginCloseInput(TimeSpan timeout, AsyncCallback callback, object state); 20void Close(TimeSpan timeout); 21void CloseInput(TimeSpan timeout); 71public IAsyncResult BeginCloseInput(TimeSpan timeout, AsyncCallback callback, object state) 76void CloseInitiate(TimeSpan timeout) 120public void CloseInput(TimeSpan timeout) 200protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 207protected override void OnClose(TimeSpan timeout) 286public CloseInputAsyncResult(TimeSpan timeout, AsyncCallback otherCallback, object state, InstanceContext[] instances)
System\ServiceModel\Dispatcher\ListenerBinder.cs (12)
67public IChannelBinder Accept(TimeSpan timeout) 76public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 114public IChannelBinder Accept(TimeSpan timeout) 123public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 159public IChannelBinder Accept(TimeSpan timeout) 168public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 204public IChannelBinder Accept(TimeSpan timeout) 213public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 249public IChannelBinder Accept(TimeSpan timeout) 258public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 294public IChannelBinder Accept(TimeSpan timeout) 303public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Dispatcher\ListenerHandler.cs (11)
82protected override TimeSpan DefaultCloseTimeout 87protected override TimeSpan DefaultOpenTimeout 108protected override void OnOpen(TimeSpan timeout) 112protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 288IAsyncResult result = this.acceptor.BeginTryAccept(TimeSpan.MaxValue, ListenerHandler.acceptCallback, this); 307TimeSpan acceptTimeout = TimeoutHelper.Min(this.ChannelDispatcher.TransactionTimeout, this.ChannelDispatcher.DefaultCommunicationTimeouts.ReceiveTimeout); 430void CloseChannel(IChannel channel, TimeSpan timeout) 489public void CloseInput(TimeSpan timeout) 538void CloseChannels(TimeSpan timeout) 655protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 672protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Dispatcher\MessageRpc.cs (2)
225TimeSpan.MaxValue, 303TimeSpan.MaxValue,
System\ServiceModel\Dispatcher\MultipleReceiveBinder.cs (10)
66public void CloseAfterFault(TimeSpan timeout) 71public bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 76public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 95void EnsurePump(TimeSpan timeout) 192public void Send(Message message, TimeSpan timeout) 197public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 207public Message Request(Message message, TimeSpan timeout) 212public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 222public bool WaitForMessage(TimeSpan timeout) 227public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Dispatcher\OutputChannelBinder.cs (9)
61public void CloseAfterFault(TimeSpan timeout) 66public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 81public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 91public void Send(Message message, TimeSpan timeout) 96public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 106public bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 111public Message Request(Message message, TimeSpan timeout) 116public bool WaitForMessage(TimeSpan timeout) 121public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Dispatcher\ProxyRpc.cs (1)
30internal ProxyRpc(ServiceChannel channel, ProxyOperationRuntime operation, string action, object[] inputs, TimeSpan timeout)
System\ServiceModel\Dispatcher\ReceiveContextRPCFacet.cs (7)
52TimeSpan.MaxValue, 76public void Complete(ImmutableDispatchRuntime dispatchRuntime, ref MessageRpc rpc, TimeSpan timeout, Transaction transaction) 100public IAsyncResult BeginComplete(TimeSpan timeout, Transaction transaction, ChannelHandler channelHandler, AsyncCallback callback, object state) 131public IAsyncResult BeginAbandon(TimeSpan timeout, AsyncCallback callback, object state) 193TimeSpan timeout, 231bool Complete(TimeSpan timeout) 326TimeSpan.MaxValue,
System\ServiceModel\Dispatcher\ReplyChannelBinder.cs (9)
63public void CloseAfterFault(TimeSpan timeout) 68public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 83public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 93public void Send(Message message, TimeSpan timeout) 98public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 108public bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 113public Message Request(Message message, TimeSpan timeout) 118public bool WaitForMessage(TimeSpan timeout) 123public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Dispatcher\RequestChannelBinder.cs (9)
56public void CloseAfterFault(TimeSpan timeout) 61public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 76public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 86public void Send(Message message, TimeSpan timeout) 91public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 101public bool TryReceive(TimeSpan timeout, out RequestContext requestContext) 106public Message Request(Message message, TimeSpan timeout) 120public bool WaitForMessage(TimeSpan timeout) 125public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Dispatcher\TransactedBatchContext.cs (4)
27if (shared.TransactionTimeout <= TimeSpan.Zero) 30this.commitNotLaterThan = DateTime.UtcNow + TimeSpan.FromMilliseconds(shared.TransactionTimeout.TotalMilliseconds * 4 / 5); 168readonly TimeSpan txTimeout; 261internal TimeSpan TransactionTimeout
System\ServiceModel\Dispatcher\TransactionBehavior.cs (7)
25TimeSpan timeout = TimeSpan.Zero; 83internal static TimeSpan NormalizeTimeout(TimeSpan timeout) 85if (TimeSpan.Zero == timeout) 89else if (TimeSpan.Zero != TransactionManager.MaximumTimeout && timeout > TransactionManager.MaximumTimeout) 96internal static CommittableTransaction CreateTransaction(IsolationLevel isolation, TimeSpan timeout)
System\ServiceModel\Dispatcher\XPathMessageContext.cs (1)
1701return TimeSpan.Parse(spanStr, CultureInfo.InvariantCulture).TotalDays;
System\ServiceModel\ICommunicationObject.cs (4)
20void Close(TimeSpan timeout); 22IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state); 26void Open(TimeSpan timeout); 28IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\IContextChannel.cs (1)
20TimeSpan OperationTimeout { get; set; }
System\ServiceModel\IDefaultCommunicationTimeouts.cs (4)
11TimeSpan CloseTimeout { get; } 12TimeSpan OpenTimeout { get; } 13TimeSpan ReceiveTimeout { get; } 14TimeSpan SendTimeout { get; }
System\ServiceModel\IDuplexContextChannel.cs (2)
14IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state); 16void CloseOutputSession(TimeSpan timeout);
System\ServiceModel\InstanceContext.cs (9)
136protected override TimeSpan DefaultCloseTimeout 151protected override TimeSpan DefaultOpenTimeout 319internal IAsyncResult BeginCloseInput(TimeSpan timeout, AsyncCallback callback, object state) 399internal void CloseInput(TimeSpan timeout) 536protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 546protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 556protected override void OnClose(TimeSpan timeout) 583protected override void OnOpen(TimeSpan timeout) 646public CloseAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, InstanceContext instanceContext)
System\ServiceModel\MsmqBindingBase.cs (6)
18[DefaultValue(typeof(System.TimeSpan), MsmqDefaults.ValidityDurationString)] 19public TimeSpan ValidityDuration 88[DefaultValue(typeof(System.TimeSpan), MsmqDefaults.RetryCycleDelayString)] 89public TimeSpan RetryCycleDelay 97[DefaultValue(typeof(System.TimeSpan), MsmqDefaults.TimeToLiveString)] 98public TimeSpan TimeToLive
System\ServiceModel\MsmqIntegration\MsmqIntegrationMessageProperty.cs (5)
154TimeSpan? timeToReachQueue = null; 155public TimeSpan? TimeToReachQueue 165internal void InternalSetTimeToReachQueue(TimeSpan timeout) 176static void ValidateTimeToReachQueue(TimeSpan? timeout) 178if (timeout.HasValue && timeout.Value < TimeSpan.Zero)
System\ServiceModel\MsmqIntegration\MsmqIntegrationOutputChannel.cs (9)
38void OnCloseCore(bool isAborting, TimeSpan timeout) 52this.OnCloseCore(true, TimeSpan.Zero); 55protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 66protected override void OnClose(TimeSpan timeout) 91void OnOpenCore(TimeSpan timeout) 100protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 111protected override void OnOpen(TimeSpan timeout) 116protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 127protected override void OnSend(Message message, TimeSpan timeout)
System\ServiceModel\MsmqIntegration\MsmqMessage.cs (1)
132public TimeSpan? TimeToReachQueue
System\ServiceModel\PeerResolver.cs (4)
14public abstract object Register(string meshId, PeerNodeAddress nodeAddress, TimeSpan timeout); 15public abstract ReadOnlyCollection<PeerNodeAddress> Resolve(string meshId, int maxAddresses, TimeSpan timeout); 16public abstract void Unregister(object registrationId, TimeSpan timeout); 17public abstract void Update(object registrationId, PeerNodeAddress updatedNodeAddress, TimeSpan timeout);
System\ServiceModel\PeerResolvers\CustomPeerResolverService.cs (16)
86TimeSpan timeout = TimeSpan.FromMinutes(1); 200TimeSpan timeout = TimeSpan.FromMinutes(1); 201TimeSpan cleanupInterval = TimeSpan.FromMinutes(1); 202TimeSpan refreshInterval = TimeSpan.FromMinutes(10); 208TimeSpan LockWait = TimeSpan.FromSeconds(5); 216public TimeSpan CleanupInterval 224if (value < TimeSpan.Zero) 244public TimeSpan RefreshInterval 252if (value < TimeSpan.Zero) 576if (this.refreshInterval <= TimeSpan.Zero) 578if (this.CleanupInterval <= TimeSpan.Zero)
System\ServiceModel\PeerResolvers\PeerDefaultCustomResolverClient.cs (7)
21TimeSpan defaultLifeTime; 39this.defaultLifeTime = TimeSpan.FromHours(1); 102public override object Register(string meshId, PeerNodeAddress nodeAddress, TimeSpan timeout) 217public override void Unregister(object registrationId, TimeSpan timeout) 249public override void Update(object registrationId, PeerNodeAddress updatedNodeAddress, TimeSpan timeout) 259void SendUpdate(UpdateInfo updateInfo, TimeSpan timeout) 295public override ReadOnlyCollection<PeerNodeAddress> Resolve(string meshId, int maxAddresses, TimeSpan timeout)
System\ServiceModel\PeerResolvers\RefreshResponseInfo.cs (6)
18public TimeSpan RegistrationLifetime; 23public RefreshResponseInfoDC(TimeSpan registrationLifetime, RefreshResult result) 30public RefreshResponseInfo() : this(TimeSpan.Zero, RefreshResult.RegistrationNotFound) { } 32public RefreshResponseInfo(TimeSpan registrationLifetime, RefreshResult result) 37public TimeSpan RegistrationLifetime 42if (value < TimeSpan.Zero)
System\ServiceModel\PeerResolvers\RegisterResponseInfo.cs (5)
18public TimeSpan RegistrationLifetime; 24public RegisterResponseInfoDC(Guid registrationId, TimeSpan registrationLifetime) 31public RegisterResponseInfo(Guid registrationId, TimeSpan registrationLifetime) 47public TimeSpan RegistrationLifetime 52if (value < TimeSpan.Zero)
System\ServiceModel\ReliableSession.cs (2)
38public TimeSpan InactivityTimeout 43if (value <= TimeSpan.Zero)
System\ServiceModel\Security\AcceleratedTokenProvider.cs (4)
117public override void OnOpen(TimeSpan timeout) 140public override void OnClose(TimeSpan timeout) 226protected override AcceleratedTokenProviderState CreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout) 241protected override IAsyncResult BeginCreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\AcceptorSessionSymmetricMessageSecurityProtocol.cs (3)
142protected override IAsyncResult BeginSecureOutgoingMessageCore(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state) 152protected override SecurityProtocolCorrelationState SecureOutgoingMessageCore(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 184protected override SecurityProtocolCorrelationState VerifyIncomingMessageCore(ref Message message, string actor, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
82protected override void VerifyIncomingMessageCore(ref Message message, TimeSpan timeout)
System\ServiceModel\Security\ApplySecurityAndSendAsyncResult.cs (3)
21public ApplySecurityAndSendAsyncResult(SecurityProtocol binding, MessageSenderType channel, TimeSpan timeout, 75protected abstract IAsyncResult BeginSendCore(MessageSenderType channel, Message message, TimeSpan timeout, AsyncCallback callback, object state); 85protected abstract void OnSendCompleteCore(TimeSpan timeout);
System\ServiceModel\Security\AsymmetricSecurityProtocol.cs (8)
67public override void OnOpen(TimeSpan timeout) 124public override void OnClose(TimeSpan timeout) 145protected override IAsyncResult BeginSecureOutgoingMessageCore(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state) 184protected override SecurityProtocolCorrelationState SecureOutgoingMessageCore(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 241protected override SecurityProtocolCorrelationState VerifyIncomingMessageCore(ref Message message, string actor, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates) 320bool TryGetTokenSynchronouslyForOutgoingSecurity(Message message, SecurityProtocolCorrelationState correlationState, bool isBlockingCall, TimeSpan timeout, 363SecurityProtocolCorrelationState correlationState, TimeSpan timeout, AsyncCallback callback, object state) 369protected override void OnBothGetTokenCallsDone(ref Message message, SecurityToken primaryToken, SecurityToken secondaryToken, TimeSpan timeout)
System\ServiceModel\Security\AsymmetricSecurityProtocolFactory.cs (3)
151public override void OnClose(TimeSpan timeout) 184protected override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout) 189public override void OnOpen(TimeSpan timeout)
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (5)
76SecurityUtils.OpenTokenProviderIfRequired(sspiTokenProvider, TimeSpan.Zero); 77SspiSecurityToken sspiToken = (SspiSecurityToken) sspiTokenProvider.GetToken(TimeSpan.Zero); 829public override void OnClose(TimeSpan timeout) 853internal SecurityToken GetToken(TimeSpan timeout, ChannelBinding channelbinding) 859protected override SecurityToken GetTokenCore(TimeSpan timeout)
System\ServiceModel\Security\DuplexSecurityProtocolFactory.cs (16)
133this.forwardProtocolFactory.Close(true, TimeSpan.Zero); 137this.reverseProtocolFactory.Close(true, TimeSpan.Zero); 141public override void OnClose(TimeSpan timeout) 155protected override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout) 165public override void OnOpen(TimeSpan timeout) 186void Open(SecurityProtocolFactory factory, bool actAsInitiator, string propertyName, TimeSpan timeout) 210public override void OnOpen(TimeSpan timeout) 217public override void OnClose(TimeSpan timeout) 226this.outgoingProtocol.Close(true, TimeSpan.Zero); 227this.incomingProtocol.Close(true, TimeSpan.Zero); 230public override IAsyncResult BeginSecureOutgoingMessage(Message message, TimeSpan timeout, AsyncCallback callback, object state) 242public override IAsyncResult BeginSecureOutgoingMessage(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, 280public override void SecureOutgoingMessage(ref Message message, TimeSpan timeout) 288public override SecurityProtocolCorrelationState SecureOutgoingMessage(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 300public override void VerifyIncomingMessage(ref Message message, TimeSpan timeout) 308public override SecurityProtocolCorrelationState VerifyIncomingMessage(ref Message message, TimeSpan timeout,
System\ServiceModel\Security\IChannelSecureConversationSessionSettings.cs (2)
9TimeSpan KeyRenewalInterval 15TimeSpan KeyRolloverInterval
System\ServiceModel\Security\IListenerSecureConversationSessionSettings.cs (3)
21TimeSpan InactivityTimeout 27TimeSpan MaximumKeyRenewalInterval 33TimeSpan KeyRolloverInterval
System\ServiceModel\Security\InfoCardHelper.cs (1)
593protected override SecurityToken GetTokenCore(TimeSpan timeout)
System\ServiceModel\Security\InitiatorSessionSymmetricMessageSecurityProtocol.cs (5)
157protected override IAsyncResult BeginSecureOutgoingMessageCore(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state) 190protected override SecurityProtocolCorrelationState SecureOutgoingMessageCore(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 237protected override SecurityProtocolCorrelationState VerifyIncomingMessageCore(ref Message message, string actor, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates) 281public SecureOutgoingMessageAsyncResult(Message message, InitiatorSessionSymmetricMessageSecurityProtocol binding, SecurityToken signingToken, SecurityToken encryptionToken, SecurityToken sourceToken, SecurityTokenParameters tokenParameters, TimeSpan timeout, AsyncCallback callback, object state) 293protected override bool OnGetSupportingTokensDone(TimeSpan timeout)
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (4)
141protected override void SecureOutgoingMessageAtInitiator(ref Message message, string actor, TimeSpan timeout) 152protected override IAsyncResult BeginSecureOutgoingMessageAtInitiatorCore(Message message, string actor, TimeSpan timeout, AsyncCallback callback, object state) 192public SecureOutgoingMessageAsyncResult(string actor, Message message, InitiatorSessionSymmetricTransportSecurityProtocol binding, SecurityToken signingToken, SecurityToken sourceToken, SecurityTokenParameters tokenParameters, TimeSpan timeout, AsyncCallback callback, object state) 204protected override bool OnGetSupportingTokensDone(TimeSpan timeout)
System\ServiceModel\Security\InMemoryNonceCache.cs (4)
22public InMemoryNonceCache(TimeSpan cachingTime, int maxCachedNonces) 57TimeSpan cachingTimeSpan; 59public NonceCacheImpl(TimeSpan cachingTimeSpan, int maxCachedNonces) 60: base(lowWaterMark, maxCachedNonces, comparer, PurgingMode.AccessBasedPurge, TimeSpan.FromTicks(cachingTimeSpan.Ticks >> 2), false)
System\ServiceModel\Security\ISecurityCommunicationObject.cs (6)
8TimeSpan DefaultOpenTimeout { get; } 9TimeSpan DefaultCloseTimeout { get; } 11IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state); 12IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state); 13void OnClose(TimeSpan timeout); 19void OnOpen(TimeSpan timeout);
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (21)
39TimeSpan maxServiceTokenCachingTime; 98internal static TimeSpan DefaultClientMaxTokenCachingTime 102Fx.Assert(TimeSpan.Parse(defaultClientMaxTokenCachingTimeString, CultureInfo.InvariantCulture) == TimeSpan.MaxValue, "TimeSpan value not correct"); 103return TimeSpan.MaxValue; 137public TimeSpan MaxServiceTokenCachingTime 146if (value <= TimeSpan.Zero) 267public override void OnOpen(TimeSpan timeout) 312TimeSpan interval = serviceToken.ValidTo.ToUniversalTime() - serviceToken.ValidFrom.ToUniversalTime(); 350protected override IAsyncResult BeginGetTokenCore(TimeSpan timeout, AsyncCallback callback, object state) 382protected override SecurityToken GetTokenCore(TimeSpan timeout) 401protected override void CancelTokenCore(TimeSpan timeout, SecurityToken token) 417protected abstract IAsyncResult BeginCreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout, AsyncCallback callback, object state); 418protected abstract T CreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout); 425protected abstract void InitializeChannelFactories(EndpointAddress target, TimeSpan timeout); 426protected abstract IAsyncResult BeginInitializeChannelFactories(EndpointAddress target, TimeSpan timeout, AsyncCallback callback, object state); 463protected SecurityToken DoNegotiation(TimeSpan timeout) 470TimeSpan timeLeft = timeout; 639protected IAsyncResult BeginNegotiation(TimeSpan timeout, AsyncCallback callback, object state) 750TimeSpan timeout; 761public SecurityNegotiationAsyncResult(IssuanceTokenProviderBase<T> tokenProvider, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\IssuedTokenClientCredential.cs (3)
19TimeSpan maxIssuedTokenCachingTime = SpnegoTokenProvider.DefaultClientMaxTokenCachingTime; 136public TimeSpan MaxIssuedTokenCachingTime 144if (value < TimeSpan.Zero)
System\ServiceModel\Security\MessageSecurityProtocol.cs (17)
79public override IAsyncResult BeginSecureOutgoingMessage(Message message, TimeSpan timeout, AsyncCallback callback, object state) 101public override IAsyncResult BeginSecureOutgoingMessage(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state) 123protected abstract IAsyncResult BeginSecureOutgoingMessageCore(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state); 298protected SecurityToken GetTokenAndEnsureOutgoingIdentity(SecurityTokenProvider provider, bool isEncryptionOn, TimeSpan timeout, SecurityTokenAuthenticator authenticator) 426SecurityToken requiredSigningToken, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates) 524public override void SecureOutgoingMessage(ref Message message, TimeSpan timeout) 548public override SecurityProtocolCorrelationState SecureOutgoingMessage(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 572protected abstract SecurityProtocolCorrelationState SecureOutgoingMessageCore(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState); 586public override void VerifyIncomingMessage(ref Message message, TimeSpan timeout) 622public override SecurityProtocolCorrelationState VerifyIncomingMessage(ref Message message, TimeSpan timeout, params SecurityProtocolCorrelationState[] correlationStates) 659protected abstract SecurityProtocolCorrelationState VerifyIncomingMessageCore(ref Message message, string actor, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates); 686bool doIdentityChecks, SecurityTokenAuthenticator identityCheckAuthenticator, SecurityProtocolCorrelationState oldCorrelationState, TimeSpan timeout, AsyncCallback callback, object state) 733protected abstract void OnGetTokenDone(ref Message message, SecurityToken token, TimeSpan timeout); 777protected override bool OnGetSupportingTokensDone(TimeSpan timeout) 812TimeSpan timeout, 898protected abstract void OnBothGetTokenCallsDone(ref Message message, SecurityToken primaryToken, SecurityToken secondaryToken, TimeSpan timeout); 979protected override bool OnGetSupportingTokensDone(TimeSpan timeout)
System\ServiceModel\Security\MessageSecurityProtocolFactory.cs (1)
177public override void OnOpen(TimeSpan timeout)
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (15)
28internal static readonly TimeSpan defaultServerMaxNegotiationLifetime = TimeSpan.Parse(defaultServerMaxNegotiationLifetimeString, CultureInfo.InvariantCulture); 29internal static readonly TimeSpan defaultServerIssuedTokenLifetime = TimeSpan.Parse(defaultServerIssuedTokenLifetimeString, CultureInfo.InvariantCulture); 30internal static readonly TimeSpan defaultServerIssuedTransitionTokenLifetime = TimeSpan.Parse(defaultServerIssuedTransitionTokenLifetimeString, CultureInfo.InvariantCulture); 40TimeSpan serviceTokenLifetime; 42TimeSpan negotiationTimeout; 110public TimeSpan ServiceTokenLifetime 119if (value <= TimeSpan.Zero) 167public TimeSpan NegotiationTimeout 176if (value <= TimeSpan.Zero) 456public override void OnClose(TimeSpan timeout) 495public override void OnOpen(TimeSpan timeout) 523if (this.negotiationTimeout < TimeSpan.MaxValue)
System\ServiceModel\Security\NegotiationTokenAuthenticatorStateCache.cs (5)
17static TimeSpan purgingInterval = TimeSpan.FromMinutes(10); 18TimeSpan cachingSpan; 20public NegotiationTokenAuthenticatorStateCache(TimeSpan cachingSpan, int maximumCachedState) 21: base(lowWaterMark, maximumCachedState, null, PurgingMode.TimerBasedPurge, TimeSpan.FromTicks(cachingSpan.Ticks >> 2), true)
System\ServiceModel\Security\NegotiationTokenProvider.cs (4)
75public override void OnClose(TimeSpan timeout) 96public override void OnOpen(TimeSpan timeout) 154protected override void InitializeChannelFactories(EndpointAddress target, TimeSpan timeout) 158protected override IAsyncResult BeginInitializeChannelFactories(EndpointAddress target, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\NonceCache.cs (3)
13TimeSpan cachingTime; 19public TimeSpan CachingTimeSpan 27if (value < TimeSpan.Zero)
System\ServiceModel\Security\ReceiveMessageAndVerifySecurityAsyncResultBase.cs (2)
19protected ReceiveMessageAndVerifySecurityAsyncResultBase(IInputChannel innerChannel, TimeSpan timeout, AsyncCallback callback, object state) 89protected abstract bool OnInnerReceiveDone(ref Message message, TimeSpan timeout);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (7)
96TimeSpan replayWindow; 97TimeSpan clockSkew; 715public void SetTimeParameters(NonceCache nonceCache, TimeSpan replayWindow, TimeSpan clockSkew) 722public void Process(TimeSpan timeout, ChannelBinding channelBinding, ExtendedProtectionPolicy extendedProtectionPolicy) 1254void ProcessEncryptedData(EncryptedData encryptedData, TimeSpan timeout, int position, bool eagerMode, ref bool primarySignatureFound) 1625SecurityToken encryptionToken, string idInEncryptedForm, TimeSpan timeout)
System\ServiceModel\Security\SecurityChannel.cs (7)
57this.securityProtocol.Close(true, TimeSpan.Zero); 63protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 74IAsyncResult BeginCloseSecurityProtocol(TimeSpan timeout, AsyncCallback callback, object state) 99protected override void OnClose(TimeSpan timeout) 133public OutputChannelSendAsyncResult(Message message, SecurityProtocol binding, IOutputChannel channel, TimeSpan timeout, 140protected override IAsyncResult BeginSendCore(IOutputChannel channel, Message message, TimeSpan timeout, AsyncCallback callback, object state) 156protected override void OnSendCompleteCore(TimeSpan timeout)
System\ServiceModel\Security\SecurityContextTokenCache.cs (4)
23static TimeSpan purgingInterval = TimeSpan.FromMinutes(10); 27TimeSpan clockSkew; 34public SecurityContextTokenCache(int capacity, bool replaceOldestEntries, TimeSpan clockSkew)
System\ServiceModel\Security\SecurityListenerSettingsLifetimeManager.cs (6)
45public void Open(TimeSpan timeout) 83public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 109IAsyncResult BeginOpenSecurityProtocolFactory(TimeSpan timeout, AsyncCallback callback, object state) 119public void Close(TimeSpan timeout) 148public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 215this.securityProtocolFactory.Close(true, TimeSpan.Zero);
System\ServiceModel\Security\SecurityProtocol.cs (23)
113public TimeSpan DefaultOpenTimeout 118public TimeSpan DefaultCloseTimeout 123public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 128public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 317void MergeSupportingTokenProviders(TimeSpan timeout) 357public void Open(TimeSpan timeout) 362public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 372public virtual void OnOpen(TimeSpan timeout) 433public void Close(bool aborted, TimeSpan timeout) 464public virtual void OnClose(TimeSpan timeout) 484public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 573internal bool TryGetSupportingTokens(SecurityProtocolFactory factory, EndpointAddress target, Uri via, Message message, TimeSpan timeout, bool isBlockingCall, out IList<SupportingTokenSpecification> supportingTokens) 705public virtual IAsyncResult BeginSecureOutgoingMessage(Message message, TimeSpan timeout, AsyncCallback callback, object state) 711public virtual IAsyncResult BeginSecureOutgoingMessage(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state) 717public virtual IAsyncResult BeginVerifyIncomingMessage(Message message, TimeSpan timeout, AsyncCallback callback, object state) 723public virtual IAsyncResult BeginVerifyIncomingMessage(Message message, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates, AsyncCallback callback, object state) 749internal static SecurityToken GetToken(SecurityTokenProvider provider, EndpointAddress target, TimeSpan timeout) 776public abstract void SecureOutgoingMessage(ref Message message, TimeSpan timeout); 779public virtual SecurityProtocolCorrelationState SecureOutgoingMessage(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 795public abstract void VerifyIncomingMessage(ref Message message, TimeSpan timeout); 798public virtual SecurityProtocolCorrelationState VerifyIncomingMessage(ref Message message, TimeSpan timeout, params SecurityProtocolCorrelationState[] correlationStates) 864public GetSupportingTokensAsyncResult(Message m, SecurityProtocol binding, TimeSpan timeout, AsyncCallback callback, object state) 877protected abstract bool OnGetSupportingTokensDone(TimeSpan timeout);
System\ServiceModel\Security\SecurityProtocolFactory.cs (32)
71internal static readonly TimeSpan defaultMaxClockSkew = TimeSpan.Parse(defaultMaxClockSkewString, CultureInfo.InvariantCulture); 72internal static readonly TimeSpan defaultReplayWindow = TimeSpan.Parse(defaultReplayWindowString, CultureInfo.InvariantCulture); 75internal static readonly TimeSpan defaultTimestampValidityDuration = TimeSpan.Parse(defaultTimestampValidityDurationString, CultureInfo.InvariantCulture); 95TimeSpan maxClockSkew = defaultMaxClockSkew; 98TimeSpan replayWindow = defaultReplayWindow; 104TimeSpan timestampValidityDuration = defaultTimestampValidityDuration; 431public TimeSpan MaxClockSkew 440if (value < TimeSpan.Zero) 478public TimeSpan ReplayWindow 487if (value <= TimeSpan.Zero) 589public TimeSpan TimestampValidityDuration 598if (value <= TimeSpan.Zero) 622public TimeSpan DefaultOpenTimeout 627public TimeSpan DefaultCloseTimeout 632public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 637public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 691public virtual void OnClose(TimeSpan timeout) 716public SecurityProtocol CreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, bool isReturnLegSecurityRequired, TimeSpan timeout) 756protected abstract SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout); 813void MergeSupportingTokenAuthenticators(TimeSpan timeout) 983public virtual void OnOpen(TimeSpan timeout) 1073if (this.MaxClockSkew == TimeSpan.MaxValue || this.ReplayWindow == TimeSpan.MaxValue) 1089public void Open(bool actAsInitiator, TimeSpan timeout) 1095public IAsyncResult BeginOpen(bool actAsInitiator, TimeSpan timeout, AsyncCallback callback, object state) 1106public void Close(bool aborted, TimeSpan timeout) 1118public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1128internal void Open(string propertyName, bool requiredForForwardDirection, SecurityTokenAuthenticator authenticator, TimeSpan timeout) 1140internal void Open(string propertyName, bool requiredForForwardDirection, SecurityTokenProvider provider, TimeSpan timeout)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (79)
34internal static readonly TimeSpan defaultKeyRenewalInterval = TimeSpan.Parse(defaultKeyRenewalIntervalString, CultureInfo.InvariantCulture); 35internal static readonly TimeSpan defaultKeyRolloverInterval = TimeSpan.Parse(defaultKeyRolloverIntervalString, CultureInfo.InvariantCulture); 42TimeSpan keyRenewalInterval; 43TimeSpan keyRolloverInterval; 104public TimeSpan KeyRenewalInterval 112if (value <= TimeSpan.Zero) 121public TimeSpan KeyRolloverInterval 129if (value <= TimeSpan.Zero) 190public TimeSpan DefaultOpenTimeout 195public TimeSpan DefaultCloseTimeout 220public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 230IAsyncResult ISecurityCommunicationObject.OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 235IAsyncResult ISecurityCommunicationObject.OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 270public void OnClose(TimeSpan timeout) 282this.sessionProtocolFactory.Close(true, TimeSpan.Zero); 286public void OnOpen(TimeSpan timeout) 310internal void Close(TimeSpan timeout) 321IChannelFactory innerChannelFactory, ChannelBuilder channelBuilder, TimeSpan timeout) 608void OpenCore(SecurityToken sessionToken, TimeSpan timeout) 631protected override void OnOpen(TimeSpan timeout) 650protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 813protected SecurityProtocolCorrelationState SendCloseMessage(TimeSpan timeout) 832protected void SendCloseResponseMessage(TimeSpan timeout) 850IAsyncResult BeginSendCloseMessage(TimeSpan timeout, AsyncCallback callback, object state) 871IAsyncResult BeginSendCloseResponseMessage(TimeSpan timeout, AsyncCallback callback, object state) 1050protected Message ProcessIncomingMessage(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, out MessageFault protocolFault) 1113protected Message ProcessRequestContext(RequestContext requestContext, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 1181TimeSpan tokenValidityInterval = TimeSpan.FromTicks((long)(((token.ValidTo.Ticks - token.ValidFrom.Ticks) * this.settings.issuedTokenRenewalThreshold) / 100)); 1224void RenewKey(TimeSpan timeout) 1294protected IAsyncResult BeginSecureOutgoingMessage(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1316TimeSpan remainingTime; 1323protected SecurityProtocolCorrelationState SecureOutgoingMessage(ref Message message, TimeSpan timeout) 1334protected void VerifyIncomingMessage(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 1351protected virtual void CloseCore(TimeSpan timeout) 1377protected virtual IAsyncResult BeginCloseCore(TimeSpan timeout, AsyncCallback callback, object state) 1387protected IAsyncResult BeginReceiveInternal(TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state) 1397protected Message ReceiveInternal(TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 1419if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1429protected bool CloseSession(TimeSpan timeout, out bool wasAborted) 1458protected IAsyncResult BeginCloseSession(TimeSpan timeout, AsyncCallback callback, object state) 1499protected virtual SecurityProtocolCorrelationState CloseOutputSession(TimeSpan timeout) 1534protected virtual IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 1625protected override void OnClose(TimeSpan timeout) 1664protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1682public CloseCoreAsyncResult(ClientSecuritySessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 1852public ReceiveAsyncResult(ClientSecuritySessionChannel channel, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state) 1887TimeSpan timeout = timeoutHelper.RemainingTime(); 1888if (timeout == TimeSpan.Zero) 1945public OpenAsyncResult(ClientSecuritySessionChannel sessionChannel, TimeSpan timeout, AsyncCallback callback, object state) 2077public CloseSessionAsyncResult(TimeSpan timeout, ClientSecuritySessionChannel sessionChannel, AsyncCallback callback, object state) 2241public CloseAsyncResult(ClientSecuritySessionChannel sessionChannel, TimeSpan timeout, AsyncCallback callback, object state) 2482public KeyRenewalAsyncResult(Message message, ClientSecuritySessionChannel sessionChannel, TimeSpan timeout, AsyncCallback callback, object state) 2516public static Message End(IAsyncResult result, out TimeSpan remainingTime) 2533protected SecureSendAsyncResultBase(Message message, ClientSecuritySessionChannel sessionChannel, TimeSpan timeout, AsyncCallback callback, object state) 2628public SecureSendAsyncResult(Message message, ClientSecuritySessionChannel sessionChannel, TimeSpan timeout, AsyncCallback callback, object state, bool autoCloseMessage) 2846protected override SecurityProtocolCorrelationState CloseOutputSession(TimeSpan timeout) 2865protected override IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 2877IAsyncResult BeginBaseCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 2892Message ProcessReply(Message reply, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 2934public Message Request(Message message, TimeSpan timeout) 2949public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 2959TimeSpan remainingTime; 2969public SecureRequestAsyncResult(Message request, ClientSecuritySessionChannel sessionChannel, TimeSpan timeout, AsyncCallback callback, object state) 3019public static Message EndAsReply(IAsyncResult result, out SecurityProtocolCorrelationState correlationState, out TimeSpan remainingTime) 3036public CloseOutputSessionAsyncResult(SecurityRequestSessionChannel requestChannel, TimeSpan timeout, AsyncCallback callback, object state) 3195public Message Receive(TimeSpan timeout) 3205public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 3215public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 3238public bool TryReceive(TimeSpan timeout, out Message message) 3255public void Send(Message message, TimeSpan timeout) 3269public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 3306return this.BeginReceiveInternal(TimeSpan.MaxValue, null, onReceive, this); 3416public bool WaitForMessage(TimeSpan timeout) 3421public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 3493public void CloseOutputSession(TimeSpan timeout) 3528public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (13)
25internal static readonly TimeSpan defaultSessionTokenLifetime = TimeSpan.MaxValue; 30TimeSpan sessionTokenLifetime; 39TimeSpan keyRenewalInterval; 46TimeSpan negotiationTimeout; 129public TimeSpan SessionTokenLifetime 138if (value <= TimeSpan.Zero) 152public TimeSpan KeyRenewalInterval 161if (value <= TimeSpan.Zero) 192public TimeSpan NegotiationTimeout 201if (value <= TimeSpan.Zero) 521public override void OnClose(TimeSpan timeout) 533public override void OnOpen(TimeSpan timeout)
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (12)
294public override void OnOpen(TimeSpan timeout) 340public override void OnClose(TimeSpan timeout) 455protected override IAsyncResult BeginGetTokenCore(TimeSpan timeout, AsyncCallback callback, object state) 466protected override SecurityToken GetTokenCore(TimeSpan timeout) 472protected override IAsyncResult BeginRenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state) 483protected override SecurityToken RenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed) 570GenericXmlSecurityToken DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout) 835public SessionOperationAsyncResult(SecuritySessionSecurityTokenProvider requestor, SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout, AsyncCallback callback, object state) 1096protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1106protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1116protected override void OnClose(TimeSpan timeout) 1122protected override void OnOpen(TimeSpan timeout)
System\ServiceModel\Security\SecuritySessionServerSettings.cs (107)
35internal static readonly TimeSpan defaultKeyRenewalInterval = TimeSpan.Parse(defaultKeyRenewalIntervalString, CultureInfo.InvariantCulture); 36internal static readonly TimeSpan defaultKeyRolloverInterval = TimeSpan.Parse(defaultKeyRolloverIntervalString, CultureInfo.InvariantCulture); 39internal static readonly TimeSpan defaultInactivityTimeout = TimeSpan.Parse(defaultInactivityTimeoutString, CultureInfo.InvariantCulture); 45TimeSpan inactivityTimeout; 47TimeSpan maximumKeyRenewalInterval; 48TimeSpan keyRolloverInterval; 63TimeSpan closeTimeout; 64TimeSpan openTimeout; 65TimeSpan sendTimeout; 233public TimeSpan InactivityTimeout 241if (value <= TimeSpan.Zero) 251public TimeSpan MaximumKeyRenewalInterval 259if (value <= TimeSpan.Zero) 268public TimeSpan KeyRolloverInterval 276if (value <= TimeSpan.Zero) 323public TimeSpan OpenTimeout 331public TimeSpan CloseTimeout 339public TimeSpan SendTimeout 349public TimeSpan DefaultOpenTimeout 354public TimeSpan DefaultCloseTimeout 359public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 364public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 405public void OnClose(TimeSpan timeout) 412internal void Close(TimeSpan timeout) 417internal IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 432internal void Open(TimeSpan timeout) 437internal IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 447void OnCloseCore(TimeSpan timeout) 472this.sessionProtocolFactory.Close(true, TimeSpan.Zero); 511public void OnOpen(TimeSpan timeout) 546if (this.inactivityTimeout < TimeSpan.MaxValue) 591void ClosePendingChannels(TimeSpan timeout) 768handler.BeginReceive(TimeSpan.MaxValue); 850void TryCloseBinder(IServerReliableChannelBinder binder, TimeSpan timeout) 1001public IAsyncResult BeginReceive(TimeSpan timeout) 1016this.BeginReceive(TimeSpan.MaxValue); 1167this.securityProtocol = this.Settings.SessionProtocolFactory.CreateSecurityProtocol(null, null, listenerSecurityProtocolState, true, TimeSpan.Zero); 1206internal TimeSpan InternalSendTimeout 1222protected override void OnOpen(TimeSpan timeout) 1241protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1260this.securityProtocol.Close(true, TimeSpan.Zero); 1278protected virtual void CloseCore(TimeSpan timeout) 1318protected virtual IAsyncResult BeginCloseCore(TimeSpan timeout, AsyncCallback callback, object state) 1328protected abstract void OnCloseMessageReceived(RequestContext requestContext, Message message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout); 1330protected abstract void OnCloseResponseMessageReceived(RequestContext requestContext, Message message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout); 1388bool CheckIncomingToken(RequestContext requestContext, Message message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) 1465public RequestContext ReceiveRequest(TimeSpan timeout) 1483public IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 1501public IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 1511public bool TryReceiveRequest(TimeSpan timeout, out RequestContext requestContext) 1531if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 1594public Message Receive(TimeSpan timeout) 1612public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 1630public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 1640public bool TryReceive(TimeSpan timeout, out Message message) 1688void SendFaultIfRequired(Exception e, Message unverifiedMessage, RequestContext requestContext, TimeSpan timeout) 1739Message ProcessRequestContext(RequestContext requestContext, TimeSpan timeout, out SecurityProtocolCorrelationState correlationState, out bool isSecurityProcessingFailure) 1832internal void SecureApplicationMessage(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 1840internal SecurityProtocolCorrelationState VerifyIncomingMessage(ref Message message, TimeSpan timeout) 1886void SendRenewFault(RequestContext requestContext, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) 1966internal Message CreateCloseResponse(Message message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) 1998protected void SendCloseResponse(RequestContext requestContext, Message closeResponse, TimeSpan timeout) 2020internal IAsyncResult BeginSendCloseResponse(RequestContext requestContext, Message closeResponse, TimeSpan timeout, AsyncCallback callback, object state) 2060internal Message CreateCloseMessage(TimeSpan timeout) 2093protected void SendClose(TimeSpan timeout) 2114internal IAsyncResult BeginSendClose(TimeSpan timeout, AsyncCallback callback, object state) 2154protected void SendMessage(RequestContext requestContext, Message message, TimeSpan timeout) 2168internal IAsyncResult BeginSendMessage(RequestContext requestContext, Message response, TimeSpan timeout, AsyncCallback callback, object state) 2186public SendMessageAsyncResult(ServerSecuritySessionChannel sessionChannel, RequestContext requestContext, Message message, TimeSpan timeout, AsyncCallback callback, 2311public CloseCoreAsyncResult(ServerSecuritySessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 2557public ReceiveRequestAsyncResult(ServerSecuritySessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 2649if (this.timeoutHelper.RemainingTime() == TimeSpan.Zero) 2694if (this.timeoutHelper.RemainingTime() == TimeSpan.Zero) 2885protected override void CloseCore(TimeSpan timeout) 2937bool SendCloseResponseOnCloseIfRequired(TimeSpan timeout) 2980protected override void OnClose(TimeSpan timeout) 3006protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 3019bool WaitForInputSessionClose(TimeSpan timeout, out bool wasAborted) 3050protected override void OnCloseResponseMessageReceived(RequestContext requestContext, Message message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) 3058protected override void OnCloseMessageReceived(RequestContext requestContext, Message message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) 3072bool SendCloseResponseOnCloseReceivedIfRequired(RequestContext requestContext, Message message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) 3139public CloseAsyncResult(ServerSecuritySimplexSessionChannel sessionChannel, bool sendCloseResponse, RequestContext closeRequestContext, Message closeResponse, TimeSpan timeout, AsyncCallback callback, object state) 3513public bool WaitForRequest(TimeSpan timeout) 3518public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state) 3548protected override void OnClose(TimeSpan timeout) 3553protected override void OnReply(Message message, TimeSpan timeout) 3563protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 3630public void Send(Message message, TimeSpan timeout) 3643public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 3695protected override void CloseCore(TimeSpan timeout) 3723protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 3733internal bool WaitForOutputSessionClose(TimeSpan timeout, out bool wasAborted) 3748protected override void OnClose(TimeSpan timeout) 3788bool WaitForInputSessionClose(TimeSpan timeout, out bool wasAborted) 3838protected override void OnCloseMessageReceived(RequestContext requestContext, Message message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) 3889protected override void OnCloseResponseMessageReceived(RequestContext requestContext, Message message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) 3960void CloseOutputSession(TimeSpan timeout) 4005IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 4015public bool WaitForMessage(TimeSpan timeout) 4020public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 4040public CloseOutputSessionAsyncResult(ServerSecurityDuplexSessionChannel sessionChannel, TimeSpan timeout, AsyncCallback callback, object state) 4150public CloseAsyncResult(ServerSecurityDuplexSessionChannel sessionChannel, TimeSpan timeout, AsyncCallback callback, object state) 4580public void CloseOutputSession(TimeSpan timeout) 4617public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\SecurityTimestamp.cs (5)
16internal static readonly TimeSpan defaultTimeToLive = SecurityProtocolFactory.defaultTimestampValidityDuration; 160internal void ValidateRangeAndFreshness(TimeSpan timeToLive, TimeSpan allowedClockSkew) 171internal void ValidateFreshness(TimeSpan timeToLive, TimeSpan allowedClockSkew)
System\ServiceModel\Security\SecurityUtils.cs (20)
326internal static bool IsCurrentlyTimeEffective(DateTime effectiveTime, DateTime expirationTime, TimeSpan maxClockSkew) 374return new DateTime(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc); 383return new DateTime(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc); 1519internal static void OpenTokenProviderIfRequired(SecurityTokenProvider tokenProvider, TimeSpan timeout) 1524internal static IAsyncResult BeginOpenTokenProviderIfRequired(SecurityTokenProvider tokenProvider, TimeSpan timeout, 1535internal static IAsyncResult BeginCloseTokenProviderIfRequired(SecurityTokenProvider tokenProvider, TimeSpan timeout, 1546internal static void CloseTokenProviderIfRequired(SecurityTokenProvider tokenProvider, TimeSpan timeout) 1551internal static void CloseTokenProviderIfRequired(SecurityTokenProvider tokenProvider, bool aborted, TimeSpan timeout) 1558CloseCommunicationObject(tokenProvider, true, TimeSpan.Zero); 1561internal static void OpenTokenAuthenticatorIfRequired(SecurityTokenAuthenticator tokenAuthenticator, TimeSpan timeout) 1566internal static void CloseTokenAuthenticatorIfRequired(SecurityTokenAuthenticator tokenAuthenticator, TimeSpan timeout) 1571internal static void CloseTokenAuthenticatorIfRequired(SecurityTokenAuthenticator tokenAuthenticator, bool aborted, TimeSpan timeout) 1576internal static IAsyncResult BeginOpenTokenAuthenticatorIfRequired(SecurityTokenAuthenticator tokenAuthenticator, TimeSpan timeout, 1587internal static IAsyncResult BeginCloseTokenAuthenticatorIfRequired(SecurityTokenAuthenticator tokenAuthenticator, TimeSpan timeout, 1600CloseCommunicationObject(tokenAuthenticator, true, TimeSpan.Zero); 1603static void OpenCommunicationObject(ICommunicationObject obj, TimeSpan timeout) 1609static void CloseCommunicationObject(Object obj, bool aborted, TimeSpan timeout) 1644public OpenCommunicationObjectAsyncResult(object obj, TimeSpan timeout, AsyncCallback callback, object state) 1714public CloseCommunicationObjectAsyncResult(object obj, TimeSpan timeout, AsyncCallback callback, object state) 2439public OperationWithTimeoutAsyncResult(OperationWithTimeoutCallback operationWithTimeout, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\SendSecurityHeader.cs (1)
359public void AddTimestamp(TimeSpan timestampValidityDuration)
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (2)
85authenticator.SessionTokenLifetime = TimeSpan.MaxValue; 554public override void OnClose(TimeSpan timeout)
System\ServiceModel\Security\SessionSymmetricMessageSecurityProtocolFactory.cs (2)
50protected override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout) 62public override void OnOpen(TimeSpan timeout)
System\ServiceModel\Security\SessionSymmetricTransportSecurityProtocolFactory.cs (2)
41protected override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout) 53public override void OnOpen(TimeSpan timeout)
System\ServiceModel\Security\SimpleSecurityTokenProvider.cs (2)
57/// <param name="timeout">The <see cref="TimeSpan"/>.</param> 59protected override SecurityToken GetTokenCore(TimeSpan timeout)
System\ServiceModel\Security\SpnegoTokenAuthenticator.cs (1)
95public override void OnClose(TimeSpan timeout)
System\ServiceModel\Security\SpnegoTokenProvider.cs (3)
176public override void OnClose(TimeSpan timeout) 205protected override IAsyncResult BeginCreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout, AsyncCallback callback, object state) 216protected override SspiNegotiationTokenProviderState CreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout)
System\ServiceModel\Security\SspiNegotiationTokenProvider.cs (1)
59public override void OnOpen(TimeSpan timeout)
System\ServiceModel\Security\SspiSecurityTokenProvider.cs (1)
34protected override SecurityToken GetTokenCore(TimeSpan timeout)
System\ServiceModel\Security\SymmetricSecurityProtocol.cs (9)
77public override void OnOpen(TimeSpan timeout) 125public override void OnClose(TimeSpan timeout) 156protected override IAsyncResult BeginSecureOutgoingMessageCore(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state) 181protected override SecurityProtocolCorrelationState SecureOutgoingMessageCore(ref Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState) 254TimeSpan timeout, 285bool TryGetTokenSynchronouslyForOutgoingSecurity(Message message, SecurityProtocolCorrelationState correlationState, bool isBlockingCall, TimeSpan timeout, out SecurityToken token, out SecurityTokenParameters tokenParameters, out SecurityToken prerequisiteWrappingToken, out IList<SupportingTokenSpecification> supportingTokens, out SecurityProtocolCorrelationState newCorrelationState) 331protected override SecurityProtocolCorrelationState VerifyIncomingMessageCore(ref Message message, string actor, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates) 402bool doIdentityChecks, SecurityTokenAuthenticator identityCheckAuthenticator, SecurityProtocolCorrelationState correlationState, TimeSpan timeout, AsyncCallback callback, object state) 409protected override void OnGetTokenDone(ref Message message, SecurityToken providerToken, TimeSpan timeout)
System\ServiceModel\Security\SymmetricSecurityProtocolFactory.cs (3)
103public override void OnClose(TimeSpan timeout) 136protected override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout) 149public override void OnOpen(TimeSpan timeout)
System\ServiceModel\Security\TimeBoundedCache.cs (2)
25TimeSpan purgeInterval; 30protected TimeBoundedCache(int lowWaterMark, int maxCacheItems, IEqualityComparer keyComparer, PurgingMode purgingMode, TimeSpan purgeInterval, bool doRemoveNotification)
System\ServiceModel\Security\TlsnegoTokenAuthenticator.cs (2)
100public override void OnOpen(TimeSpan timeout) 117public override void OnClose(TimeSpan timeout)
System\ServiceModel\Security\TlsnegoTokenProvider.cs (5)
120protected override IAsyncResult BeginCreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout, AsyncCallback callback, object state) 145protected override SspiNegotiationTokenProviderState CreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout) 186public override void OnOpen(TimeSpan timeout) 200public override void OnClose(TimeSpan timeout) 237public CreateSspiStateAsyncResult(EndpointAddress target, Uri via, TlsnegoTokenProvider tlsTokenProvider, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (15)
172public TimeSpan MaxIssuedTokenCachingTime 241public virtual TimeSpan DefaultOpenTimeout 246public virtual TimeSpan DefaultCloseTimeout 294public void Close(TimeSpan timeout) 304public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 330public void Open(TimeSpan timeout) 342public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 360protected override IAsyncResult BeginGetTokenCore(TimeSpan timeout, AsyncCallback callback, object state) 365protected override SecurityToken GetTokenCore(TimeSpan timeout) 657public override void OnOpen(TimeSpan timeout) 724public override void OnClose(TimeSpan timeout) 754protected override void InitializeChannelFactories(EndpointAddress target, TimeSpan timeout) 762protected override IAsyncResult BeginInitializeChannelFactories(EndpointAddress target, TimeSpan timeout, AsyncCallback callback, object state) 827protected override IAsyncResult BeginCreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout, AsyncCallback callback, object state) 837protected override FederatedTokenProviderState CreateNegotiationState(EndpointAddress target, Uri via, TimeSpan timeout)
System\ServiceModel\Security\Tokens\ProviderBackedSecurityToken.cs (2)
28TimeSpan _timeout; 37public ProviderBackedSecurityToken( SecurityTokenProvider tokenProvider, TimeSpan timeout )
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenResolver.cs (4)
17TimeSpan clockSkew = SecurityProtocolFactory.defaultMaxClockSkew; 24public SecurityContextSecurityTokenResolver(int securityContextCacheCapacity, bool removeOldestTokensOnCacheFull, TimeSpan clockSkew) 31if ( clockSkew < TimeSpan.Zero ) 50public TimeSpan ClockSkew
System\ServiceModel\Security\Tokens\SecurityTokenProviderContainer.cs (3)
31public void Close(TimeSpan timeout) 37public void Open(TimeSpan timeout) 49public X509Certificate2 GetCertificate(TimeSpan timeout)
System\ServiceModel\Security\Tokens\ServiceX509SecurityTokenProvider.cs (1)
22protected override SecurityToken GetTokenCore(TimeSpan timeout)
System\ServiceModel\Security\Tokens\WindowsUserNameCachingSecurityTokenAuthenticator.cs (4)
27TimeSpan cachedLogonTokenLifetime; 30public LogonTokenCache(int maxCachedLogonTokens, TimeSpan cachedLogonTokenLifetime) 31: base((maxCachedLogonTokens * lowWaterMarkFactor) / 100, maxCachedLogonTokens, StringComparer.OrdinalIgnoreCase, PurgingMode.TimerBasedPurge, TimeSpan.FromTicks(cachedLogonTokenLifetime.Ticks >> 2), true) 141public WindowsUserNameCachingSecurityTokenAuthenticator(bool includeWindowsGroups, int maxCachedLogonTokens, TimeSpan cachedLogonTokenLifetime)
System\ServiceModel\Security\TransportSecurityProtocol.cs (9)
24public override void SecureOutgoingMessage(ref Message message, TimeSpan timeout) 51protected virtual void SecureOutgoingMessageAtInitiator(ref Message message, string actor, TimeSpan timeout) 75public override IAsyncResult BeginSecureOutgoingMessage(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, AsyncCallback callback, object state) 105public override IAsyncResult BeginSecureOutgoingMessage(Message message, TimeSpan timeout, AsyncCallback callback, object state) 110protected virtual IAsyncResult BeginSecureOutgoingMessageAtInitiatorCore(Message message, string actor, TimeSpan timeout, AsyncCallback callback, object state) 172public sealed override void VerifyIncomingMessage(ref Message message, TimeSpan timeout) 206protected virtual void VerifyIncomingMessageCore(ref Message message, TimeSpan timeout) 279public SecureOutgoingMessageAsyncResult(string actor, Message message, TransportSecurityProtocol binding, TimeSpan timeout, AsyncCallback callback, object state) 288protected override bool OnGetSupportingTokensDone(TimeSpan timeout)
System\ServiceModel\Security\TransportSecurityProtocolFactory.cs (1)
42protected override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout)
System\ServiceModel\Security\UserNamePasswordServiceCredential.cs (5)
21internal static readonly TimeSpan DefaultCachedLogonTokenLifetime = TimeSpan.Parse(DefaultCachedLogonTokenLifetimeString, CultureInfo.InvariantCulture); 29TimeSpan cachedLogonTokenLifetime = DefaultCachedLogonTokenLifetime; 132public TimeSpan CachedLogonTokenLifetime 140if (value <= TimeSpan.Zero)
System\ServiceModel\Security\WrappedSessionSecurityTokenAuthenticator.cs (4)
161public System.IAsyncResult BeginClose( System.TimeSpan timeout, System.AsyncCallback callback, object state ) 171public System.IAsyncResult BeginOpen( System.TimeSpan timeout, System.AsyncCallback callback, object state ) 181public void Close( System.TimeSpan timeout ) 219public void Open( System.TimeSpan timeout )
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (26)
31protected override TimeSpan DefaultCloseTimeout 36protected override TimeSpan DefaultOpenTimeout 46protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 51protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 56protected override void OnClose(TimeSpan timeout) 89protected override void OnOpen(TimeSpan timeout) 174public virtual TimeSpan DefaultOpenTimeout 179public virtual TimeSpan DefaultCloseTimeout 195public void Close(TimeSpan timeout) 205public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 220public void Open(TimeSpan timeout) 230public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 250public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 255public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 260public virtual void OnClose(TimeSpan timeout) 288public virtual void OnOpen(TimeSpan timeout) 351public virtual TimeSpan DefaultOpenTimeout 356public virtual TimeSpan DefaultCloseTimeout 372public void Close(TimeSpan timeout) 382public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 397public void Open(TimeSpan timeout) 407public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 427public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 432public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 437public virtual void OnClose(TimeSpan timeout) 465public virtual void OnOpen(TimeSpan timeout)
System\ServiceModel\Security\WSTrustChannel.cs (8)
747/// The <see cref="TimeSpan" /> that specifies how long the close operation has to complete before timing out. 758public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 784/// The <see cref="TimeSpan" /> that specifies how long the open operation has to complete before timing out. 795public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 821/// The <see cref="TimeSpan" /> that specifies how long the open operation has to complete before timing out. 823public void Close(TimeSpan timeout) 903/// The <see cref="TimeSpan" /> that specifies how long the open operation has to complete before timing out. 905public void Open(TimeSpan timeout)
System\ServiceModel\Security\WSTrustFeb2005.cs (4)
318protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 328protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 338protected override void OnClose(TimeSpan timeout) 343protected override void OnOpen(TimeSpan timeout)
System\ServiceModel\ServiceBehaviorAttribute.cs (6)
43TimeSpan transactionTimeout = TimeSpan.Zero; 247TimeSpan timeout = TimeSpan.Parse(value, CultureInfo.InvariantCulture); 249if (timeout < TimeSpan.Zero) 275internal TimeSpan TransactionTimeoutTimespan
System\ServiceModel\ServiceChannelManager.cs (5)
125public IAsyncResult BeginCloseInput(TimeSpan timeout, AsyncCallback callback, object state) 163public void CloseInput(TimeSpan timeout) 314protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 319IAsyncResult OnBeginCloseContinue(TimeSpan timeout, AsyncCallback callback, object state) 325protected override void OnClose(TimeSpan timeout)
System\ServiceModel\ServiceConfiguration.cs (2)
86public TimeSpan OpenTimeout 102public TimeSpan CloseTimeout
System\ServiceModel\ServiceDefaults.cs (6)
10internal static TimeSpan ServiceHostCloseTimeout { get { return TimeSpanHelper.FromSeconds(10, ServiceHostCloseTimeoutString); } } 12internal static TimeSpan CloseTimeout { get { return TimeSpanHelper.FromMinutes(1, CloseTimeoutString); } } 14internal static TimeSpan OpenTimeout { get { return TimeSpanHelper.FromMinutes(1, OpenTimeoutString); } } 16internal static TimeSpan ReceiveTimeout { get { return TimeSpanHelper.FromMinutes(10, ReceiveTimeoutString); } } 18internal static TimeSpan SendTimeout { get { return TimeSpanHelper.FromMinutes(1, SendTimeoutString); } } 20internal static TimeSpan TransactionTimeout { get { return TimeSpanHelper.FromMinutes(1, TransactionTimeoutString); } }
System\ServiceModel\ServiceHost.cs (20)
37TimeSpan closeTimeout = ServiceDefaults.ServiceHostCloseTimeout; 43TimeSpan openTimeout = ServiceDefaults.OpenTimeout; 136public TimeSpan CloseTimeout 141if (value < TimeSpan.Zero) 203protected override TimeSpan DefaultCloseTimeout 208protected override TimeSpan DefaultOpenTimeout 239public TimeSpan OpenTimeout 244if (value < TimeSpan.Zero) 558internal virtual void AfterInitializeRuntime(TimeSpan timeout) 562internal virtual IAsyncResult BeginAfterInitializeRuntime(TimeSpan timeout, AsyncCallback callback, object state) 828protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 841protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 847IAsyncResult BeginOpenChannelDispatchers(TimeSpan timeout, AsyncCallback callback, object state) 852protected override void OnClose(TimeSpan timeout) 1033protected override void OnOpen(TimeSpan timeout) 1250public OpenAsyncResult(ServiceHostBase host, TimeSpan timeout, AsyncCallback callback, object state) 1305public CloseAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, ServiceHostBase serviceHost) 1331TimeSpan timeout = this.timeoutHelper.RemainingTime(); 1470TimeSpan timeout = this.timeoutHelper.RemainingTime(); 1535TimeSpan timeout = this.timeoutHelper.RemainingTime();
System\ServiceModel\SpnEndpointIdentity.cs (3)
19static TimeSpan spnLookupTime = TimeSpan.FromMinutes(1); 33public static TimeSpan SpnLookupTime
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
25internal static readonly TimeSpan zeroOffset = new TimeSpan(0, 0, 0);
System\ServiceModel\TimeSpanHelper.cs (20)
12static public TimeSpan FromMinutes(int minutes, string text) 14TimeSpan value = TimeSpan.FromTicks(TimeSpan.TicksPerMinute * minutes); 15Fx.Assert(value == TimeSpan.Parse(text, CultureInfo.InvariantCulture), ""); 18static public TimeSpan FromSeconds(int seconds, string text) 20TimeSpan value = TimeSpan.FromTicks(TimeSpan.TicksPerSecond * seconds); 21Fx.Assert(value == TimeSpan.Parse(text, CultureInfo.InvariantCulture), ""); 24static public TimeSpan FromMilliseconds(int ms, string text) 26TimeSpan value = TimeSpan.FromTicks(TimeSpan.TicksPerMillisecond * ms); 27Fx.Assert(value == TimeSpan.Parse(text, CultureInfo.InvariantCulture), ""); 30static public TimeSpan FromDays(int days, string text) 32TimeSpan value = TimeSpan.FromTicks(TimeSpan.TicksPerDay * days); 33Fx.Assert(value == TimeSpan.Parse(text, CultureInfo.InvariantCulture), "");
System\ServiceModel\Transactions\WsatConfiguration.cs (3)
62TimeSpan maxTimeout; 116public TimeSpan MaxTimeout 397this.maxTimeout = TimeSpan.FromMinutes(5);
System.ServiceModel.Activation (17)
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (4)
650protected override void OnAbandon(TimeSpan timeout) 656protected override IAsyncResult OnBeginAbandon(TimeSpan timeout, AsyncCallback callback, object state) 661protected override IAsyncResult OnBeginComplete(TimeSpan timeout, AsyncCallback callback, object state) 667protected override void OnComplete(TimeSpan timeout)
System\ServiceModel\Activation\HostedHttpContext.cs (3)
158protected override void OnReply(Message message, TimeSpan timeout) 165Message message, TimeSpan timeout, AsyncCallback callback, object state) 212protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Activation\HostedHttpTransportManager.cs (1)
37internal override void OnClose(TimeSpan timeout)
System\ServiceModel\Activation\HostedNamedPipeTransportManager.cs (3)
60internal void Stop(TimeSpan timeout) 65void Cleanup(bool aborting, TimeSpan timeout) 126internal override void OnClose(TimeSpan timeout)
System\ServiceModel\Activation\HostedTcpTransportManager.cs (2)
35internal override void OnClose(TimeSpan timeout) 45internal void Stop(TimeSpan timeout)
System\ServiceModel\Channels\MsmqHostedTransportManager.cs (2)
34MsmqBindingMonitor monitor = new MsmqBindingMonitor(host, TimeSpan.FromMinutes(5), true); 70internal override void OnClose(TimeSpan timeout)
System\ServiceModel\ServiceHostingEnvironment.cs (2)
48static readonly TimeSpan InsufficientMemoryLogIntervalDuration = TimeSpan.FromHours(1);
System.ServiceModel.Activities (222)
System\ServiceModel\Activities\ChannelCacheDefaults.cs (8)
15internal static TimeSpan DefaultIdleTimeout = TimeSpan.Parse(DefaultIdleTimeoutString, CultureInfo.InvariantCulture); 21internal static TimeSpan DefaultLeaseTimeout = TimeSpan.Parse(DefaultLeaseTimeoutString, CultureInfo.InvariantCulture); 24internal static TimeSpan DefaultFactoryLeaseTimeout = TimeSpan.MaxValue; 27internal static TimeSpan DefaultChannelLeaseTimeout = TimeSpan.Parse(DefaultChannelLeaseTimeoutString, CultureInfo.InvariantCulture);
System\ServiceModel\Activities\ChannelCacheSettings.cs (4)
13TimeSpan idleTimeout; 14TimeSpan leaseTimeout; 27public TimeSpan IdleTimeout 48public TimeSpan LeaseTimeout
System\ServiceModel\Activities\Configuration\ChannelSettingsElement.cs (10)
25public TimeSpan IdleTimeout 27get { return (TimeSpan)base[ConfigurationStrings.IdleTimeout]; } 34public TimeSpan LeaseTimeout 36get { return (TimeSpan)base[ConfigurationStrings.LeaseTimeout]; } 56properties.Add(new ConfigurationProperty(ConfigurationStrings.IdleTimeout, typeof(System.TimeSpan), ChannelCacheDefaults.DefaultIdleTimeout, new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 57properties.Add(new ConfigurationProperty(ConfigurationStrings.LeaseTimeout, typeof(System.TimeSpan), ChannelCacheDefaults.DefaultFactoryLeaseTimeoutString, new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Activities\Configuration\FactorySettingsElement.cs (10)
25public TimeSpan IdleTimeout 27get { return (TimeSpan)base[ConfigurationStrings.IdleTimeout]; } 34public TimeSpan LeaseTimeout 36get { return (TimeSpan)base[ConfigurationStrings.LeaseTimeout]; } 56properties.Add(new ConfigurationProperty(ConfigurationStrings.IdleTimeout, typeof(System.TimeSpan), ChannelCacheDefaults.DefaultIdleTimeout, new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 57properties.Add(new ConfigurationProperty(ConfigurationStrings.LeaseTimeout, typeof(System.TimeSpan), ChannelCacheDefaults.DefaultChannelLeaseTimeoutString, new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Activities\Configuration\SqlWorkflowInstanceStoreElement.cs (4)
120public TimeSpan HostLockRenewalPeriod 122get { return (TimeSpan)base[hostLockRenewalPeriodParameter]; } 132public TimeSpan RunnableInstancesDetectionPeriod 134get { return (TimeSpan)base[runnableInstancesDetectionPeriodParameter]; }
System\ServiceModel\Activities\Configuration\WorkflowIdleElement.cs (12)
27public TimeSpan TimeToPersist 29get { return (TimeSpan)base[TimeToPersistString]; } 36public TimeSpan TimeToUnload 38get { return (TimeSpan)base[TimeToUnloadString]; } 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\SqlWorkflowInstanceStoreBehavior.cs (6)
22static TimeSpan defaultHostRenewalPeriod = TimeSpan.Parse(defaultHostRenewalString, CultureInfo.InvariantCulture); 24static TimeSpan defaultRunnableInstancesDetectionPeriod = TimeSpan.Parse(defaultRunnableInstancesDetectionPeriodString, CultureInfo.InvariantCulture); 97public TimeSpan HostLockRenewalPeriod 110public TimeSpan RunnableInstancesDetectionPeriod
System\ServiceModel\Activities\Description\WorkflowIdleBehavior.cs (10)
17internal static TimeSpan defaultTimeToPersist = TimeSpan.MaxValue; 19internal static TimeSpan defaultTimeToUnload = TimeSpan.Parse(defaultTimeToUnloadString, CultureInfo.InvariantCulture); 21TimeSpan timeToPersist; 22TimeSpan timeToUnload; 30public TimeSpan TimeToPersist 35if (value < TimeSpan.Zero) 43public TimeSpan TimeToUnload 48if (value < TimeSpan.Zero)
System\ServiceModel\Activities\Description\WorkflowOperationBehavior.cs (1)
163object[] inputs, Transaction currentTransaction, IInvokeReceivedNotification notification, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Activities\Dispatcher\BufferedReceiveManager.cs (1)
270TimeSpan.MaxValue, onEndAbandon, receiveContext);
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (5)
46readonly TimeSpan persistTimeout; 177return new ControlOperationAsyncResult(this, inputs, notification, TimeSpan.MaxValue, callback, state); 188TimeSpan timeout, AsyncCallback callback, object state) 296public ControlOperationAsyncResult(ControlOperationInvoker invoker, object[] inputs, IInvokeReceivedNotification notification, TimeSpan timeout, 760IAsyncResult result = this.receiveContext.BeginAbandon(TimeSpan.MaxValue, this.PrepareAsyncCompletion(handleEndAbandonReceiveContext), this);
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (14)
268internal IAsyncResult BeginGetInstance(InstanceKey instanceKey, ICollection<InstanceKey> additionalKeys, WorkflowGetInstanceContext parameters, TimeSpan timeout, AsyncCallback callback, object state) 275WorkflowIdentityKey updatedIdentity, TimeSpan timeout, AsyncCallback callback, object state) 370public void Open(TimeSpan timeout) 425public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 440public void Close(TimeSpan timeout) 449public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 506public OpenInstanceStoreAsyncResult(DurableInstanceManager instanceManager, TimeSpan timeout, AsyncCallback callback, object state) 621public CloseAsyncResult(DurableInstanceManager instanceManager, TimeSpan timeout, AsyncCallback callback, object state) 997TimeSpan timeout; 1008TimeSpan timeout, AsyncCallback callback, object state) 1023TimeSpan timeout, AsyncCallback callback, object state) 1036TimeSpan timeout, AsyncCallback callback, object state) 1385TimeSpan.FromSeconds(600), PrepareAsyncCompletion(handleEndWaitForStoreEvents), this); 1450IAsyncResult result = this.currentInstance.BeginRun(null, TimeSpan.MaxValue, PrepareAsyncCompletion(handleEndRunInstance), this);
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (21)
34static TimeSpan defaultOpenTimeout = TimeSpan.FromSeconds(90); 35static TimeSpan defaultCloseTimeout = TimeSpan.FromSeconds(90); 178protected override TimeSpan DefaultCloseTimeout { get { return defaultCloseTimeout; } } 179protected override TimeSpan DefaultOpenTimeout { get { return defaultOpenTimeout; } } 218TimeSpan timeout, 233public IAsyncResult BeginRelease(TimeSpan timeout, AsyncCallback callback, object state) 246ICollection<InstanceKey> associatedKeys, TimeSpan timeout, AsyncCallback callback, object state) 252ICollection<InstanceKey> associatedKeys, TimeSpan timeout, AsyncCallback callback, object state) 258TimeSpan timeout, bool applicationKeys, AsyncCallback callback, object state) 277public IAsyncResult BeginUpdateSuspendMetadata(Exception reason, TimeSpan timeout, AsyncCallback callback, object state) 343protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 348protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 353protected override void OnClose(TimeSpan timeout) 382protected override void OnOpen(TimeSpan timeout) 517internal TransactionWaitAsyncResult BeginEnlist(TimeSpan timeout, AsyncCallback callback, object state) 779public SaveAsyncResult(PersistenceContext persistenceContext, IDictionary<XName, InstanceValue> instance, SaveStatus saveStatus, TimeSpan timeout, 975public ReleaseAsyncResult(PersistenceContext persistenceContext, TimeSpan timeout, AsyncCallback callback, object state) 1129public AssociateKeysAsyncResult(PersistenceContext persistenceContext, ICollection<InstanceKey> associatedKeys, TimeSpan timeout, 1324public UpdateSuspendMetadataAsyncResult(PersistenceContext persistenceContext, Exception reason, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (9)
154TimeSpan timeout, AsyncCallback callback, object state) 171TimeSpan timeout, AsyncCallback callback, object state) 193ICollection<InstanceKey> associatedKeys, Transaction transaction, TimeSpan timeout, 211TimeSpan timeout, AsyncCallback callback, object state) 449internal IAsyncResult BeginReserveThrottle(TimeSpan timeout, AsyncCallback callback, object state) 748TimeSpan timeout, AsyncCallback callback, object state) 1182this.context.Open(TimeSpan.Zero); 1353public ReserveThrottleAsyncResult(PersistenceProviderDirectory directory, TimeSpan timeout, AsyncCallback callback, object state) 1400public bool EnterAsync(TimeSpan timeout, FastAsyncCallback callback, object state)
System\ServiceModel\Activities\Dispatcher\TransactionContext.cs (1)
147result = this.context.durableInstance.BeginPersist(TimeSpan.MaxValue, PrepareAsyncCompletion(PrepareAsyncResult.onEndPersist), this);
System\ServiceModel\Activities\Dispatcher\TransactionWaitAsyncResult.cs (2)
21internal TransactionWaitAsyncResult(Transaction transaction, PersistenceContext persistenceContext, TimeSpan timeout, AsyncCallback callback, object state) 64if (timeout != TimeSpan.MaxValue)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (70)
125TimeSpan persistTimeout; 126TimeSpan trackTimeout; 127TimeSpan acquireLockTimeout; 158this.acquireLockTimeout = TimeSpan.MaxValue; 490void AcquireLock(TimeSpan timeout, ref bool ownsLock) 551bool AcquireLockAsync(TimeSpan timeout, ref bool ownsLock, FastAsyncCallback callback, object state) 556bool AcquireLockAsync(TimeSpan timeout, bool isAbortPriority, bool skipPause, ref bool ownsLock, FastAsyncCallback callback, object state) 737IAsyncResult BeginAcquireLockOnIdle(TimeSpan timeout, ref bool ownsLock, AsyncCallback callback, object state) 847public IAsyncResult BeginAbandon(Exception reason, TimeSpan timeout, AsyncCallback callback, object state) 854IAsyncResult BeginAbandon(Exception reason, bool shouldTrackAbort, TimeSpan timeout, AsyncCallback callback, object state) 864IAsyncResult BeginAbandonAndSuspend(Exception reason, TimeSpan timeout, AsyncCallback callback, object state) 1149public IAsyncResult BeginTerminate(string reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1161IAsyncResult BeginTerminate(Exception reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1173public IAsyncResult BeginCancel(Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1189public IAsyncResult BeginRun(Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1194public IAsyncResult BeginRun(Transaction transaction, string operationName, TimeSpan timeout, AsyncCallback callback, object state) 1474public IAsyncResult BeginSuspend(bool isUnlocked, string reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1484public IAsyncResult BeginUnsuspend(Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1574public IAsyncResult BeginPersist(TimeSpan timeout, AsyncCallback callback, object state) 1579IAsyncResult BeginPersist(bool isTry, TimeSpan timeout, AsyncCallback callback, object state) 1602return new UnloadOrPersistAsyncResult(this, PersistenceOperation.Save, true, false, TimeSpan.MaxValue, callback, state); 1688public IAsyncResult BeginResumeProtocolBookmark(Bookmark bookmark, BookmarkScope bookmarkScope, object value, TimeSpan timeout, AsyncCallback callback, object state) 1715protected override IAsyncResult OnBeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state) 1765IAsyncResult BeginWaitForCanPersist(ref bool ownsLock, TimeSpan timeout, AsyncCallback callback, object state) 2037public IAsyncResult BeginTryAcquireReference(TimeSpan timeout, AsyncCallback callback, object state) 2047public IAsyncResult BeginReleaseInstance(bool isTryUnload, TimeSpan timeout, AsyncCallback callback, object state) 2062public IAsyncResult BeginAssociateInfrastructureKeys(ICollection<InstanceKey> associatedKeys, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 2080public IAsyncResult BeginWaitForPendingOperations(string sessionId, TimeSpan timeout, AsyncCallback callback, object state) 2188IAsyncResult result = this.BeginReleaseInstance(false, TimeSpan.MaxValue, handleEndReleaseInstance, this); 2433bool isTryUnload, TimeSpan timeout, AsyncCallback callback, object state) 2572IAsyncResult BeginUnload(TimeSpan timeout, AsyncCallback callback, object state) 2582IAsyncResult BeginTryUnload(TimeSpan timeout, AsyncCallback callback, object state) 2775public TryAcquireReferenceAsyncResult(WorkflowServiceInstance instance, TimeSpan timeout, AsyncCallback callback, object state) 2846TimeSpan timeout; 2848public PendingOperationAsyncResult(bool isFirstRequest, TimeSpan timeout, AsyncCallback callback, object state) 2909TimeSpan timeout, AsyncCallback callback, object state) 3002public ResumeProtocolBookmarkAsyncResult(WorkflowServiceInstance instance, Bookmark bookmark, object value, BookmarkScope bookmarkScope, bool isResumeProtocolBookmark, TimeSpan timeout, AsyncCallback callback, object state) 3366bool isWorkflowThread, bool isTry, TimeSpan timeout, AsyncCallback callback, object state) 4075protected void Run(TimeSpan timeout) 4271public static TerminateAsyncResult Create(WorkflowServiceInstance instance, Exception reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 4332public static AbandonAsyncResult Create(WorkflowServiceInstance instance, Exception reason, bool shouldTrackAbort, TimeSpan timeout, AsyncCallback callback, object state) 4440public static AbandonAndSuspendAsyncResult Create(WorkflowServiceInstance instance, Exception reason, TimeSpan timeout, AsyncCallback callback, object state) 4523public static CancelAsyncResult Create(WorkflowServiceInstance instance, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 4580public static RunAsyncResult Create(WorkflowServiceInstance instance, Transaction transaction, string operationName, TimeSpan timeout, AsyncCallback callback, object state) 4622public static SuspendAsyncResult Create(WorkflowServiceInstance instance, bool isUnlocked, string reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 4734public static UnsuspendAsyncResult Create(WorkflowServiceInstance instance, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 4782public AcquireLockOnIdleAsyncResult(WorkflowServiceInstance instance, TimeSpan timeout, ref bool ownsLock, AsyncCallback callback, object state) 4977public WaitForCanPersistAsyncResult(WorkflowServiceInstance instance, ref bool ownsLock, TimeSpan timeout, AsyncCallback callback, object state) 5255public void Enter(TimeSpan timeout, ref object token, ref bool ownsLock) 5265public bool EnterAsync(TimeSpan timeout, ref object token, ref bool ownsLock, FastAsyncCallback callback, object state) 5362public bool TryEnter(TimeSpan timeout, ref object token, ref bool ownsLock) 5565public WorkflowPersistenceContext(WorkflowServiceInstance instance, bool transactionRequired, Transaction transactionToUse, TimeSpan transactionTimeout) 5645TimeSpan timeToPersist; 5646TimeSpan timeToUnload; 5653public UnloadInstancePolicyHelper(WorkflowServiceInstance instance, TimeSpan timeToPersist, TimeSpan timeToUnload) 5661this.unloadEnabled = this.instance.persistenceContext.CanPersist && this.timeToUnload < TimeSpan.MaxValue; 5731IAsyncResult result = this.instance.BeginPersist(true, TimeSpan.MaxValue, onPersistCallback, this); 5791void SetTimer(IOThreadTimer timer, TimeSpan ts) 5793Fx.Assert(timer != null && ts >= TimeSpan.Zero, String.Empty); 5799timer.Set(TimeSpan.Zero); 5815IAsyncResult result = BeginUnlockAndAbort(TimeSpan.MaxValue, onUnlockAndAbortCallback, this); 5823IAsyncResult result = this.instance.BeginReleaseInstance(true, TimeSpan.MaxValue, onUnloadCallback, this); 5868IAsyncResult BeginUnlockAndAbort(TimeSpan timeout, AsyncCallback callback, object state) 5912public UnlockAndAbortAsyncResult(WorkflowServiceInstance instance, TimeSpan timeout, AsyncCallback callback, object state) 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\Activities\InternalSendMessage.cs (2)
2624protected override IAsyncResult OnBeginFinalizeCorrelation(Message message, TimeSpan timeout, AsyncCallback callback, object state) 2634protected override Message OnFinalizeCorrelation(Message message, TimeSpan timeout)
System\ServiceModel\Activities\Send.cs (2)
428if (factorySettings.IdleTimeout == TimeSpan.Zero || factorySettings.LeaseTimeout == TimeSpan.Zero || factorySettings.MaxItemsInCache == 0)
System\ServiceModel\Activities\Tracking\DefaultProfileManager.cs (1)
37public override TrackingProfile Load(string profileName, string activityDefinitionId, TimeSpan timeout)
System\ServiceModel\Activities\Tracking\TrackingProfileManager.cs (2)
20TimeSpan timeout, 31TimeSpan timeout);
System\ServiceModel\Activities\WorkflowCreationContext.cs (1)
58Exception terminationException, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Activities\WorkflowHostingResponseContext.cs (3)
64internal IAsyncResult BeginGetResponse(TimeSpan timeout, AsyncCallback callback, object state) 81GetResponseAsyncResult(WorkflowHostingResponseContext context, TimeSpan timeout, AsyncCallback callback, object state) 91public static GetResponseAsyncResult Create(WorkflowHostingResponseContext context, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Activities\WorkflowOperationContext.cs (2)
72TimeSpan timeout, AsyncCallback callback, object state) 202WorkflowOperationBehavior behavior, ServiceEndpoint endpoint, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Activities\WorkflowServiceHost.cs (20)
32static readonly TimeSpan defaultPersistTimeout = TimeSpan.FromSeconds(30); 33static readonly TimeSpan defaultTrackTimeout = TimeSpan.FromSeconds(30); 49TimeSpan idleTimeToPersist; 50TimeSpan idleTimeToUnload; 152internal TimeSpan PersistTimeout 158internal TimeSpan TrackTimeout 165internal TimeSpan FilterResumeTimeout 197internal TimeSpan IdleTimeToPersist 202Fx.Assert(value >= TimeSpan.Zero, "IdleTimeToPersist cannot be less than zero"); 206internal TimeSpan IdleTimeToUnload 211Fx.Assert(value >= TimeSpan.Zero, "IdleTimeToUnload cannot be less than zero"); 484this.FilterResumeTimeout = TimeSpan.FromSeconds(AppSettings.FilterResumeTimeoutInSeconds); 523internal override void AfterInitializeRuntime(TimeSpan timeout) 528internal override IAsyncResult BeginAfterInitializeRuntime(TimeSpan timeout, AsyncCallback callback, object state) 538protected override void OnClose(TimeSpan timeout) 549protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 576IAsyncResult BeginHostClose(TimeSpan timeout, AsyncCallback callback, object state) 781public CloseAsyncResult(WorkflowServiceHost host, TimeSpan timeout, AsyncCallback callback, object state)
System.ServiceModel.Channels (119)
System\ServiceModel\Channels\UdpChannelBase.cs (7)
320this.Cleanup(true, TimeSpan.Zero); 323protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 334protected override void OnOpen(TimeSpan timeout) 339protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 356protected override void OnClose(TimeSpan timeout) 372protected void Cleanup(bool aborting, TimeSpan timeout) 436public CloseAsyncResult(UdpChannelBase<T> channel, ChainedBeginHandler baseBeginClose, ChainedEndHandler baseEndClose, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\UdpChannelFactory.cs (2)
73protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 144protected override void OnOpen(TimeSpan timeout)
System\ServiceModel\Channels\UdpChannelListener.cs (10)
99protected override TimeSpan DefaultReceiveTimeout 107protected override TimeSpan DefaultSendTimeout 262protected override ChannelInterfaceType OnAcceptChannel(TimeSpan timeout) 271protected override IAsyncResult OnBeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state) 281protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 287protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 293protected override IAsyncResult OnBeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 326protected override void OnClose(TimeSpan timeout) 360protected override void OnOpen(TimeSpan timeout) 384protected override bool OnWaitForChannel(TimeSpan timeout)
System\ServiceModel\Channels\UdpConstants.cs (10)
28public static readonly TimeSpan ReceiveTimeout = TimeSpan.FromMinutes(1); 29public static readonly TimeSpan SendTimeout = TimeSpan.FromMinutes(1); 48public static readonly TimeSpan DelayLowerBoundTimeSpan = TimeSpan.Parse(DelayLowerBound, CultureInfo.InvariantCulture); 49public static readonly TimeSpan DelayUpperBoundTimeSpan = TimeSpan.Parse(DelayUpperBound, CultureInfo.InvariantCulture); 50public static readonly TimeSpan MaxDelayPerRetransmissionTimeSpan = TimeSpan.Parse(MaxDelayPerRetransmission, CultureInfo.InvariantCulture);
System\ServiceModel\Channels\UdpDuplexChannel.cs (14)
55public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 84public void Send(Message message, TimeSpan timeout) 99public Message Receive(TimeSpan timeout) 101if (timeout < TimeSpan.Zero) 115public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 117if (timeout < TimeSpan.Zero) 131public bool TryReceive(TimeSpan timeout, out Message message) 133if (timeout < TimeSpan.Zero) 142public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 144if (timeout < TimeSpan.Zero) 158public bool WaitForMessage(TimeSpan timeout) 160if (timeout < TimeSpan.Zero) 169public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 171if (timeout < TimeSpan.Zero)
System\ServiceModel\Channels\UdpOutputChannel.cs (14)
82internal TimeSpan InternalSendTimeout 175protected override IAsyncResult OnBeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 197protected override void OnSend(Message message, TimeSpan timeout) 216if (timeoutHelper.RemainingTime() <= TimeSpan.Zero) 294this.Cleanup(true, TimeSpan.Zero); 298protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 307protected override void OnClose(TimeSpan timeout) 318protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 329protected override void OnOpen(TimeSpan timeout) 423if (timeoutHelper.RemainingTime() <= TimeSpan.Zero) 433private void Cleanup(bool aborting, TimeSpan timeout) 649public SendAsyncResult(UdpOutputChannel channel, Message message, TimeSpan timeout, AsyncCallback callback, object state) 910if (this.timeoutHelper.RemainingTime() <= TimeSpan.Zero) 950public CloseAsyncResult(UdpOutputChannel channel, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\UdpReplyChannel.cs (17)
64public RequestContext ReceiveRequest(TimeSpan timeout) 66if (timeout < TimeSpan.Zero) 80public IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 82if (timeout < TimeSpan.Zero) 96public bool TryReceiveRequest(TimeSpan timeout, out RequestContext context) 98if (timeout < TimeSpan.Zero) 107public IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state) 109if (timeout < TimeSpan.Zero) 123public bool WaitForRequest(TimeSpan timeout) 125if (timeout < TimeSpan.Zero) 134public IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state) 136if (timeout < TimeSpan.Zero) 156private static RequestContext HelpReceiveRequest(IReplyChannel channel, TimeSpan timeout) 169private static IAsyncResult HelpBeginReceiveRequest(IReplyChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 179private static Exception CreateReceiveRequestTimedOutException(IReplyChannel channel, TimeSpan timeout) 195private TimeSpan timeout; 198public HelpReceiveRequestAsyncResult(IReplyChannel channel, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\UdpRequestContext.cs (3)
44protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 57protected override void OnClose(TimeSpan timeout) 66protected override void OnReply(Message message, TimeSpan timeout)
System\ServiceModel\Channels\UdpRetransmissionSettings.cs (24)
16TimeSpan delayLowerBound; 17TimeSpan delayUpperBound; 18TimeSpan maxDelayPerRetransmission; 35public UdpRetransmissionSettings(int maxUnicastRetransmitCount, int maxMulticastRetransmitCount, TimeSpan delayLowerBound, TimeSpan delayUpperBound, TimeSpan maxDelayPerRetransmission) 50if (delayLowerBound < TimeSpan.Zero) 52throw FxTrace.Exception.ArgumentOutOfRange("delayLowerBound", delayLowerBound, SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 55if (delayUpperBound < TimeSpan.Zero) 57throw FxTrace.Exception.ArgumentOutOfRange("delayUpperBound", delayUpperBound, SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 60if (maxDelayPerRetransmission < TimeSpan.Zero) 63SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 120public TimeSpan DelayLowerBound 128if (value < TimeSpan.Zero) 130throw FxTrace.Exception.ArgumentOutOfRange("value", value, SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 138public TimeSpan DelayUpperBound 146if (value < TimeSpan.Zero) 148throw FxTrace.Exception.ArgumentOutOfRange("value", value, SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 156public TimeSpan MaxDelayPerRetransmission 164if (value < TimeSpan.Zero) 166throw FxTrace.Exception.ArgumentOutOfRange("value", value, SR.ArgumentOutOfMinRange(TimeSpan.Zero)); 265bool TimeSpansEqual(TimeSpan ts1, TimeSpan ts2) 269return diff < TimeSpan.FromMilliseconds(1).Ticks || (max > 0 && diff / (double) max < 1e-3);
System\ServiceModel\Configuration\Properties.cs (12)
123properties.Add(new ConfigurationProperty("delayLowerBound", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00.050", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 124properties.Add(new ConfigurationProperty("delayUpperBound", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00.250", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); 125properties.Add(new ConfigurationProperty("maxDelayPerRetransmission", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00.500", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\UdpRetransmissionSettingsElement.cs (6)
44public TimeSpan DelayLowerBound 46get { return (TimeSpan)base[UdpTransportConfigurationStrings.DelayLowerBound]; } 53public TimeSpan DelayUpperBound 55get { return (TimeSpan)base[UdpTransportConfigurationStrings.DelayUpperBound]; } 62public TimeSpan MaxDelayPerRetransmission 64get { return (TimeSpan)base[UdpTransportConfigurationStrings.MaxDelayPerRetransmission]; }
System.ServiceModel.Discovery (166)
System\ServiceModel\Channels\UdpConstants.cs (4)
21public static readonly TimeSpan ReceiveTimeout = TimeSpan.FromMinutes(1); 22public static readonly TimeSpan SendTimeout = TimeSpan.FromMinutes(1);
System\ServiceModel\Discovery\AnnouncementClient.cs (4)
440void ICommunicationObject.Open(TimeSpan timeout) 452IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 472void ICommunicationObject.Close(TimeSpan timeout) 484IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Discovery\AnnouncementDispatcherAsyncResult.cs (1)
79public void Start(TimeSpan timeout, bool canCompleteSynchronously)
System\ServiceModel\Discovery\AnnouncementEndpoint.cs (2)
14TimeSpan maxAnnouncementDelay; 43public TimeSpan MaxAnnouncementDelay
System\ServiceModel\Discovery\AnnouncementSendsAsyncResult.cs (2)
23TimeSpan maxDelay, 36protected override IAsyncResult OnBeginSend(int index, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Discovery\AsyncOperationContext.cs (4)
17TimeSpan duration; 29internal AsyncOperationContext(UniqueId operationId, int maxResults, TimeSpan duration, object userState) 33Fx.Assert(duration > TimeSpan.Zero, "The duration parameter must be positive."); 54public TimeSpan Duration
System\ServiceModel\Discovery\AsyncOperationLifetimeManager.cs (3)
189public void Close(TimeSpan timeout) 198public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 233internal CloseAsyncResult(AsyncWaitHandle asyncWaitHandle, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Discovery\Configuration\AnnouncementEndpointElement.cs (6)
28public TimeSpan MaxAnnouncementDelay 32return (TimeSpan)base[ConfigurationStrings.MaxAnnouncementDelay]; 73typeof(TimeSpan), 74TimeSpan.Zero, 76new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\DiscoveryEndpointElement.cs (6)
27public TimeSpan MaxResponseDelay 31return (TimeSpan)base[ConfigurationStrings.MaxResponseDelay]; 87typeof(TimeSpan), 88TimeSpan.Zero, 90new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\FindCriteriaElement.cs (6)
74public TimeSpan Duration 78return (TimeSpan)base[ConfigurationStrings.Duration]; 148typeof(TimeSpan), 149TimeSpan.FromSeconds(20), 151new TimeSpanOrInfiniteValidator(TimeSpan.FromMilliseconds(1), TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\UdpAnnouncementEndpointElement.cs (4)
27public new TimeSpan MaxAnnouncementDelay 86typeof(TimeSpan), 89new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\Configuration\UdpDiscoveryEndpointElement.cs (4)
27public new TimeSpan MaxResponseDelay 102typeof(TimeSpan), 105new TimeSpanOrInfiniteValidator(TimeSpan.Zero, TimeSpan.MaxValue),
System\ServiceModel\Discovery\DiscoveryClient.cs (11)
26static TimeSpan defaultCloseDuration = TimeSpan.FromSeconds(60); 255void ICommunicationObject.Open(TimeSpan timeout) 269IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 290void ICommunicationObject.Close(TimeSpan timeout) 342IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 390if ((criteria.MaxResults == int.MaxValue) && (criteria.Duration.Equals(TimeSpan.MaxValue))) 1205internal CloseAsyncResult(DiscoveryClient client, TimeSpan timeout, AsyncCallback callback, object state) 1324internal FindAsyncOperationContext(UniqueId operationId, int maxResults, TimeSpan duration, object userState) 1362TimeSpan elaspedTime = DateTime.UtcNow.Subtract(StartedAt.Value); 1375internal ResolveAsyncOperationContext(UniqueId operationId, TimeSpan duration, object userState)
System\ServiceModel\Discovery\DiscoveryClientChannelBase.cs (10)
80protected override void OnOpen(TimeSpan timeout) 86protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 110protected override void OnClose(TimeSpan timeout) 118protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 145public TChannel BuildChannel(TimeSpan timeout) 181if (timeoutHelper.RemainingTime() == TimeSpan.Zero) 364void Cleanup(TimeSpan timeout) 447TimeSpan timeout, 631if (this.RemainingTime() == TimeSpan.Zero) 652public CloseAsyncResult(TChannel innerChannel, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Discovery\DiscoveryClientChannelFactory.cs (4)
114protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 124protected override void OnOpen(TimeSpan timeout) 129protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 147protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Discovery\DiscoveryClientDuplexChannel.cs (8)
35public override IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 41public override void Send(Message message, TimeSpan timeout) 47public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 57public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 62public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 82public Message Receive(TimeSpan timeout) 92public bool TryReceive(TimeSpan timeout, out Message message) 97public bool WaitForMessage(TimeSpan timeout)
System\ServiceModel\Discovery\DiscoveryClientOutputChannel.cs (2)
49public virtual IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 64public virtual void Send(Message message, TimeSpan timeout)
System\ServiceModel\Discovery\DiscoveryClientRequestChannel.cs (2)
49public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 64public Message Request(Message message, TimeSpan timeout)
System\ServiceModel\Discovery\DiscoveryDefaults.cs (7)
13public static readonly TimeSpan DiscoveryOperationDuration = TimeSpan.Parse(DiscoveryOperationDurationString, CultureInfo.InvariantCulture); 26public static readonly TimeSpan AppMaxDelay = TimeSpan.Parse(AppMaxDelayString, CultureInfo.InvariantCulture); 39udpBE.RetransmissionSettings.DelayLowerBound = TimeSpan.FromMilliseconds(50); 40udpBE.RetransmissionSettings.DelayUpperBound = TimeSpan.FromMilliseconds(250); 41udpBE.RetransmissionSettings.MaxDelayPerRetransmission = TimeSpan.FromMilliseconds(500);
System\ServiceModel\Discovery\DiscoveryEndpoint.cs (2)
35this.discoveryOperationContextExtension = new DiscoveryOperationContextExtension(TimeSpan.Zero, discoveryMode, discoveryVersion); 44public TimeSpan MaxResponseDelay
System\ServiceModel\Discovery\DiscoveryOperationContext.cs (1)
57public TimeSpan MaxResponseDelay
System\ServiceModel\Discovery\DiscoveryOperationContextExtension.cs (4)
13TimeSpan maxResponseDelay; 18: this(TimeSpan.Zero, ServiceDiscoveryMode.Adhoc, DiscoveryVersion.DefaultDiscoveryVersion) 22internal DiscoveryOperationContextExtension(TimeSpan maxResponseDelay, ServiceDiscoveryMode discoveryMode, DiscoveryVersion discoveryVersion) 32public TimeSpan MaxResponseDelay
System\ServiceModel\Discovery\FindCriteria.cs (5)
42TimeSpan duration; 135public TimeSpan Duration 143if (value.CompareTo(TimeSpan.Zero) <= 0) 300this.duration = TimeSpan.MaxValue; 381if (this.duration != TimeSpan.MaxValue)
System\ServiceModel\Discovery\IteratorAsyncResult.cs (4)
30protected TimeSpan OriginalTimeout 55protected void Start(TIteratorState iterState, TimeSpan timeout) 64protected TimeSpan RemainingTime() 267TimeSpan timeout,
System\ServiceModel\Discovery\OfflineAnnouncementChannelDispatcher.cs (18)
42protected override TimeSpan DefaultCloseTimeout 46return TimeSpan.FromMinutes(1); 50protected override TimeSpan DefaultOpenTimeout 54return TimeSpan.FromMinutes(1); 63protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 73protected override void OnClose(TimeSpan timeout) 78protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 88protected override void OnOpen(TimeSpan timeout) 121protected override TimeSpan DefaultCloseTimeout 125return TimeSpan.FromMinutes(1); 129protected override TimeSpan DefaultOpenTimeout 133return TimeSpan.FromMinutes(1); 146protected override void OnClose(TimeSpan timeout) 151protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 171protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 181protected override void OnOpen(TimeSpan timeout) 185public IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state) 206public bool WaitForChannel(TimeSpan timeout)
System\ServiceModel\Discovery\OnlineAnnouncementChannelDispatcher.cs (8)
58protected override TimeSpan DefaultCloseTimeout 62return TimeSpan.FromMinutes(1); 66protected override TimeSpan DefaultOpenTimeout 70return TimeSpan.FromMinutes(1); 112protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 143protected override void OnOpen(TimeSpan timeout) 158protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 168protected override void OnClose(TimeSpan timeout)
System\ServiceModel\Discovery\ProbeDuplexAsyncResult.cs (4)
275TimeSpan timeout, 305TimeSpan timeout, 359protected override IAsyncResult OnBeginSend(int index, TimeSpan timeout, AsyncCallback callback, object state) 399TimeSpan timeout,
System\ServiceModel\Discovery\RandomDelayQueuedSendsAsyncResult.cs (6)
29TimeSpan maxRandomDelay, 35Fx.Assert(maxRandomDelay >= TimeSpan.Zero, "The maxRandomDelay parameter must be non negative."); 40this.doDelay = maxRandomDelay > TimeSpan.Zero; 84protected void Start(TimeSpan timeout) 91TimeSpan timeout, 102(thisPtr, t, c, s) => thisPtr.itemQueue.BeginDequeue(TimeSpan.MaxValue, c, s),
System\ServiceModel\Discovery\RandomDelaySendsAsyncResult.cs (9)
14TimeSpan maxDelay; 36protected RandomDelaySendsAsyncResult(int numSends, TimeSpan maxDelay, AsyncCallback callback, object state) 41protected RandomDelaySendsAsyncResult(int numSends, TimeSpan maxDelay, ICommunicationObject channel, AsyncCallback callback, object state) 46protected RandomDelaySendsAsyncResult(int numSends, TimeSpan maxDelay, ICommunicationObject channel, Random random, AsyncCallback callback, object state) 50Fx.Assert(maxDelay >= TimeSpan.Zero, "The maxDelay must be non negative."); 65if (maxDelay != TimeSpan.Zero) 77public void Start(TimeSpan timeout) 85if (this.maxDelay == TimeSpan.Zero) 321protected abstract IAsyncResult OnBeginSend(int index, TimeSpan timeout, AsyncCallback callback, object state);
System\ServiceModel\Discovery\ResolveCriteria.cs (7)
17static TimeSpan defaultDuration = TimeSpan.FromSeconds(20); 20TimeSpan duration; 57public TimeSpan Duration 65if (value.CompareTo(TimeSpan.Zero) <= 0) 111this.duration = TimeSpan.MaxValue; 149if (this.duration != TimeSpan.MaxValue)
System\ServiceModel\Discovery\ResolveDuplexAsyncResult.cs (2)
245TimeSpan timeout, 299protected override IAsyncResult OnBeginSend(int index, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Discovery\SerializationUtility.cs (6)
222public static TimeSpan ReadDuration(XmlReader reader) 224TimeSpan timeout = TimeSpan.MaxValue; 234if (timeout <= TimeSpan.Zero) 243public static TimeSpan ReadTimespan(string timespanString, string exceptionString) 245TimeSpan result;
System.ServiceModel.Internals (118)
System\Runtime\AsyncWaitHandle.cs (6)
36public bool WaitAsync(Action<object, TimeoutException> callback, object state, TimeSpan timeout) 57if (timeout != TimeSpan.MaxValue) 98public bool Wait(TimeSpan timeout) 123if (timeout == TimeSpan.MaxValue) 221TimeSpan originalTimeout; 259public void SetTimer(Action<object> callback, object state, TimeSpan timeout)
System\Runtime\BackoffTimeoutHelper.cs (24)
12readonly static int maxSkewMilliseconds = (int)(IOThreadTimer.SystemTimeResolutionTicks / TimeSpan.TicksPerMillisecond); 14readonly static TimeSpan defaultInitialWaitTime = TimeSpan.FromMilliseconds(1); 15readonly static TimeSpan defaultMaxWaitTime = TimeSpan.FromMinutes(1); 18TimeSpan maxWaitTime; 19TimeSpan waitTime; 24TimeSpan originalTimeout; 26internal BackoffTimeoutHelper(TimeSpan timeout) 31internal BackoffTimeoutHelper(TimeSpan timeout, TimeSpan maxWaitTime) 36internal BackoffTimeoutHelper(TimeSpan timeout, TimeSpan maxWaitTime, TimeSpan initialWaitTime) 44public TimeSpan OriginalTimeout 52void Reset(TimeSpan timeout, TimeSpan initialWaitTime) 54if (timeout == TimeSpan.MaxValue) 90TimeSpan backoffTime = WaitTimeWithDrift(); 101TimeSpan WaitTimeWithDrift() 117waitTime = TimeSpan.FromTicks(waitTime.Ticks * 2); 122TimeSpan remainingTime = this.deadline - DateTime.UtcNow; 126if (this.waitTime < TimeSpan.Zero) 128this.waitTime = TimeSpan.Zero;
System\Runtime\Collections\ObjectCache.cs (2)
44this.idleTimeoutEnabled = (settings.IdleTimeout != TimeSpan.MaxValue); 47this.leaseTimeoutEnabled = (settings.LeaseTimeout != TimeSpan.MaxValue);
System\Runtime\Collections\ObjectCacheSettings.cs (10)
10TimeSpan idleTimeout; 11TimeSpan leaseTimeout; 16static TimeSpan DefaultIdleTimeout = TimeSpan.FromMinutes(2); 17static TimeSpan DefaultLeaseTimeout = TimeSpan.FromMinutes(5); 53public TimeSpan IdleTimeout 61Fx.Assert(value >= TimeSpan.Zero, "caller should validate cache limit is non-negative"); 66public TimeSpan LeaseTimeout 74Fx.Assert(value >= TimeSpan.Zero, "caller should validate cache limit is non-negative");
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (2)
441TimeSpan FailureBlackout = TimeSpan.FromMinutes(FailureBlackoutDuration);
System\Runtime\InputQueue.cs (11)
76public IAsyncResult BeginDequeue(TimeSpan timeout, AsyncCallback callback, object state) 114public IAsyncResult BeginWaitForItem(TimeSpan timeout, AsyncCallback callback, object state) 147public T Dequeue(TimeSpan timeout) 160public bool Dequeue(TimeSpan timeout, out T value) 393public bool WaitForItem(TimeSpan timeout) 805public AsyncQueueReader(InputQueue<T> inputQueue, TimeSpan timeout, AsyncCallback callback, object state) 813if (timeout != TimeSpan.MaxValue) 869public AsyncQueueWaiter(TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state) 871if (timeout != TimeSpan.MaxValue) 1034public bool Wait(TimeSpan timeout, out T value) 1096public bool Wait(TimeSpan timeout)
System\Runtime\IOThreadCancellationTokenSource.cs (3)
13readonly TimeSpan timeout; 18public IOThreadCancellationTokenSource(TimeSpan timeout) 25: this(TimeSpan.FromMilliseconds(timeout))
System\Runtime\IOThreadTimer.cs (4)
87return 15 * TimeSpan.TicksPerMillisecond; 95public void Set(TimeSpan timeFromNow) 97if (timeFromNow != TimeSpan.MaxValue) 116const long maxTimeToWaitForMoreTimers = 1000 * TimeSpan.TicksPerMillisecond;
System\Runtime\TaskExtensions.cs (4)
141public static bool Wait<TException>(this Task task, TimeSpan timeout) 145if (timeout == TimeSpan.MaxValue) 160public static void Wait(this Task task, TimeSpan timeout, Action<Exception, TimeSpan, string> exceptionConverter, string operationType)
System\Runtime\ThreadNeutralSemaphore.cs (4)
72public bool EnterAsync(TimeSpan timeout, FastAsyncCallback callback, object state) 139public void Enter(TimeSpan timeout) 148public bool TryEnter(TimeSpan timeout) 176internal static TimeoutException CreateEnterTimedOutException(TimeSpan timeout)
System\Runtime\Ticks.cs (4)
29return checked((long)milliseconds * TimeSpan.TicksPerMillisecond); 34return checked((int)(ticks / TimeSpan.TicksPerMillisecond)); 37public static long FromTimeSpan(TimeSpan duration) 42public static TimeSpan ToTimeSpan(long ticks)
System\Runtime\TimeoutHelper.cs (44)
14TimeSpan originalTimeout; 15public static readonly TimeSpan MaxWait = TimeSpan.FromMilliseconds(Int32.MaxValue); 17public TimeoutHelper(TimeSpan timeout) 19Fx.Assert(timeout >= TimeSpan.Zero, "timeout must be non-negative"); 23this.deadlineSet = (timeout == TimeSpan.MaxValue); 26public TimeSpan OriginalTimeout 31public static bool IsTooLarge(TimeSpan timeout) 33return (timeout > TimeoutHelper.MaxWait) && (timeout != TimeSpan.MaxValue); 36public static TimeSpan FromMilliseconds(int milliseconds) 40return TimeSpan.MaxValue; 44return TimeSpan.FromMilliseconds(milliseconds); 48public static int ToMilliseconds(TimeSpan timeout) 50if (timeout == TimeSpan.MaxValue) 57if (ticks / TimeSpan.TicksPerMillisecond > int.MaxValue) 65public static TimeSpan Min(TimeSpan val1, TimeSpan val2) 77public static TimeSpan Add(TimeSpan timeout1, TimeSpan timeout2) 82public static DateTime Add(DateTime time, TimeSpan timeout) 84if (timeout >= TimeSpan.Zero && DateTime.MaxValue - time <= timeout) 88if (timeout <= TimeSpan.Zero && DateTime.MinValue - time >= timeout) 95public static DateTime Subtract(DateTime time, TimeSpan timeout) 97return Add(time, TimeSpan.Zero - timeout); 100public static TimeSpan Divide(TimeSpan timeout, int factor) 102if (timeout == TimeSpan.MaxValue) 104return TimeSpan.MaxValue; 110public TimeSpan RemainingTime() 119return TimeSpan.MaxValue; 123TimeSpan remaining = this.deadline - DateTime.UtcNow; 124if (remaining <= TimeSpan.Zero) 126return TimeSpan.Zero; 135public TimeSpan ElapsedTime() 147public static void ThrowIfNegativeArgument(TimeSpan timeout) 152public static void ThrowIfNegativeArgument(TimeSpan timeout, string argumentName) 154if (timeout < TimeSpan.Zero) 160public static void ThrowIfNonPositiveArgument(TimeSpan timeout) 165public static void ThrowIfNonPositiveArgument(TimeSpan timeout, string argumentName) 167if (timeout <= TimeSpan.Zero) 174public static bool WaitOne(WaitHandle waitHandle, TimeSpan timeout) 177if (timeout == TimeSpan.MaxValue)
System.ServiceModel.Routing (20)
System\ServiceModel\Channels\SynchronousSendBindingElement.cs (12)
80protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 139protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 159public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 169public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 174public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 199public Message Receive(TimeSpan timeout) 209public bool TryReceive(TimeSpan timeout, out Message message) 214public bool WaitForMessage(TimeSpan timeout) 249public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 271public void Send(Message message, TimeSpan timeout) 316public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 338public Message Request(Message message, TimeSpan timeout)
System\ServiceModel\Routing\ProcessMessagesAsyncResult.cs (1)
35public ProcessMessagesAsyncResult(Message message, RoutingService service, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Routing\RoutingChannelExtension.cs (4)
56public TimeSpan OperationTimeout 126public abstract IAsyncResult BeginShutdown(RoutingService service, TimeSpan timeout, AsyncCallback callback, object state); 202public void DoneReceiving(TimeSpan closeTimeout) 279public override IAsyncResult BeginShutdown(RoutingService service, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Routing\RoutingService.cs (2)
133TimeSpan timeout = channelDispatcher.TransactionTimeout; 136if (timeout > TimeSpan.Zero)
System\ServiceModel\Routing\SessionChannels.cs (1)
43public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
System.ServiceModel.WasHosting (2)
System\ServiceModel\WasHosting\BaseAppDomainProtocolHandler.cs (2)
23public readonly static TimeSpan DefaultStopTimeout = TimeSpan.FromSeconds(30);
System.ServiceModel.Web (12)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
515TimeSpan ts = TimeZone.CurrentTimeZone.GetUtcOffset(dateTime.ToLocalTime());
System\ServiceModel\Dispatcher\HelpPage.cs (1)
102HttpContext.Current.Response.Cache.SetMaxAge(TimeSpan.MaxValue);
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (2)
106else if (parameterType == typeof(TimeSpan)) 110return default(TimeSpan);
System\ServiceModel\Dispatcher\QueryStringConverter.cs (7)
46this.defaultSupportedQueryStringTypes.Add(typeof(TimeSpan), null); 118if (parameterType == typeof(TimeSpan)) 121TimeSpan result; 122if (!TimeSpan.TryParse(parameter, out result)) 124result = parameter == null ? default(TimeSpan) : XmlConvert.ToTimeSpan(parameter); 217if (parameterType == typeof(TimeSpan)) 219return XmlConvert.ToString((TimeSpan) parameter);
System\ServiceModel\Web\IncomingWebRequestContext.cs (1)
192if (ticksDifference < TimeSpan.TicksPerSecond)
System.Transactions (59)
System\Transactions\CommittableTransaction.cs (2)
34TimeSpan timeout 50TimeSpan timeout
System\Transactions\Configuration\ConfigurationStrings.cs (2)
31static internal bool IsValidTimeSpan(TimeSpan span) 33return (span >= TimeSpan.Zero);
System\Transactions\Configuration\DefaultSettingsSection.cs (5)
41public TimeSpan Timeout 43get { return (TimeSpan)base[ConfigurationStrings.Timeout]; } 62typeof(TimeSpan), 65new TimeSpanValidator( TimeSpan.Zero, TimeSpan.MaxValue ),
System\Transactions\Configuration\MachineSettingsSection.cs (5)
33public TimeSpan MaxTimeout 36get { return (TimeSpan)base[ConfigurationStrings.MaxTimeout]; } 54typeof(TimeSpan), 57new TimeSpanValidator( TimeSpan.Zero, TimeSpan.MaxValue ),
System\Transactions\InternalTransaction.cs (1)
319internal InternalTransaction( TimeSpan timeout, CommittableTransaction committableTransaction )
System\Transactions\Oletx\DTCTransactionManager.cs (1)
160TimeSpan timeout
System\Transactions\Oletx\OletxTransactionManager.cs (1)
19TimeSpan timeoutProperty;
System\Transactions\Transaction.cs (2)
1545lease.InitialLeaseTime = TimeSpan.FromMinutes(leaseLifetime); 1546lease.RenewOnCallTime = TimeSpan.FromMinutes(leaseLifetime);
System\Transactions\TransactionManager.cs (10)
406private static TimeSpan _defaultTimeout; 407public static TimeSpan DefaultTimeout 447private static TimeSpan _maximumTimeout; 448public static TimeSpan MaximumTimeout 467TimeSpan temp = MachineSettings.MaxTimeout; 596internal static TimeSpan ValidateTimeout( TimeSpan transactionTimeout ) 598if ( transactionTimeout < TimeSpan.Zero ) 603if ( TransactionManager.MaximumTimeout != TimeSpan.Zero ) 605if ( transactionTimeout > TransactionManager.MaximumTimeout || transactionTimeout == TimeSpan.Zero )
System\Transactions\TransactionOptions.cs (2)
10private TimeSpan timeout; 13public TimeSpan Timeout
System\Transactions\TransactionScope.cs (20)
124public TransactionScope(TransactionScopeOption scopeOption, TimeSpan scopeTimeout) 132TimeSpan scopeTimeout, 146TimeSpan txTimeout = TransactionManager.ValidateTimeout( scopeTimeout ); 156if ( (null != this.expectedCurrent) && (null == this.committableTransaction) && (TimeSpan.Zero != scopeTimeout) ) 163TimeSpan.Zero 229TimeSpan scopeTimeout = transactionOptions.Timeout; 253if ( (null != this.expectedCurrent) && (null == this.committableTransaction) && (TimeSpan.Zero != scopeTimeout) ) 260TimeSpan.Zero 320TimeSpan scopeTimeout = transactionOptions.Timeout; 346if ( (null != this.expectedCurrent) && (null == this.committableTransaction) && (TimeSpan.Zero != scopeTimeout) ) 353TimeSpan.Zero 420TimeSpan.Zero, 432public TransactionScope(Transaction transactionToUse, TimeSpan scopeTimeout) 440TimeSpan scopeTimeout, 472TimeSpan scopeTimeout, 541TimeSpan scopeTimeout, 554if ( TimeSpan.Zero != scopeTimeout ) 560TimeSpan.Zero 1344private void ValidateScopeTimeout( string paramName, TimeSpan scopeTimeout ) 1346if ( scopeTimeout < TimeSpan.Zero )
System\Transactions\TransactionState.cs (3)
2934TimeSpan newTimeout; 2938newTimeout = TimeSpan.Zero; 2943if ( newTimeout <= TimeSpan.Zero )
System\Transactions\TransactionTable.cs (5)
193internal long TimeoutTicks( TimeSpan timeout ) 195if ( timeout != TimeSpan.Zero ) 200long timeoutTicks = ((timeout.Ticks / TimeSpan.TicksPerMillisecond) >> 212internal TimeSpan RecalcTimeout( InternalTransaction tx ) 214return TimeSpan.FromMilliseconds( (tx.AbsoluteTimeout - this.ticks) * this.timerInterval );
System.Web (330)
Abstractions\HttpCachePolicyBase.cs (2)
79public virtual void SetMaxAge(TimeSpan delta) { 99public virtual void SetProxyMaxAge(TimeSpan delta) {
Abstractions\HttpCachePolicyWrapper.cs (2)
79public override void SetMaxAge(TimeSpan delta) { 99public override void SetProxyMaxAge(TimeSpan delta) {
Cache\cache.cs (8)
49out object expensiveObject, out CacheDependency dependency, out DateTime absoluteExpiration, out TimeSpan slidingExpiration); 182public static readonly TimeSpan NoSlidingExpiration = TimeSpan.Zero; 366TimeSpan slidingExpiration; 421public void Insert(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration) { 435TimeSpan slidingExpiration, 456TimeSpan slidingExpiration, 499TimeSpan slidingExpiration,
Cache\CacheDependency.cs (1)
62static readonly TimeSpan FUTURE_FILETIME_BUFFER = new TimeSpan(0, 1, 0); // See VSWhidbey 400917
Cache\CacheEntry.cs (6)
87static readonly TimeSpan OneYear = new TimeSpan(365, 0, 0, 0); 109TimeSpan _slidingExpiration; /* expiration interval */ 133TimeSpan slidingExpiration, 144if (slidingExpiration < TimeSpan.Zero || OneYear < slidingExpiration) { 162if (_slidingExpiration > TimeSpan.Zero) { 201internal TimeSpan SlidingExpiration {
Cache\OutputCache.cs (2)
656DateTime absExp, TimeSpan slidingExp, 768DateTime absExp, TimeSpan slidingExp) {
Cache\SqlCacheDependency.cs (1)
605internal static TimeSpan OneSec = new TimeSpan(0, 0, 1);
CachedPathData.cs (6)
36private static TimeSpan s_urlMetadataSlidingExpiration = HostingEnvironmentSection.DefaultUrlMetadataSlidingExpiration; 75TimeSpan slidingExp = section.UrlMetadataSlidingExpiration; 76if (slidingExp == TimeSpan.Zero) { 82else if (slidingExp == TimeSpan.MaxValue) { 268TimeSpan slidingExpiration = cacheEntryIsNotRemovable ? Cache.NoSlidingExpiration : UrlMetadataSlidingExpiration; 633internal static TimeSpan UrlMetadataSlidingExpiration {
Compilation\BuildResult.cs (3)
260internal virtual TimeSpan MemoryCacheSlidingExpiration { 996internal override TimeSpan MemoryCacheSlidingExpiration { 998return TimeSpan.FromMinutes(5);
Configuration\AnonymousIdentificationSection.cs (4)
63typeof(TimeSpan), 64TimeSpan.FromMinutes(100000.0), 133public TimeSpan CookieTimeout { 135return (TimeSpan)base[_propCookieTimeout];
Configuration\BufferModeSettings.cs (10)
65typeof(TimeSpan), 66TimeSpan.FromSeconds(1), 73typeof(TimeSpan), 74TimeSpan.Zero, 103int urgentFlushThreshold, TimeSpan regularFlushInterval, 104TimeSpan urgentFlushInterval, int maxBufferThreads) 171public TimeSpan RegularFlushInterval { 173return (TimeSpan)base[_propRegularFlushInterval]; 182public TimeSpan UrgentFlushInterval { 184return (TimeSpan)base[_propUrgentFlushInterval];
Configuration\CacheSection.cs (4)
39internal static TimeSpan DefaultPrivateBytesPollTime = new TimeSpan(0, 2, 0); 98typeof(TimeSpan), 221public TimeSpan PrivateBytesPollTime { 223return (TimeSpan)base[_propPrivateBytesPollTime];
Configuration\CompilationSection.cs (4)
119typeof(TimeSpan), 120TimeSpan.FromMinutes(15.0), 326public TimeSpan BatchTimeout { 328return (TimeSpan)base[_propBatchTimeout];
Configuration\FormsAuthenticationConfiguration.cs (6)
138typeof(TimeSpan), 139TimeSpan.FromMinutes(30.0), 141new TimeSpanValidator(TimeSpan.FromMinutes(1), TimeSpan.MaxValue), 290public TimeSpan Timeout { 292return (TimeSpan)base[_propTimeout];
Configuration\HealthMonitoringSection.cs (6)
261typeof(TimeSpan), 262TimeSpan.FromSeconds((long)DEFAULT_HEARTBEATINTERVAL), 264new TimeSpanValidator(TimeSpan.Zero, TimeSpan.FromSeconds(MAX_HEARTBEAT_VALUE)), 327public TimeSpan HeartbeatInterval { 329return (TimeSpan)base[_propHeartbeatInterval];
Configuration\HealthMonitoringSectionHelper.cs (1)
457internal TimeSpan _minInterval; // in seconds
Configuration\HostingEnvironmentSection.cs (16)
22internal static readonly TimeSpan DefaultIdleTimeout = TimeSpan.MaxValue; // default is Infinite 23internal static readonly TimeSpan DefaultUrlMetadataSlidingExpiration = TimeSpan.FromMinutes(1); //default is 00:01:00 30typeof(TimeSpan), 37typeof(TimeSpan), 38TimeSpan.FromSeconds((double)DefaultShutdownTimeout), 46typeof(TimeSpan), 49new TimeSpanValidator(TimeSpan.Zero, TimeSpan.MaxValue), 85public TimeSpan ShutdownTimeout { 87return (TimeSpan)base[_propShutdownTimeout]; 97public TimeSpan IdleTimeout { 99return (TimeSpan)base[_propIdleTimeout]; 119public TimeSpan UrlMetadataSlidingExpiration { 121return (TimeSpan)base[_propUrlMetadataSlidingExpiration];
Configuration\HttpCapabilitiesEvaluator.cs (3)
36internal TimeSpan _cachetime; 65public TimeSpan CacheTime { 144_cachetime = TimeSpan.FromSeconds(60); // one minute default expiry
Configuration\HttpCapabilitiesSectionHandler.cs (1)
267capabilitiesEvaluator.CacheTime = TimeSpan.FromSeconds(cacheTime);
Configuration\HttpRuntimeSection.cs (17)
59private TimeSpan executionTimeoutCache; 77typeof(TimeSpan), 78TimeSpan.FromSeconds((double)DefaultExecutionTimeout), 144typeof(TimeSpan), 145TimeSpan.Zero, 151typeof(TimeSpan), 152TimeSpan.FromSeconds((double)DefaultShutdownTimeout), 158typeof(TimeSpan), 159TimeSpan.FromSeconds((double)DefaultDelayNotificationTimeout), 400public TimeSpan ExecutionTimeout { 403executionTimeoutCache = (TimeSpan)base[_propExecutionTimeout]; 595public TimeSpan DefaultRegexMatchTimeout { 597return (TimeSpan)base[_propDefaultRegexMatchTimeout]; 606public TimeSpan ShutdownTimeout { 608return (TimeSpan)base[_propShutdownTimeout]; 617public TimeSpan DelayNotificationTimeout { 619return (TimeSpan)base[_propDelayNotificationTimeout];
Configuration\MembershipSection.cs (6)
96typeof(TimeSpan), 97TimeSpan.FromMinutes(15.0), 99new TimeSpanValidator(TimeSpan.FromMinutes(1), TimeSpan.MaxValue), 154public TimeSpan UserIsOnlineTimeWindow { 156return (TimeSpan)base[_propUserIsOnlineTimeWindow];
Configuration\MetabaseServerConfig.cs (1)
217TimeSpan slidingExpiration = CachedPathData.UrlMetadataSlidingExpiration;
Configuration\PagesSection.cs (4)
147typeof(TimeSpan), 148TimeSpan.FromSeconds((double)Page.DefaultAsyncTimeoutSeconds), 629public TimeSpan AsyncTimeout { 631return (TimeSpan)base[_propAsyncTimeout];
Configuration\ProcessHostMapPath.cs (1)
215TimeSpan slidingExpiration = CachedPathData.UrlMetadataSlidingExpiration;
Configuration\ProcessModelSection.cs (32)
79internal static TimeSpan DefaultClientConnectedCheck = new TimeSpan(0, 0, 5); 86typeof(TimeSpan), 87TimeSpan.MaxValue, 93typeof(TimeSpan), 94TimeSpan.MaxValue, 100typeof(TimeSpan), 101TimeSpan.FromSeconds(5), 140typeof(TimeSpan), 151typeof(TimeSpan), 152TimeSpan.FromMinutes(3), 158typeof(TimeSpan), 159TimeSpan.FromMinutes(3), 200typeof(TimeSpan), 201TimeSpan.MaxValue, 207typeof(TimeSpan), 208TimeSpan.MaxValue, 277public TimeSpan Timeout { 279return (TimeSpan)base[_propTimeout]; 288public TimeSpan IdleTimeout { 290return (TimeSpan)base[_propIdleTimeout]; 300public TimeSpan ShutdownTimeout { 302return (TimeSpan)base[_propShutdownTimeout]; 407public TimeSpan ClientConnectedCheck { 409return (TimeSpan)base[_propClientConnectedCheck]; 439public TimeSpan ResponseDeadlockInterval { 441return (TimeSpan)base[_propResponseDeadlockInterval]; 451public TimeSpan ResponseRestartDeadlockInterval { 453return (TimeSpan)base[_propResponseRestartDeadlockInterval]; 529public TimeSpan PingFrequency { 531return (TimeSpan)base[_propPingFrequency]; 540public TimeSpan PingTimeout { 542return (TimeSpan)base[_propPingTimeout];
Configuration\ProfileSettings.cs (5)
50typeof(TimeSpan), 80int maxLimit, TimeSpan minInterval) 88int maxLimit, TimeSpan minInterval, string custom) 139public TimeSpan MinInterval { 141return (TimeSpan)base[_propMinInterval];
Configuration\RegexMatchTimeoutValidator.cs (4)
8private static readonly TimeSpan _minValue = TimeSpan.Zero; 9private static readonly TimeSpan _maxValue = TimeSpan.FromMilliseconds(Int32.MaxValue - 1); // from Regex.cs
Configuration\RoleManagerSection.cs (4)
113typeof(TimeSpan), 114TimeSpan.FromMinutes(30.0), 248public TimeSpan CookieTimeout { 250return (TimeSpan)base[_propCookieTimeout];
Configuration\RuleSettings.cs (7)
27internal static TimeSpan DEFAULT_MIN_INTERVAL = TimeSpan.Zero; 76typeof(TimeSpan), 111public RuleSettings(String name, String eventName, String provider, String profile, int minInstances, int maxLimit, TimeSpan minInterval) 119public RuleSettings(String name, String eventName, String provider, String profile, int minInstances, int maxLimit, TimeSpan minInterval, string custom) 210public TimeSpan MinInterval { 212return (TimeSpan)base[_propMinInterval];
Configuration\SessionStateSection.cs (18)
91typeof(TimeSpan), 95TimeSpan.FromSeconds((long) 114typeof(TimeSpan), 118TimeSpan.FromSeconds((long) 127typeof(TimeSpan), 128TimeSpan.FromSeconds(0), 153typeof(TimeSpan), 154TimeSpan.FromMinutes((long)SessionStateModule.TIMEOUT_DEFAULT), 156new TimeSpanValidator(TimeSpan.FromMinutes(1), TimeSpan.MaxValue), 271public TimeSpan StateNetworkTimeout { 273return (TimeSpan)base[_propStateNetworkTimeout]; 292public TimeSpan SqlCommandTimeout { 294return (TimeSpan)base[_propSqlCommandTimeout]; 303public TimeSpan SqlConnectionRetryInterval { 305return (TimeSpan)base[_propSqlConnectionRetryInterval]; 351public TimeSpan Timeout { 353return (TimeSpan)base[_propTimeout];
FileChangesMonitor.cs (1)
909if (fad.UtcLastAccessTime.TimeOfDay == TimeSpan.Zero) {
Handlers\AssemblyResourceLoader.cs (1)
640cachePolicy.SetExpires(DateTime.Now + TimeSpan.FromDays(365));
Hosting\ApplicationManager.cs (1)
1003if (httpRuntimeSection.DefaultRegexMatchTimeout != TimeSpan.Zero) {
Hosting\HostingEnvironment.cs (1)
426TimeSpan idleTimeout = (hostEnvConfig != null) ? hostEnvConfig.IdleTimeout : HostingEnvironmentSection.DefaultIdleTimeout;
Hosting\MapPathBasedVirtualPathProvider.cs (1)
110TimeSpan slidingExp = CachedPathData.UrlMetadataSlidingExpiration;
Hosting\SuspendManager.cs (2)
19private static readonly TimeSpan _suspendMethodTimeout = TimeSpan.FromSeconds(5);
HttpCachePolicy.cs (31)
198internal readonly TimeSpan _maxAge; 200internal readonly TimeSpan _proxyMaxAge; 203internal readonly TimeSpan _slidingDelta; 235TimeSpan maxAge, 237TimeSpan proxyMaxAge, 240TimeSpan slidingDelta, 386internal TimeSpan MaxAge {get {return _maxAge ;}} 388internal TimeSpan ProxyMaxAge {get {return _proxyMaxAge ;}} 394internal TimeSpan SlidingDelta {get {return _slidingDelta ;}} 446static TimeSpan s_oneYear = new TimeSpan(TimeSpan.TicksPerDay * 365); 468TimeSpan _maxAge; 470TimeSpan _proxyMaxAge; 474TimeSpan _slidingDelta; 532_maxAge = TimeSpan.Zero; 534_proxyMaxAge = TimeSpan.Zero; 537_slidingDelta = TimeSpan.Zero; 785_slidingDelta = TimeSpan.Zero; 794_slidingDelta = TimeSpan.Zero; 979TimeSpan age, maxAge, proxyMaxAge; 1014if (maxAge < TimeSpan.Zero) { 1015maxAge = TimeSpan.Zero; 1024if (proxyMaxAge < TimeSpan.Zero) { 1025proxyMaxAge = TimeSpan.Zero; 1482public void SetMaxAge(TimeSpan delta) { 1483if (delta < TimeSpan.Zero) { 1502public TimeSpan GetMaxAge() { 1518public void SetProxyMaxAge(TimeSpan delta) { 1519if (delta < TimeSpan.Zero) { 1534public TimeSpan GetProxyMaxAge() { 1693utcDate = new DateTime(utcDate.Ticks - (utcDate.Ticks % TimeSpan.TicksPerSecond));
HttpContext.cs (2)
1644internal TimeSpan Timeout { 1647return TimeSpan.FromTicks(ticks);
HttpRuntime.cs (4)
1910TimeSpan elapsed = DateTime.UtcNow.Subtract(context.WorkerRequest.GetStartTime()); 1911long milli = elapsed.Ticks / TimeSpan.TicksPerMillisecond; 2399TimeSpan elapsed = DateTime.UtcNow.Subtract(begin); 2400long milli = elapsed.Ticks / TimeSpan.TicksPerMillisecond;
IdleTimeoutMonitor.cs (4)
18private TimeSpan _idleTimeout; // the timeout value 21private readonly TimeSpan _timerPeriod = new TimeSpan(0, 0, 30); // 30 secs 23internal IdleTimeoutMonitor(TimeSpan timeout) { 58if (_idleTimeout == TimeSpan.MaxValue)
Management\AppDomainResourcePerfCounters.cs (2)
72private TimeSpan _TotalCPUTime; 118TimeSpan newTotalCPUTime = AppDomain.CurrentDomain.MonitoringTotalProcessorTime;
Management\webeventbuffer.cs (2)
145if (bufferModeInfo.RegularFlushInterval == TimeSpan.MaxValue) { 157if (bufferModeInfo.UrgentFlushInterval == TimeSpan.MaxValue) {
Management\WebEvents.cs (7)
2053static TimeSpan TS_ONE_SECOND = new TimeSpan(0, 0, 1); 2190static TimeSpan TS_ONE_SECOND = new TimeSpan(0, 0, 1); 2212TimeSpan tsDiff = now - _lastFired; 2292if (_ruleInfo._minInterval == TimeSpan.Zero) { 2436TimeSpan interval = _sectionHelper.HealthMonitoringSection.HeartbeatInterval; 2438if (interval == TimeSpan.Zero) { 2447TimeSpan.Zero, interval);
OutputCacheModule.cs (3)
765age = (int) ((context.UtcTimestamp.Ticks - settings.UtcTimestampCreated.Ticks) / TimeSpan.TicksPerSecond); 785fresh = (int) ((settings.UtcExpires.Ticks - context.UtcTimestamp.Ticks) / TimeSpan.TicksPerSecond); 1238TimeSpan slidingDelta = Cache.NoSlidingExpiration;
ProcessInfo.cs (4)
106public TimeSpan Age { get { return _Age;}} 131private TimeSpan _Age; 142public void SetAll (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, 158public ProcessInfo (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status,
ProcessModelInfo.cs (2)
40TimeSpan age = DateTime.Now.Subtract(startTime); 76TimeSpan age = DateTime.Now.Subtract(startTime);
RequestQueue.cs (3)
25private TimeSpan _clientConnectedTime; 42private readonly TimeSpan _timerPeriod = new TimeSpan(0, 0, 10); // 10 seconds 132internal RequestQueue(int minExternFreeThreads, int minLocalFreeThreads, int queueLimit, TimeSpan clientConnectedTime) {
RequestTimeoutManager.cs (1)
20private readonly TimeSpan _timerPeriod = new TimeSpan(0, 0, 15); // 15 second init precision
Security\ADMembershipProvider.cs (5)
2641TimeSpan diffTime = currentTime.Subtract(lastBadPasswordAnswerTime); 2737TimeSpan diffTime = currentTime.Subtract(lockoutTime); 2771TimeSpan diffTime = currentTime.Subtract(badPasswordAnswerLockoutTime); 3445private TimeSpan adLockoutDuration; 3898internal TimeSpan ADLockoutDuration
Security\FileAuthorizationModule.cs (1)
269TimeSpan slidingExp = CachedPathData.UrlMetadataSlidingExpiration;
Security\FormsAuthentication.cs (4)
620TimeSpan ticketAge = utcNow - tOld.IssueDateUtc; 621TimeSpan ticketRemainingLifetime = tOld.ExpirationUtc - utcNow; 629TimeSpan originalTicketTotalLifetime = tOld.ExpirationUtc - tOld.IssueDateUtc; 672public static TimeSpan Timeout { get { Initialize(); return new TimeSpan(0, _Timeout, 0); } }
Security\Membership.cs (1)
478TimeSpan timeWindow = settings.UserIsOnlineTimeWindow;
Security\RolePrincipal.cs (2)
279TimeSpan t1 = dtN - _IssueDate; 280TimeSpan t2 = _ExpireDate - dtN;
State\InProcStateClientManager.cs (4)
106out TimeSpan lockAge, 114lockAge = TimeSpan.Zero; 199out TimeSpan lockAge, 209out TimeSpan lockAge,
State\ISessionStateStore.cs (2)
60out TimeSpan lockAge, 83out TimeSpan lockAge,
State\OutOfProcStateClientManager.cs (6)
436out TimeSpan lockAge, 447lockAge = TimeSpan.Zero; 487lockAge = TimeSpan.Zero; 496lockAge = TimeSpan.Zero; 520out TimeSpan lockAge, 533out TimeSpan lockAge,
State\SessionStateItemCollection.cs (1)
187t=typeof(TimeSpan);
State\SessionStateModule.cs (8)
125static readonly TimeSpan LOCKED_ITEM_POLLING_DELTA = new TimeSpan(250 * TimeSpan.TicksPerMillisecond); 127static readonly TimeSpan DEFAULT_DBG_EXECUTION_TIMEOUT = new TimeSpan(0, 0, System.Web.Compilation.PageCodeDomTreeGenerator.DebugScriptTimeout); 143static TimeSpan s_configExecutionTimeout; 230TimeSpan _rqExecutionTimeout; 500_rqExecutionTimeout = TimeSpan.Zero; 958TimeSpan lockAge; 972TimeSpan lockAge;
State\sqlstateclientmanager.cs (7)
53static TimeSpan s_retryInterval; 407out TimeSpan lockAge, 425lockAge = TimeSpan.Zero; 540lockAge = TimeSpan.Zero; 572out TimeSpan lockAge, 584out TimeSpan lockAge, 1183internal SqlStateConnection(SqlPartitionInfo sqlPartitionInfo, TimeSpan retryInterval) {
State\StateRuntime.cs (5)
220internal TimeSpan _slidingExpiration; 232TimeSpan slidingExpiration, 315lockAge = (DateTime.UtcNow - content._utcLockDate).Ticks / TimeSpan.TicksPerSecond; 487timeout = (int)(content._slidingExpiration.Ticks / TimeSpan.TicksPerMinute); 516TimeSpan timeout;
StaticFileHandler.cs (1)
528lastModifiedInUtc = new DateTime(utcNow.Ticks - (utcNow.Ticks % TimeSpan.TicksPerSecond), DateTimeKind.Utc);
UI\ControlCachePolicy.cs (1)
81public TimeSpan Duration {
UI\DataSourceCache.cs (2)
204TimeSpan slidingExpiryTimeSpan = Cache.NoSlidingExpiration; 212slidingExpiryTimeSpan = TimeSpan.FromSeconds(Duration);
UI\Page.cs (7)
246private static readonly TimeSpan _maxAsyncTimeout = TimeSpan.FromMilliseconds(Int32.MaxValue); 247private TimeSpan _asyncTimeout; 3958public TimeSpan AsyncTimeout { 3960if (value < TimeSpan.Zero) { 3978AsyncTimeout = TimeSpan.FromSeconds((double)Page.DefaultAsyncTimeoutSeconds); 6001TimeSpan timeout = AsyncTimeout;
UI\PartialCachingControl.cs (4)
297internal TimeSpan Duration { 301return TimeSpan.MaxValue; 307if (value == TimeSpan.MaxValue) { 420TimeSpan slidingExpiration;
UI\WebControls\Calendar.cs (1)
1836TimeSpan ts = dateTo - dateFrom;
UI\WebControls\DataBoundControlHelper.cs (1)
98(type == typeof(TimeSpan))) {
UI\WebControls\Parameter.cs (2)
268if (value is TimeSpan) { 271return TimeSpan.Parse(value.ToString(), CultureInfo.CurrentCulture);
Util\altserialization.cs (2)
116else if (value is TimeSpan) { 118writer.Write(((TimeSpan) value).Ticks);
Util\DateTimeUtil.cs (1)
58static internal TimeSpan GetTimeoutFromTimeUnit(int timeoutValue, TimeUnit timeoutUnit) {
Util\RegexUtil.cs (3)
18return Regex.IsMatch(stringToMatch, pattern, regOption, TimeSpan.FromMilliseconds((double)timeout)); 28return Regex.Match(stringToMatch, pattern, regOption, TimeSpan.FromMilliseconds((double)timeout)); 38return new Regex(pattern, option, TimeSpan.FromMilliseconds((double)timeout));
Util\ResourcePool.cs (2)
23TimeSpan _interval; // callback interval 26internal ResourcePool(TimeSpan interval, int max) {
System.Web.ApplicationServices (1)
Security\MembershipUser.cs (1)
82TimeSpan ts = new TimeSpan(0, SystemWebProxy.Membership.UserIsOnlineTimeWindow, 0);
System.Web.DataVisualization (29)
Common\DataManager\DataPoint.cs (1)
1516else if (columnDataType == typeof(TimeSpan))
Common\General\AxisScale.cs (1)
1376 TimeSpan timeSpan = dateTimeMax.Subtract( dateTimeMin );
Common\General\ChartAreaAxes.cs (5)
1977 ticksInterval += (date2.Day - date1.Day) * TimeSpan.TicksPerDay; 1978 ticksInterval += (date2.Hour - date1.Hour) * TimeSpan.TicksPerHour; 1979 ticksInterval += (date2.Minute - date1.Minute) * TimeSpan.TicksPerMinute; 1980 ticksInterval += (date2.Second - date1.Second) * TimeSpan.TicksPerSecond; 1981 ticksInterval += (date2.Millisecond - date1.Millisecond) * TimeSpan.TicksPerMillisecond;
Common\General\ChartElement.cs (9)
1285 TimeSpan span = new TimeSpan(0); 1289 span = TimeSpan.FromDays(interval); 1293 span = TimeSpan.FromHours(interval); 1297 span = TimeSpan.FromMilliseconds(interval); 1301 span = TimeSpan.FromSeconds(interval); 1305 span = TimeSpan.FromMinutes(interval); 1309 span = TimeSpan.FromDays(7.0 * interval); 1323 span = TimeSpan.FromDays(30.0 * ( interval - Math.Floor(interval) )); 1336 span = TimeSpan.FromDays(365.0 * ( interval - Math.Floor(interval) ));
WebForm\ChartWebControl.cs (1)
907TimeSpan timeSpan = DateTime.Now - fileTime;
WebForm\General\ChartHttpHandler.cs (12)
223TimeSpan lastWrite = DateTime.Now - Directory.GetLastWriteTime(Settings.Directory + _controllerDirectory); 852private TimeSpan _timeout = TimeSpan.FromSeconds(30); 858public TimeSpan Timeout 1119this.Timeout = TimeSpan.MaxValue; 1123this.Timeout = TimeSpan.FromSeconds(seconds); 1282this.Timeout = TimeSpan.FromSeconds(3); ; 1765private TimeSpan _itemLifeTime = TimeSpan.FromSeconds(360); 1785internal RingTimeTracker(TimeSpan itemLifeTime, String keyFormat, bool recordSessionID) 1792this._current.Value.Created = DateTime.Now - this._itemLifeTime - TimeSpan.FromSeconds(1); 1812TimeSpan elapsed = (now - item.Created);
System.Web.DynamicData (2)
DynamicData\FieldTemplateFactory.cs (1)
88_typesFallBacks[typeof(TimeSpan)] = typeof(string);
DynamicData\MetaColumn.cs (1)
326if (ColumnType == typeof(TimeSpan)) return true;
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
405return typeof(TimeSpan);
System\Data\WebControls\WebControlParameterProxy.cs (2)
128object value = (paramValue is TimeSpan) 130: TimeSpan.Parse(paramValue.ToString(), CultureInfo.CurrentCulture);
System.Web.Extensions (16)
Handlers\ScriptResourceHandler.cs (2)
254cachePolicy.SetExpires(now + TimeSpan.FromDays(365)); 263cachePolicy.SetExpires(now + TimeSpan.FromDays(365));
Script\Services\RestHandler.cs (1)
80context.Response.Cache.SetMaxAge(TimeSpan.Zero);
UI\WebControls\Dynamic.cs (13)
513void F(TimeSpan x, TimeSpan y); 517void F(TimeSpan? x, TimeSpan? y); 530void F(DateTime x, TimeSpan y); 531void F(DateTimeOffset x, TimeSpan y); 532void F(TimeSpan x, TimeSpan y); 533void F(DateTime? x, TimeSpan? y); 534void F(DateTimeOffset? x, TimeSpan? y); 535void F(TimeSpan? x, TimeSpan? y); 616typeof(TimeSpan),
System.Web.Mobile (4)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (1)
927TimeSpan ts = dateTo - dateFrom;
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (1)
899TimeSpan ts = dateTo - dateFrom;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (1)
823TimeSpan ts = dateTo - dateFrom;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (1)
33private static readonly TimeSpan _cacheExpirationTime = new TimeSpan(0, 20, 0);
System.Web.Services (1)
System\Web\Services\Protocols\WebServiceHandler.cs (1)
72context.Response.Cache.SetMaxAge(TimeSpan.Zero);
System.Windows.Forms.DataVisualization (16)
Common\DataManager\DataPoint.cs (1)
1516else if (columnDataType == typeof(TimeSpan))
Common\General\AxisScale.cs (1)
1376 TimeSpan timeSpan = dateTimeMax.Subtract( dateTimeMin );
Common\General\ChartAreaAxes.cs (5)
1977 ticksInterval += (date2.Day - date1.Day) * TimeSpan.TicksPerDay; 1978 ticksInterval += (date2.Hour - date1.Hour) * TimeSpan.TicksPerHour; 1979 ticksInterval += (date2.Minute - date1.Minute) * TimeSpan.TicksPerMinute; 1980 ticksInterval += (date2.Second - date1.Second) * TimeSpan.TicksPerSecond; 1981 ticksInterval += (date2.Millisecond - date1.Millisecond) * TimeSpan.TicksPerMillisecond;
Common\General\ChartElement.cs (9)
1285 TimeSpan span = new TimeSpan(0); 1289 span = TimeSpan.FromDays(interval); 1293 span = TimeSpan.FromHours(interval); 1297 span = TimeSpan.FromMilliseconds(interval); 1301 span = TimeSpan.FromSeconds(interval); 1305 span = TimeSpan.FromMinutes(interval); 1309 span = TimeSpan.FromDays(7.0 * interval); 1323 span = TimeSpan.FromDays(30.0 * ( interval - Math.Floor(interval) )); 1336 span = TimeSpan.FromDays(365.0 * ( interval - Math.Floor(interval) ));
System.Workflow.Activities (10)
Delay.cs (10)
33public static readonly DependencyProperty TimeoutDurationProperty = DependencyProperty.Register("TimeoutDuration", typeof(TimeSpan), typeof(DelayActivity), new PropertyMetadata(new TimeSpan(0, 0, 0))); 73public TimeSpan TimeoutDuration 77return (TimeSpan)base.GetValue(TimeoutDurationProperty); 212if (destinationType == typeof(string) && value is TimeSpan) 214TimeSpan timespan = (TimeSpan)value; 231object parsedTimespan = TimeSpan.Zero; 238parsedTimespan = TimeSpan.Parse(timeSpan, CultureInfo.InvariantCulture); 239if (parsedTimespan != null && ((TimeSpan)parsedTimespan).Ticks < 0) 308TimeSpan timeSpan = this.TimeoutDuration;
System.Workflow.ComponentModel (19)
AuthoringOM\Behaviors\WorkflowTransactionOptions.cs (10)
25public static readonly DependencyProperty TimeoutDurationProperty = DependencyProperty.Register("TimeoutDuration", typeof(TimeSpan), typeof(WorkflowTransactionOptions), new PropertyMetadata(new TimeSpan(0, 0, 30), DependencyPropertyOptions.Metadata)); 31[DefaultValue(typeof(TimeSpan), "0:0:30")] 33public TimeSpan TimeoutDuration 37return (TimeSpan)base.GetValue(TimeoutDurationProperty); 73if (destinationType == typeof(string) && value is TimeSpan) 75TimeSpan timespan = (TimeSpan)value; 92TimeSpan parsedTimespan = TimeSpan.Zero; 99parsedTimespan = TimeSpan.Parse(timeSpan, CultureInfo.InvariantCulture);
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
764return type.IsPrimitive || type.IsEnum || type == typeof(Guid) || type == typeof(IntPtr) || type == typeof(string) || type == typeof(DateTime) || type == typeof(TimeSpan);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (8)
303obj.GetType().IsEnum || obj.GetType() == typeof(DateTime) || obj.GetType() == typeof(TimeSpan) || 641obj.GetType() == typeof(DateTime) || obj.GetType() == typeof(TimeSpan) || obj.GetType().IsEnum || 646obj.GetType() == typeof(DateTime) || obj.GetType() == typeof(TimeSpan) || 1185|| valueType == typeof(TimeSpan) || valueType == typeof(Guid) || valueType == typeof(DateTime)) 1255else if (typeof(TimeSpan) == propertyType) 1257propVal = TimeSpan.Parse(value, CultureInfo.InvariantCulture); 1739type == typeof(TimeSpan) || type.IsEnum || type == typeof(Guid)) 1748else if (type.IsPrimitive || type == typeof(decimal) || type == typeof(TimeSpan) || type.IsEnum || type == typeof(Guid))
System.Workflow.Runtime (39)
Hosting\DefaultWorkflowSchedulerService.cs (4)
23private static TimeSpan infinite = new TimeSpan(Timeout.Infinite); 25private static TimeSpan fiveMinutes = new TimeSpan(0, 5, 0); 255TimeSpan span = (info.When > now) ? info.When - now : TimeSpan.Zero;
Hosting\ManualWorkflowSchedulerService.cs (4)
56private static TimeSpan infinite = new TimeSpan(Timeout.Infinite); 58private static TimeSpan fiveMinutes = new TimeSpan(0, 5, 0); 264TimeSpan span = (info.When > now) ? info.When - now : TimeSpan.Zero;
Hosting\SqlWorkflowPersistenceService.cs (23)
687private TimeSpan _ownershipDelta; 690TimeSpan loadingInterval = new TimeSpan(0, 2, 0); 691private TimeSpan maxLoadingInterval = new TimeSpan(365, 0, 0, 0, 0); 694TimeSpan infinite = new TimeSpan(Timeout.Infinite); 709public TimeSpan LoadingInterval 729if (_ownershipDelta == TimeSpan.MaxValue) 750_ownershipDelta = TimeSpan.MaxValue; // default is to never timeout 778this.loadingInterval = TimeSpan.Zero; 800public SqlWorkflowPersistenceService(string connectionString, bool unloadOnIdle, TimeSpan instanceOwnershipDuration, TimeSpan loadingInterval) 806if (instanceOwnershipDuration < TimeSpan.Zero) 853if (loadingInterval > TimeSpan.Zero) 1193private TimeSpan period; 1195private TimeSpan minUpdate = new TimeSpan(0, 0, 5); 1196private TimeSpan infinite = new TimeSpan(Timeout.Infinite); 1198public SmartTimer(TimerCallback callback, object state, TimeSpan due, TimeSpan period) 1216TimeSpan when = next - DateTime.UtcNow; 1217if (when < TimeSpan.Zero) 1218when = TimeSpan.Zero; 1241TimeSpan when = next - DateTime.UtcNow; 1242if (when < TimeSpan.Zero) 1243when = TimeSpan.Zero;
Hosting\WorkflowPersistenceService.cs (2)
65TimeSpan timeElapsed = DateTime.Now - startTime; 90TimeSpan timeElapsed = DateTime.Now - startTime;
Scheduler.cs (1)
169new TransactionScope(transactionalProperties.Transaction, TimeSpan.Zero, EnterpriseServicesInteropOption.Full);
System\Activities\Statements\Interop.cs (1)
1718protected override IAsyncResult BeginOnSave(IDictionary<XName, object> readWriteValues, IDictionary<System.Xml.Linq.XName, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\Statements\InteropExecutor.cs (4)
242transactionalProperties.TransactionScope = new System.Transactions.TransactionScope(transactionalProperties.Transaction, TimeSpan.Zero, EnterpriseServicesInteropOption.Full); 1033TimeSpan timerDuration = whenUtc - DateTime.UtcNow; 1035if (timerDuration < TimeSpan.Zero) 1037timerDuration = TimeSpan.Zero;
System.WorkflowServices (138)
System\ServiceModel\Configuration\PersistenceProviderElement.cs (3)
46public TimeSpan PersistenceOperationTimeout 48get { return (TimeSpan) base[persistenceOperationTimeoutParameter]; } 68Fx.Assert(this.PersistenceOperationTimeout > TimeSpan.Zero,
System\ServiceModel\Configuration\WorkflowRuntimeElement.cs (3)
47public TimeSpan CachedInstanceExpiration 51return (TimeSpan) base[cachedInstanceExpiration]; 130configProperties.Add(new ConfigurationProperty(cachedInstanceExpiration, typeof(TimeSpan), WorkflowRuntimeBehavior.DefaultCachedInstanceExpiration));
System\ServiceModel\Description\PersistenceProviderBehavior.cs (6)
14internal static readonly TimeSpan DefaultPersistenceOperationTimeout = TimeSpan.Parse(DefaultPersistenceOperationTimeoutString, CultureInfo.InvariantCulture); 18TimeSpan persistenceOperationTimeout; 28public PersistenceProviderBehavior(PersistenceProviderFactory providerFactory, TimeSpan persistenceOperationTimeout) 34public TimeSpan PersistenceOperationTimeout 42if (value < TimeSpan.Zero)
System\ServiceModel\Description\WorkflowRuntimeBehavior.cs (6)
16internal static readonly TimeSpan DefaultCachedInstanceExpiration = TimeSpan.Parse(DefaultCachedInstanceExpirationString, CultureInfo.InvariantCulture); 24TimeSpan cachedInstanceExpiration; 33internal WorkflowRuntimeBehavior(WorkflowRuntime workflowRuntime, TimeSpan cachedInstanceExpiration, bool validateOnCreate) 40public TimeSpan CachedInstanceExpiration 48if (value < TimeSpan.Zero)
System\ServiceModel\Dispatcher\DurableInstance.cs (6)
34protected override TimeSpan DefaultCloseTimeout 39protected override TimeSpan DefaultOpenTimeout 61protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 66protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 71protected override void OnClose(TimeSpan timeout) 85protected override void OnOpen(TimeSpan timeout)
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (8)
26TimeSpan operationTimeout; 39TimeSpan operationTimeout) 50TimeSpan operationTimeout, 69Fx.Assert(operationTimeout > TimeSpan.Zero, 332protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 337protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 342protected override void OnClose(TimeSpan timeout) 357protected override void OnOpen(TimeSpan timeout)
System\ServiceModel\Dispatcher\ServiceDurableInstanceContextProvider.cs (2)
19TimeSpan operationTimeout; 34TimeSpan operationTimeout)
System\ServiceModel\Dispatcher\WorkflowInstanceLifeTimeManagerExtension.cs (2)
20TimeSpan cachedInstanceExpiration; 28public WorkflowInstanceLifetimeManagerExtension(WorkflowRuntime workflowRuntime, TimeSpan cachedInstanceExpiration, bool hasPersistenceService)
System\ServiceModel\Persistence\LockingPersistenceProvider.cs (18)
16public override IAsyncResult BeginCreate(object instance, TimeSpan timeout, AsyncCallback callback, object state) 21public abstract IAsyncResult BeginCreate(object instance, TimeSpan timeout, bool unlockInstance, AsyncCallback callback, object state); 23public override IAsyncResult BeginLoad(TimeSpan timeout, AsyncCallback callback, object state) 28public abstract IAsyncResult BeginLoad(TimeSpan timeout, bool lockInstance, AsyncCallback callback, object state); 30public override IAsyncResult BeginLoadIfChanged(TimeSpan timeout, object instanceToken, AsyncCallback callback, object state) 35public virtual IAsyncResult BeginLoadIfChanged(TimeSpan timeout, object instanceToken, bool lockInstance, AsyncCallback callback, object state) 40public abstract IAsyncResult BeginUnlock(TimeSpan timeout, AsyncCallback callback, object state); 42public override IAsyncResult BeginUpdate(object instance, TimeSpan timeout, AsyncCallback callback, object state) 46public abstract IAsyncResult BeginUpdate(object instance, TimeSpan timeout, bool unlockInstance, AsyncCallback callback, object state); 48public override object Create(object instance, TimeSpan timeout) 53public abstract object Create(object instance, TimeSpan timeout, bool unlockInstance); 56public override object Load(TimeSpan timeout) 61public abstract object Load(TimeSpan timeout, bool lockInstance); 63public override bool LoadIfChanged(TimeSpan timeout, object instanceToken, out object instance) 69public virtual bool LoadIfChanged(TimeSpan timeout, object instanceToken, bool lockInstance, out object instance) 74public abstract void Unlock(TimeSpan timeout); 76public override object Update(object instance, TimeSpan timeout) 80public abstract object Update(object instance, TimeSpan timeout, bool unlockInstance);
System\ServiceModel\Persistence\PersistenceProvider.cs (12)
12internal static readonly TimeSpan DefaultOpenClosePersistenceTimout = TimeSpan.FromSeconds(15); 27public abstract IAsyncResult BeginCreate(object instance, TimeSpan timeout, AsyncCallback callback, object state); 29public abstract IAsyncResult BeginDelete(object instance, TimeSpan timeout, AsyncCallback callback, object state); 30public abstract IAsyncResult BeginLoad(TimeSpan timeout, AsyncCallback callback, object state); 32public virtual IAsyncResult BeginLoadIfChanged(TimeSpan timeout, object instanceToken, AsyncCallback callback, object state) 36public abstract IAsyncResult BeginUpdate(object instance, TimeSpan timeout, AsyncCallback callback, object state); 38public abstract object Create(object instance, TimeSpan timeout); 40public abstract void Delete(object instance, TimeSpan timeout); 53public abstract object Load(TimeSpan timeout); 56public virtual bool LoadIfChanged(TimeSpan timeout, object instanceToken, out object instance) 62public abstract object Update(object instance, TimeSpan timeout);
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (65)
26static readonly TimeSpan maxSecondsTimeSpan = TimeSpan.FromSeconds(int.MaxValue); 38TimeSpan lockTimeout; 44: this(connectionString, false, TimeSpan.Zero) 49: this(connectionString, serializeAsText, TimeSpan.Zero) 53public SqlPersistenceProviderFactory(string connectionString, bool serializeAsText, TimeSpan lockTimeout) 73this.LockTimeout = TimeSpan.Zero; 95this.LockTimeout = TimeSpan.Parse(parameters[key], CultureInfo.InvariantCulture); 133public TimeSpan LockTimeout 143if (value < TimeSpan.Zero || 144(value > TimeSpan.FromSeconds(int.MaxValue) && value != TimeSpan.MaxValue)) 167protected override TimeSpan DefaultCloseTimeout 172protected override TimeSpan DefaultOpenTimeout 179get { return this.lockTimeout != TimeSpan.Zero; } 187if (this.lockTimeout == TimeSpan.Zero) 191else if (this.lockTimeout == TimeSpan.MaxValue) 197Fx.Assert(this.lockTimeout <= TimeSpan.FromSeconds(int.MaxValue), 231protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 238protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 245protected override void OnClose(TimeSpan timeout) 269protected override void OnOpen(TimeSpan timeout) 291static int ConvertTimeSpanToSqlTimeout(TimeSpan timeout) 293if (timeout == TimeSpan.MaxValue) 299Fx.Assert(timeout <= TimeSpan.FromSeconds(int.MaxValue), 306IAsyncResult BeginCreate(Guid id, object instance, TimeSpan timeout, bool unlockInstance, AsyncCallback callback, object state) 321IAsyncResult BeginDelete(Guid id, object instance, TimeSpan timeout, AsyncCallback callback, object state) 330IAsyncResult BeginLoad(Guid id, TimeSpan timeout, bool lockInstance, AsyncCallback callback, object state) 339IAsyncResult BeginUnlock(Guid id, TimeSpan timeout, AsyncCallback callback, object state) 348IAsyncResult BeginUpdate(Guid id, object instance, TimeSpan timeout, bool unlockInstance, AsyncCallback callback, object state) 372object Create(Guid id, object instance, TimeSpan timeout, bool unlockInstance) 388SqlCommand CreateCommand(SqlConnection connection, TimeSpan timeout) 402void Delete(Guid id, object instance, TimeSpan timeout) 504string GetConnectionString(TimeSpan timeout) 530object Load(Guid id, TimeSpan timeout, bool lockInstance) 539SqlConnection OpenConnection(TimeSpan timeout) 548void PerformOpen(TimeSpan timeout) 592object PerformOperation(OperationHandler handler, Guid id, TimeSpan timeout, params object[] additionalParameters) 670void Unlock(Guid id, TimeSpan timeout) 684object Update(Guid id, object instance, TimeSpan timeout, bool unlockInstance) 700void ValidateCommandTimeout(TimeSpan timeout) 702if (timeout <= TimeSpan.Zero || 703(timeout > SqlPersistenceProviderFactory.maxSecondsTimeSpan && timeout != TimeSpan.MaxValue)) 713public CloseAsyncResult(SqlPersistenceProviderFactory provider, TimeSpan timeout, AsyncCallback callback, object state) 973TimeSpan timeout; 975public OpenAsyncResult(SqlPersistenceProviderFactory provider, TimeSpan timeout, AsyncCallback callback, object state) 1030public OperationAsyncResult(OperationHandler handler, SqlPersistenceProviderFactory provider, Guid id, TimeSpan timeout, AsyncCallback callback, object state, params object[] additionalParameters) 1241protected override TimeSpan DefaultCloseTimeout 1243get { return TimeSpan.FromSeconds(15); } 1246protected override TimeSpan DefaultOpenTimeout 1248get { return TimeSpan.FromSeconds(15); } 1251public override IAsyncResult BeginCreate(object instance, TimeSpan timeout, bool unlockInstance, AsyncCallback callback, object state) 1257public override IAsyncResult BeginDelete(object instance, TimeSpan timeout, AsyncCallback callback, object state) 1263public override IAsyncResult BeginLoad(TimeSpan timeout, bool lockInstance, AsyncCallback callback, object state) 1269public override IAsyncResult BeginUnlock(TimeSpan timeout, AsyncCallback callback, object state) 1275public override IAsyncResult BeginUpdate(object instance, TimeSpan timeout, bool unlockInstance, AsyncCallback callback, object state) 1281public override object Create(object instance, TimeSpan timeout, bool unlockInstance) 1287public override void Delete(object instance, TimeSpan timeout) 1318public override object Load(TimeSpan timeout, bool lockInstance) 1324public override void Unlock(TimeSpan timeout) 1330public override object Update(object instance, TimeSpan timeout, bool unlockInstance) 1340protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1345protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1350protected override void OnClose(TimeSpan timeout) 1364protected override void OnOpen(TimeSpan timeout)
System\Workflow\Runtime\Hosting\ChannelManager.cs (3)
335public void Close(TimeSpan timeout) 389public void Close(TimeSpan timeout) 439protected override void CloseItem(PooledChannel item, TimeSpan timeout)
System\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (1)
63public static void CloseCommunicationObject(ICommunicationObject communicationObject, TimeSpan timeout)
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (3)
311TimeSpan ConvertToTimeSpan(string value) 315return TimeSpan.MaxValue; 318return TimeSpan.Parse(value, CultureInfo.InvariantCulture);
System.Xml (90)
System\Xml\BinaryXml\SqlUtils.cs (5)
657static void WriteTimeZone(StringBuilder sb, TimeSpan zone) { 799return SQLBaseDate.Add( new TimeSpan( dateticks * TimeSpan.TicksPerDay + 800millisecond * TimeSpan.TicksPerMillisecond ) ); 945return (data[p] | data[p + 1] << 8 | data[p + 2] << 16) * TimeSpan.TicksPerDay; 974return (short)(data[pos] | data[pos + 1] << 8) * TimeSpan.TicksPerMinute;
System\Xml\Core\XmlWriter.cs (1)
295if (value.Offset != TimeSpan.Zero) {
System\Xml\Schema\DataTypeImplementation.cs (6)
1670static readonly Type atomicValueType = typeof(TimeSpan); 1671static readonly Type listValueType = typeof(TimeSpan[]); 1700return ((TimeSpan)value1).CompareTo(value2); 1715TimeSpan timeSpanValue; 1748TimeSpan timeSpanValue; 1786TimeSpan timeSpanValue;
System\Xml\Schema\FacetChecker.cs (17)
680internal virtual Exception CheckValueFacets(TimeSpan value, XmlSchemaDatatype datatype) { 996TimeSpan timeSpanValue = (TimeSpan)datatype.ValueConverter.ChangeType(value, typeof(TimeSpan)); 1000internal override Exception CheckValueFacets(TimeSpan value, XmlSchemaDatatype datatype) { 1005if (TimeSpan.Compare(value, (TimeSpan)restriction.MaxInclusive) > 0) { 1011if (TimeSpan.Compare(value, (TimeSpan)restriction.MaxExclusive) >= 0) { 1017if (TimeSpan.Compare(value, (TimeSpan)restriction.MinInclusive) < 0) { 1023if (TimeSpan.Compare(value, (TimeSpan)restriction.MinExclusive) <= 0) { 1035return MatchEnumeration((TimeSpan)value, enumeration); 1038private bool MatchEnumeration(TimeSpan value, ArrayList enumeration) { 1040if (TimeSpan.Compare(value, (TimeSpan)enumeration[i]) == 0) {
System\Xml\Schema\XmlValueConverter.cs (15)
360protected static readonly Type TimeSpanType = typeof(TimeSpan); 593protected static TimeSpan StringToDayTimeDuration(string value) { 598protected static TimeSpan StringToDuration(string value) { 693protected static TimeSpan StringToYearMonthDuration(string value) { 719protected static string DayTimeDurationToString(TimeSpan value) { 723protected static string DurationToString(TimeSpan value) { 796protected static string YearMonthDurationToString(TimeSpan value) { 1886case XmlTypeCode.DayTimeDuration: return DayTimeDurationToString((TimeSpan) value); 1887case XmlTypeCode.Duration: return DurationToString((TimeSpan) value); 1888case XmlTypeCode.YearMonthDuration: return YearMonthDurationToString((TimeSpan) value); 1983case XmlTypeCode.DayTimeDuration: return ((TimeSpan) value); 1984case XmlTypeCode.Duration: return ((TimeSpan) value); 1985case XmlTypeCode.YearMonthDuration: return ((TimeSpan) value); 2390if (sourceType == TimeSpanType) return DurationToString((TimeSpan) value); 3178if (itemTypeDst == TimeSpanType) return ToArray<TimeSpan>(value, nsResolver);
System\Xml\Schema\XsdDateTime.cs (4)
176TimeSpan utcOffset = TimeZoneInfo.Local.GetUtcOffset(dateTime); 204TimeSpan zoneOffset = dateTimeOffset.Offset; 387TimeSpan addDiff = new DateTime(currentDateTime.Year, currentDateTime.Month, currentDateTime.Day) - new DateTime(xdt.Year, xdt.Month, xdt.Day); 444TimeSpan addDiff = new DateTime(currentDateTime.Year, currentDateTime.Month, currentDateTime.Day) - new DateTime(xdt.Year, xdt.Month, xdt.Day);
System\Xml\Schema\XsdDuration.cs (17)
74public XsdDuration(TimeSpan timeSpan) : this(timeSpan, DurationType.Duration) { 81public XsdDuration(TimeSpan timeSpan, DurationType durationType) { 97int years = (int) (ticksPos / ((ulong) TimeSpan.TicksPerDay * 365)); 98int months = (int) ((ticksPos % ((ulong) TimeSpan.TicksPerDay * 365)) / ((ulong) TimeSpan.TicksPerDay * 30)); 118this.days = (int) (ticksPos / (ulong) TimeSpan.TicksPerDay); 119this.hours = (int) ((ticksPos / (ulong) TimeSpan.TicksPerHour) % 24); 120this.minutes = (int) ((ticksPos / (ulong) TimeSpan.TicksPerMinute) % 60); 121this.seconds = (int) ((ticksPos / (ulong) TimeSpan.TicksPerSecond) % 60); 272public TimeSpan ToTimeSpan() { 280public TimeSpan ToTimeSpan(DurationType durationType) { 281TimeSpan result; 290internal Exception TryToTimeSpan(out TimeSpan result) { 295internal Exception TryToTimeSpan(DurationType durationType, out TimeSpan result) { 322ticks *= (ulong) TimeSpan.TicksPerSecond; 327ticks *= (ulong) TimeSpan.TicksPerDay; 346result = TimeSpan.MinValue;
System\Xml\Serialization\CodeGenerator.cs (3)
1116if (valueType == typeof(TimeSpan) && LocalAppContextSwitches.EnableTimeSpanSerialization) 1118ConstructorInfo TimeSpan_ctor = typeof(TimeSpan).GetConstructor( 1124Ldc(((TimeSpan)o).Ticks); // ticks
System\Xml\Serialization\PrimitiveXmlSerializers.cs (3)
165TimeSpan timeSpan = (TimeSpan)o; 517o = default(TimeSpan);
System\Xml\Serialization\Types.cs (2)
490AddNonXsdPrimitive(typeof(TimeSpan), "TimeSpan", UrtTypes.Namespace, "TimeSpan", new XmlQualifiedName("duration", XmlSchema.Namespace), new XmlSchemaFacet[0], TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 532else if (LocalAppContextSwitches.EnableTimeSpanSerialization && type == typeof(TimeSpan))
System\Xml\Serialization\XmlSerializationReader.cs (2)
760value = default(Nullable<TimeSpan>); 4299if (element.Mapping.TypeDesc.Type == typeof(TimeSpan) && LocalAppContextSwitches.EnableTimeSpanSerialization)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
3071if (LocalAppContextSwitches.EnableTimeSpanSerialization && element.Mapping.TypeDesc.Type == typeof(TimeSpan)) 3102ConstructorInfo TimeSpan_ctor = typeof(TimeSpan).GetConstructor( 3108ilg.Ldc(default(TimeSpan).Ticks);
System\Xml\Serialization\XmlSerializationWriter.cs (5)
202else if (type == typeof(TimeSpan) && LocalAppContextSwitches.EnableTimeSpanSerialization) 314else if (t == typeof(TimeSpan) && LocalAppContextSwitches.EnableTimeSpanSerialization) { 315value = XmlConvert.ToString((TimeSpan)o); 3122else if(type == typeof(TimeSpan) && LocalAppContextSwitches.EnableTimeSpanSerialization) { 3126Writer.Write(((TimeSpan)value).Ticks.ToString(CultureInfo.InvariantCulture));
System\Xml\Serialization\XmlSerializer.cs (2)
796else if (primitiveType == typeof(TimeSpan)) { 867else if (primitiveType == typeof(TimeSpan) && LocalAppContextSwitches.EnableTimeSpanSerialization) {
System\Xml\XmlConvert.cs (5)
746public static string ToString(TimeSpan value) { 1156public static TimeSpan ToTimeSpan(string s) { 1158TimeSpan timeSpan; 1174internal static Exception TryToTimeSpan(string s, out TimeSpan result) { 1180result = TimeSpan.MinValue;
System.Xml.Linq (20)
System\Xml\Linq\XLinq.cs (20)
3015else if (value is TimeSpan) { 3016s = XmlConvert.ToString((TimeSpan)value); 4860/// Cast the value of this <see cref="XElement"/> to a <see cref="TimeSpan"/>. 4863/// The <see cref="XElement"/> to cast to <see cref="TimeSpan"/>. 4866/// The content of this <see cref="XElement"/> as a <see cref="TimeSpan"/>. 4869/// Thrown if the specified element does not contain a valid <see cref="TimeSpan"/> value. 4876public static explicit operator TimeSpan(XElement element) { 4882/// Cast the value of this <see cref="XElement"/> to an <see cref="TimeSpan"/>?. 4885/// The <see cref="XElement"/> to cast to <see cref="TimeSpan"/>?. 4888/// The content of this <see cref="XElement"/> as a <see cref="TimeSpan"/>?. 4891/// Thrown if the specified element does not contain a valid <see cref="TimeSpan"/> value. 4895public static explicit operator TimeSpan?(XElement element) { 7063/// Cast the value of this <see cref="XAttribute"/> to a <see cref="TimeSpan"/>. 7066/// The <see cref="XAttribute"/> to cast to <see cref="TimeSpan"/>. 7069/// The content of this <see cref="XAttribute"/> as a <see cref="TimeSpan"/>. 7075public static explicit operator TimeSpan(XAttribute attribute) { 7081/// Cast the value of this <see cref="XAttribute"/> to a <see cref="TimeSpan"/>?. 7084/// The <see cref="XAttribute"/> to cast to <see cref="TimeSpan"/>?. Can be null. 7087/// The content of this <see cref="XAttribute"/> as a <see cref="TimeSpan"/>?. 7090public static explicit operator TimeSpan?(XAttribute attribute) {
WindowsBase (48)
Base\MS\Internal\WeakEventTable.cs (1)
424Dispatcher.Invoke((Action)OnShutDown, DispatcherPriority.Send, CancellationToken.None, TimeSpan.FromMilliseconds(300));
Base\System\Windows\Markup\TypeConverterHelper.cs (3)
229else if (typeof(TimeSpan).IsAssignableFrom(type)) 313else if (type == typeof(TimeSpan)) 413else if (typeof(TimeSpan).IsAssignableFrom(type))
Base\System\Windows\SplashScreen.cs (7)
45private TimeSpan _fadeoutDuration; 146splashScreen.Close(TimeSpan.FromSeconds(0.3)); 255public void Close(TimeSpan fadeoutDuration) 286TimeSpan fadeoutDuration = (TimeSpan) fadeOutArg; 287if (fadeoutDuration <= TimeSpan.Zero) 314_dt.Interval = TimeSpan.FromMilliseconds(30); // shoot for ~30 fps
Base\System\Windows\Threading\Dispatcher.cs (25)
562Invoke(callback, DispatcherPriority.Send, CancellationToken.None, TimeSpan.FromMilliseconds(-1)); 579Invoke(callback, priority, CancellationToken.None, TimeSpan.FromMilliseconds(-1)); 602Invoke(callback, priority, cancellationToken, TimeSpan.FromMilliseconds(-1)); 635public void Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout) 644timeout != TimeSpan.FromMilliseconds(-1)) 711return Invoke(callback, DispatcherPriority.Send, CancellationToken.None, TimeSpan.FromMilliseconds(-1)); 737return Invoke(callback, priority, CancellationToken.None, TimeSpan.FromMilliseconds(-1)); 769return Invoke(callback, priority, cancellationToken, TimeSpan.FromMilliseconds(-1)); 805public TResult Invoke<TResult>(Func<TResult> callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout) 814timeout != TimeSpan.FromMilliseconds(-1)) 1133return LegacyInvokeImpl(priority, TimeSpan.FromMilliseconds(-1), method, null, 0); 1159return LegacyInvokeImpl(priority, TimeSpan.FromMilliseconds(-1), method, arg, 1); 1187return LegacyInvokeImpl(priority, TimeSpan.FromMilliseconds(-1), method, CombineParameters(arg, args), -1); 1211public object Invoke(DispatcherPriority priority, TimeSpan timeout, Delegate method) 1242public object Invoke(DispatcherPriority priority, TimeSpan timeout, Delegate method, object arg) 1275public object Invoke(DispatcherPriority priority, TimeSpan timeout, Delegate method, object arg, params object[] args) 1298return LegacyInvokeImpl(DispatcherPriority.Normal, TimeSpan.FromMilliseconds(-1), method, args, -1); 1323return LegacyInvokeImpl(priority, TimeSpan.FromMilliseconds(-1), method, args, -1); 1347public object Invoke(Delegate method, TimeSpan timeout, params object[] args) 1377public object Invoke(Delegate method, TimeSpan timeout, DispatcherPriority priority, params object[] args) 1389internal object LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, object args, int numArgs) 1403timeout != TimeSpan.FromMilliseconds(-1)) 1413timeout = TimeSpan.FromMilliseconds(-1); 1464private object InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout) 1468Debug.Assert(timeout.TotalMilliseconds >= 0 || timeout == TimeSpan.FromMilliseconds(-1));
Base\System\Windows\Threading\DispatcherOperation.cs (6)
191return Wait(TimeSpan.FromMilliseconds(-1)); 209public DispatcherOperationStatus Wait(TimeSpan timeout) 607public DispatcherOperationFrame(DispatcherOperation op, TimeSpan timeout) : base(false) 622TimeSpan.FromMilliseconds(-1)); 664public DispatcherOperationEvent(DispatcherOperation op, TimeSpan timeout) 727private TimeSpan _timeout;
Base\System\Windows\Threading\DispatcherTimer.cs (6)
33Initialize(Dispatcher.CurrentDispatcher, priority, TimeSpan.FromMilliseconds(0)); 53Initialize(dispatcher, priority, TimeSpan.FromMilliseconds(0)); 73public DispatcherTimer(TimeSpan interval, DispatcherPriority priority, EventHandler callback, Dispatcher dispatcher) // NOTE: should be Priority 143public TimeSpan Interval 247private void Initialize(Dispatcher dispatcher, DispatcherPriority priority, TimeSpan interval) 336private TimeSpan _interval;
WsatConfig (4)
Configuration\MsdtcWrapper.cs (2)
221controller.WaitForStatus(System.ServiceProcess.ServiceControllerStatus.Stopped, TimeSpan.FromSeconds(30)); 229controller.WaitForStatus(System.ServiceProcess.ServiceControllerStatus.Running, TimeSpan.FromSeconds(30));
Configuration\RemoteHelper.cs (1)
40ObjectGetOptions options = new ObjectGetOptions(new ManagementNamedValueCollection(), TimeSpan.FromSeconds(15), false);
Configuration\StdRegProviderWrapper.cs (1)
96ObjectGetOptions options = new ObjectGetOptions(new ManagementNamedValueCollection(), TimeSpan.FromSeconds(15), false);
WsatUI (4)
Configuration\MsdtcWrapper.cs (2)
221controller.WaitForStatus(System.ServiceProcess.ServiceControllerStatus.Stopped, TimeSpan.FromSeconds(30)); 229controller.WaitForStatus(System.ServiceProcess.ServiceControllerStatus.Running, TimeSpan.FromSeconds(30));
Configuration\RemoteHelper.cs (1)
40ObjectGetOptions options = new ObjectGetOptions(new ManagementNamedValueCollection(), TimeSpan.FromSeconds(15), false);
Configuration\StdRegProviderWrapper.cs (1)
96ObjectGetOptions options = new ObjectGetOptions(new ManagementNamedValueCollection(), TimeSpan.FromSeconds(15), false);
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskLeaseLifetimeHelper.cs (2)
58lease.InitialLeaseTime = TimeSpan.FromMinutes(remotingLeaseLifetimeInMinutes); 59lease.RenewOnCallTime = TimeSpan.FromMinutes(remotingLeaseLifetimeInMinutes);