115 references to TimeSpan
mscorlib (10)
system\console.cs (1)
1766TimeSpan controlCWaitTime = new TimeSpan(0, 0, 30); // 30 seconds
system\datetimeoffset.cs (1)
312return new TimeSpan(0, m_offsetMinutes, 0);
system\globalization\datetimeparse.cs (2)
560result = new TimeSpan(hourOffset, minuteOffset, 0); 3029result = (new TimeSpan(hourOffset, minuteOffset, 0));
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 */);
PresentationCore (1)
Core\CSharp\System\Windows\Media\Animation\AnimationTimeline.cs (1)
135return new TimeSpan(0, 0, 1);
PresentationFramework (4)
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\Window.cs (1)
6784_taskbarRetryTimer = new DispatcherTimer { Interval = new TimeSpan(0, 1, 0) };
System (14)
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 (9)
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);
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
System.AddIn (1)
System\Addin\Hosting\AddInProcess.cs (1)
60private TimeSpan _startupTimeout = new TimeSpan(0, 0, 10);
System.Data (6)
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\SqlClient\SqlBuffer.cs (1)
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);
System.Data.Entity (2)
System\Data\Common\EntitySql\AST\Literal.cs (2)
554TimeSpan offsetTimeSpan = new TimeSpan(offsetHours, offsetMinutes, 0); 593TimeSpan ts = new TimeSpan(hour, minute, second);
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.Messaging (2)
System\Messaging\MessageQueue.cs (2)
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>
System.Runtime.Serialization (3)
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\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 (4)
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\Syndication\Atom10FeedFormatter.cs (1)
25internal static readonly TimeSpan zeroOffset = new TimeSpan(0, 0, 0);
System.ServiceModel.Web (1)
System\ServiceModel\Web\CachingParameterInspector.cs (1)
312cache.SetMaxAge(new TimeSpan(0, 0, this.cacheProfile.Duration));
System.Web (35)
Cache\CacheDependency.cs (1)
62static readonly TimeSpan FUTURE_FILETIME_BUFFER = new TimeSpan(0, 1, 0); // See VSWhidbey 400917
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);
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 (4)
2642inActiveWindow = (diffTime <= new TimeSpan(0, PasswordAttemptWindow, 0)); 2772bool isLockedOutByBadPasswordAnswer = (diffTime <= new TimeSpan(0, PasswordAnswerAttemptLockoutDuration, 0)); 3776request.TimeLimit = new TimeSpan(0, ServerSearchTimeout, 0); 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 (1)
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\DateTimeUtil.cs (3)
63return new TimeSpan(timeoutValue, 0, 0); 65return new TimeSpan(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.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.Workflow.Activities (6)
Delay.cs (6)
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));
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 (6)
Hosting\DefaultWorkflowSchedulerService.cs (1)
25private static TimeSpan fiveMinutes = new TimeSpan(0, 5, 0);
Hosting\ManualWorkflowSchedulerService.cs (1)
58private static TimeSpan fiveMinutes = new TimeSpan(0, 5, 0);
Hosting\SqlWorkflowPersistenceService.cs (4)
690TimeSpan loadingInterval = new TimeSpan(0, 2, 0); 764_ownershipDelta = new TimeSpan(0, 0, seconds); 776this.loadingInterval = new TimeSpan(0, 0, interval); 1195private TimeSpan minUpdate = new TimeSpan(0, 0, 5);
System.Xml (8)
System\Xml\Schema\XsdDateTime.cs (8)
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)); 652return dt.Subtract(new TimeSpan(ZoneHour, ZoneMinute, 0)); 654return dt.Add(new TimeSpan(ZoneHour, ZoneMinute, 0));