174 references to FromSeconds
mscorlib (2)
system\runtime\remoting\remotingconfigparser.cs (2)
1815TimeSpan span = TimeSpan.FromSeconds(0); 1839case "s": span = TimeSpan.FromSeconds(value); break;
PresentationCore (24)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
4507static Int64 s_TimeSpanTicksPerSecond = TimeSpan.FromSeconds(1).Ticks;
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
603return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
603return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
603return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
603return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
603return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
Core\CSharp\System\Windows\Media\MediaContext.cs (2)
619if (nextTickNeeded > TimeSpan.FromSeconds(1)) 641_promoteRenderOpToRender.Interval = TimeSpan.FromSeconds(1);
PresentationFramework (5)
src\Framework\System\Windows\Controls\ProgressBar.cs (4)
237TimeSpan translateTime = TimeSpan.FromSeconds(((int)(endPos - startPos) / 200.0)); // travel at 200px /second 238TimeSpan pauseTime = TimeSpan.FromSeconds(1.0); // pause 1 second between animations 246startTime = TimeSpan.FromSeconds(-1*(_glow.Margin.Left-startPos)/200.0); 261animation.KeyFrames.Add(new LinearThicknessKeyFrame(new Thickness(startPos,0,0,0), TimeSpan.FromSeconds(0)));
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
695return TimeSpan.FromSeconds(1.0);
PresentationFramework.Aero (28)
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 (2)
92TimeSpan translateTime = TimeSpan.FromSeconds(twiceWidth / 200.0); // travel at 200px /second 93TimeSpan pauseTime = TimeSpan.FromSeconds(1.0); // pause 1 second between animations
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));
SMSvcHost (1)
System\ServiceModel\Activation\ActivatedMessageQueue.cs (1)
17static TimeSpan FailureThrottlingTimeout = TimeSpan.FromSeconds(15);
System (6)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (3)
566ctx.CacheMaxAge = TimeSpan.FromSeconds(ctx.CacheCacheControl.SMaxAge); 580ctx.CacheMaxAge = TimeSpan.FromSeconds(ctx.CacheCacheControl.MaxAge); 648ctx.CacheMaxAge = TimeSpan.FromSeconds(maxAgeSeconds);
net\System\Net\Cache\HttpRequestCacheValidator.cs (1)
838span = TimeSpan.FromSeconds(sec);
net\System\Net\Cache\IERequestCache.cs (1)
35internal readonly static TimeSpan s_MaxTimeSpanForInt32 = TimeSpan.FromSeconds((double)int.MaxValue);
net\System\Net\Cache\RequestCacheEntry.cs (1)
61m_MaxStale = TimeSpan.FromSeconds(entry.Info.U.ExemptDelta);
System.Activities (11)
System\Activities\ActivityDefaults.cs (10)
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); 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); 23public static TimeSpan TrackingTimeout = TimeSpan.FromSeconds(30); 24public static TimeSpan TransactionCompletionTimeout = TimeSpan.FromSeconds(30);
System\Activities\Statements\TimerTable.cs (1)
112this.AddTimer(TimeSpan.FromSeconds(retryDuration), bookmark);
System.Activities.DurableInstancing (10)
System\Activities\DurableInstancing\LoadRetryConstantStrategy.cs (1)
11static readonly TimeSpan defaultRetryDelay = TimeSpan.FromSeconds(5);
System\Activities\DurableInstancing\LoadRetryExponentialBackoffStrategy.cs (1)
11readonly TimeSpan DefaultBackoffLimit = TimeSpan.FromSeconds(10);
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (5)
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); 184this.bufferedHostLockRenewalPeriod = TimeSpan.FromSeconds(Math.Min(Int32.MaxValue, lockBuffer + this.HostLockRenewalPeriod.TotalSeconds));
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreConstants.cs (3)
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.Presentation (1)
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.ComponentModel.DataAnnotations (3)
DataAnnotations\EmailAddressAttribute.cs (1)
59TimeSpan matchTimeout = TimeSpan.FromSeconds(2);
DataAnnotations\PhoneAttribute.cs (1)
74TimeSpan matchTimeout = TimeSpan.FromSeconds(2);
DataAnnotations\UrlAttribute.cs (1)
52TimeSpan matchTimeout = TimeSpan.FromSeconds(2);
System.Configuration (2)
System\Configuration\TimeSpanSecondsConverter.cs (1)
40return TimeSpan.FromSeconds((double)min);
System\Configuration\ValidatorUtils.cs (1)
103ValidateResolution(TimeSpan.FromSeconds( resolutionInSeconds ).ToString(), value.Ticks, resolutionInSeconds * TimeSpan.TicksPerSecond);
System.Data (1)
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);
System.Management (2)
managementquery.cs (2)
3050 withinInterval = TimeSpan.FromSeconds(((IConvertible)intervalString).ToDouble(null)); 3063 groupWithinInterval = TimeSpan.FromSeconds(((IConvertible)intervalString).ToDouble(null));
System.Messaging (5)
System\Messaging\Design\TimeoutConverter.cs (2)
52return TimeSpan.FromSeconds((double)uint.MaxValue); 59return TimeSpan.FromSeconds(totalSeconds);
System\Messaging\Message.cs (3)
48public static readonly TimeSpan InfiniteTimeout = TimeSpan.FromSeconds(UInt32.MaxValue); 1696return TimeSpan.FromSeconds((uint)properties.GetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_BE_RECEIVED)); 1746return TimeSpan.FromSeconds((uint)properties.GetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_REACH_QUEUE));
System.Runtime.Remoting (5)
channels\core\socketcache.cs (1)
341private static TimeSpan _socketTimeoutPollTime = TimeSpan.FromSeconds(10);
channels\ipc\portcache.cs (2)
44private static TimeSpan _socketTimeoutPollTime = TimeSpan.FromSeconds(10); 45private static TimeSpan _portLifetime = TimeSpan.FromSeconds(10);
channels\tcp\tcpclientchannel.cs (2)
340private TimeSpan _socketCacheTimeout = TimeSpan.FromSeconds(10); // default timeout is 5 seconds 603_socketCacheTimeout = TimeSpan.FromSeconds(timeout);
System.ServiceModel (18)
System\ServiceModel\Activation\ListenerConstants.cs (3)
25public static readonly TimeSpan RegistrationCloseTimeout = TimeSpan.FromSeconds(2); 37public static readonly TimeSpan ServiceStartTimeout = TimeSpan.FromSeconds(10); 39public static readonly TimeSpan WasConnectTimeout = TimeSpan.FromSeconds(120);
System\ServiceModel\Channels\DnsCache.cs (1)
21static readonly TimeSpan cacheTimeout = TimeSpan.FromSeconds(2);
System\ServiceModel\Channels\LifetimeManager.cs (1)
209CloseCore(TimeSpan.FromSeconds(1), true);
System\ServiceModel\Channels\MsmqReceiveContextLockManager.cs (1)
16TimeSpan messageTimeoutInterval = TimeSpan.FromSeconds(60);
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (1)
338result = lockQueue.TryPeek(message, TimeSpan.FromSeconds(0));
System\ServiceModel\Channels\NativeMsmqMessage.cs (1)
577return TimeSpan.FromSeconds(seconds);
System\ServiceModel\Channels\PeerHelpers.cs (2)
503public static TimeSpan ForwardInterval = TimeSpan.FromSeconds(10); 504public static TimeSpan ForwardTimeout = TimeSpan.FromSeconds(60);
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
52static TimeSpan TimeToWaitForStatus = TimeSpan.FromSeconds(15);
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (3)
1405static public TimeSpan UnknownInitiationTime = TimeSpan.FromSeconds(2); 1406static public TimeSpan RequestorIterationTime = TimeSpan.FromSeconds(10); 1407static public TimeSpan RequestorReceiveTime = TimeSpan.FromSeconds(10);
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
269new BackoffTimeoutHelper(TimeSpan.MaxValue, TimeSpan.FromMinutes(5), TimeSpan.FromSeconds(30));
System\ServiceModel\Channels\SocketConnection.cs (1)
2090TimeSpan listenTimeout = TimeSpan.FromSeconds(1);
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
26public static readonly TimeSpan CloseAfterFaultTimeout = TimeSpan.FromSeconds(10);
System\ServiceModel\PeerResolvers\CustomPeerResolverService.cs (1)
208TimeSpan LockWait = TimeSpan.FromSeconds(5);
System.ServiceModel.Activities (6)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (1)
1385TimeSpan.FromSeconds(600), PrepareAsyncCompletion(handleEndWaitForStoreEvents), this);
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (2)
34static TimeSpan defaultOpenTimeout = TimeSpan.FromSeconds(90); 35static TimeSpan defaultCloseTimeout = TimeSpan.FromSeconds(90);
System\ServiceModel\Activities\WorkflowServiceHost.cs (3)
32static readonly TimeSpan defaultPersistTimeout = TimeSpan.FromSeconds(30); 33static readonly TimeSpan defaultTrackTimeout = TimeSpan.FromSeconds(30); 484this.FilterResumeTimeout = TimeSpan.FromSeconds(AppSettings.FilterResumeTimeoutInSeconds);
System.ServiceModel.Discovery (3)
System\ServiceModel\Discovery\Configuration\FindCriteriaElement.cs (1)
149TimeSpan.FromSeconds(20),
System\ServiceModel\Discovery\DiscoveryClient.cs (1)
26static TimeSpan defaultCloseDuration = TimeSpan.FromSeconds(60);
System\ServiceModel\Discovery\ResolveCriteria.cs (1)
17static TimeSpan defaultDuration = TimeSpan.FromSeconds(20);
System.ServiceModel.WasHosting (1)
System\ServiceModel\WasHosting\BaseAppDomainProtocolHandler.cs (1)
23public readonly static TimeSpan DefaultStopTimeout = TimeSpan.FromSeconds(30);
System.Web (17)
Configuration\BufferModeSettings.cs (1)
66TimeSpan.FromSeconds(1),
Configuration\HealthMonitoringSection.cs (2)
262TimeSpan.FromSeconds((long)DEFAULT_HEARTBEATINTERVAL), 264new TimeSpanValidator(TimeSpan.Zero, TimeSpan.FromSeconds(MAX_HEARTBEAT_VALUE)),
Configuration\HostingEnvironmentSection.cs (1)
38TimeSpan.FromSeconds((double)DefaultShutdownTimeout),
Configuration\HttpCapabilitiesEvaluator.cs (1)
144_cachetime = TimeSpan.FromSeconds(60); // one minute default expiry
Configuration\HttpCapabilitiesSectionHandler.cs (1)
267capabilitiesEvaluator.CacheTime = TimeSpan.FromSeconds(cacheTime);
Configuration\HttpRuntimeSection.cs (3)
78TimeSpan.FromSeconds((double)DefaultExecutionTimeout), 152TimeSpan.FromSeconds((double)DefaultShutdownTimeout), 159TimeSpan.FromSeconds((double)DefaultDelayNotificationTimeout),
Configuration\PagesSection.cs (1)
148TimeSpan.FromSeconds((double)Page.DefaultAsyncTimeoutSeconds),
Configuration\ProcessModelSection.cs (1)
101TimeSpan.FromSeconds(5),
Configuration\SessionStateSection.cs (3)
95TimeSpan.FromSeconds((long) 118TimeSpan.FromSeconds((long) 128TimeSpan.FromSeconds(0),
Hosting\SuspendManager.cs (1)
19private static readonly TimeSpan _suspendMethodTimeout = TimeSpan.FromSeconds(5);
UI\DataSourceCache.cs (1)
212slidingExpiryTimeSpan = TimeSpan.FromSeconds(Duration);
UI\Page.cs (1)
3978AsyncTimeout = TimeSpan.FromSeconds((double)Page.DefaultAsyncTimeoutSeconds);
System.Web.DataVisualization (6)
Common\General\ChartElement.cs (1)
1301 span = TimeSpan.FromSeconds(interval);
WebForm\General\ChartHttpHandler.cs (5)
852private TimeSpan _timeout = TimeSpan.FromSeconds(30); 1123this.Timeout = TimeSpan.FromSeconds(seconds); 1282this.Timeout = TimeSpan.FromSeconds(3); ; 1765private TimeSpan _itemLifeTime = TimeSpan.FromSeconds(360); 1792this._current.Value.Created = DateTime.Now - this._itemLifeTime - TimeSpan.FromSeconds(1);
System.Windows.Forms.DataVisualization (1)
Common\General\ChartElement.cs (1)
1301 span = TimeSpan.FromSeconds(interval);
System.WorkflowServices (7)
System\ServiceModel\Persistence\PersistenceProvider.cs (1)
12internal static readonly TimeSpan DefaultOpenClosePersistenceTimout = TimeSpan.FromSeconds(15);
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (6)
26static readonly TimeSpan maxSecondsTimeSpan = TimeSpan.FromSeconds(int.MaxValue); 144(value > TimeSpan.FromSeconds(int.MaxValue) && value != TimeSpan.MaxValue)) 197Fx.Assert(this.lockTimeout <= TimeSpan.FromSeconds(int.MaxValue), 299Fx.Assert(timeout <= TimeSpan.FromSeconds(int.MaxValue), 1243get { return TimeSpan.FromSeconds(15); } 1248get { return TimeSpan.FromSeconds(15); }
WindowsBase (1)
Base\System\Windows\SplashScreen.cs (1)
146splashScreen.Close(TimeSpan.FromSeconds(0.3));
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);