142 references to FromMilliseconds
mscorlib (2)
system\runtime\remoting\lifetimeservices.cs (1)
43
private static long s_pollTimeTicks = TimeSpan.
FromMilliseconds
(10000).Ticks;
system\runtime\remoting\remotingconfigparser.cs (1)
1840
case "ms": span = TimeSpan.
FromMilliseconds
(value); break;
PresentationCore (53)
Core\CSharp\System\Windows\Input\InputManager.cs (1)
203
_inputTimer.Interval = TimeSpan.
FromMilliseconds
(125);
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
279
_inertiaTimer.Interval = TimeSpan.
FromMilliseconds
(15);
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
327
_restoreDT.Interval = TimeSpan.
FromMilliseconds
(100);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
2686
expirationTime += TimeSpan.
FromMilliseconds
(50); // This compensation is roughly one frame of video
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (1)
378
childEndOfActivePeriod += TimeSpan.
FromMilliseconds
(50); // This compensation is roughly one frame of video
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
673
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
907
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
673
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
907
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
673
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
907
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
673
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
907
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
673
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
907
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (1)
284
TimeSpan offsetTime = TimeSpan.
FromMilliseconds
((double)offset);
Core\CSharp\System\Windows\Media\HostVisual.cs (1)
295
TimeSpan.
FromMilliseconds
(1000),
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
284
timeoutSpan = TimeSpan.
FromMilliseconds
(-1);
Core\CSharp\System\Windows\Media\MediaContext.cs (3)
712
_estimatedNextVSyncTimer.Interval = TimeSpan.
FromMilliseconds
(17);
1210
if ((nextPresentationTicks - _estimatedNextPresentationTime.Ticks) * _animationRenderRate > TimeSpan.
FromMilliseconds
(500).Ticks)
2840
private TimeSpan _timeDelay = TimeSpan.
FromMilliseconds
(10);
PresentationFramework (13)
src\Framework\System\Windows\Controls\MenuItem.cs (1)
2649
timer.Interval = TimeSpan.
FromMilliseconds
(SystemParameters.MenuShowDelay);
src\Framework\System\Windows\Controls\PopupControlService.cs (3)
331
ToolTipTimer.Interval = TimeSpan.
FromMilliseconds
(ToolTipService.GetInitialShowDelay(o));
525
ToolTipTimer.Interval = TimeSpan.
FromMilliseconds
(ToolTipService.GetShowDuration(o));
595
ToolTipTimer.Interval = TimeSpan.
FromMilliseconds
(ToolTipService.GetBetweenShowDelay(o));
src\Framework\System\Windows\Controls\Primitives\RepeatButton.cs (2)
127
_timer.Interval = TimeSpan.
FromMilliseconds
(Delay);
150
TimeSpan interval = TimeSpan.
FromMilliseconds
(Interval);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
8722
_cleanupDelay.Interval = TimeSpan.
FromMilliseconds
(500.0);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
2743
timer.Interval = TimeSpan.
FromMilliseconds
(delay);
src\Framework\System\windows\Documents\CaretElement.cs (1)
912
Duration 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\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
765
_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.
FromMilliseconds
(
999
_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.
FromMilliseconds
(
src\Framework\System\Windows\SystemParameters.cs (1)
819
return TimeSpan.
FromMilliseconds
(MouseHoverTimeMilliseconds);
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125
animation.Duration = new Duration(TimeSpan.
FromMilliseconds
(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125
animation.Duration = new Duration(TimeSpan.
FromMilliseconds
(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125
animation.Duration = new Duration(TimeSpan.
FromMilliseconds
(milliseconds)); // Repeat every 3 seconds
SMSvcHost (1)
System\ServiceModel\Activation\MsmqActivation.cs (1)
564
static readonly TimeSpan InfiniteTimeout = TimeSpan.
FromMilliseconds
(UInt32.MaxValue);
System (4)
net\System\Net\_Connection.cs (1)
851
TimeSpan.
FromMilliseconds
(ServicePoint.MaxIdleTime) <
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
748
return TimeSpan.
FromMilliseconds
(result);
regex\system\text\regularexpressions\Regex.cs (1)
63
private static readonly TimeSpan MaximumMatchTimeout = TimeSpan.
FromMilliseconds
(Int32.MaxValue - 1);
regex\system\text\regularexpressions\RegexRunner.cs (1)
267
throw new RegexMatchTimeoutException(runtext, runregex.pattern, TimeSpan.
FromMilliseconds
(timeout));
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\LoadRetryExponentialBackoffStrategy.cs (2)
12
readonly TimeSpan DefaultBackoffMultiplier = TimeSpan.
FromMilliseconds
(100);
29
return TimeSpan.
FromMilliseconds
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (1)
208
this.tryHideTimer.Interval = TimeSpan.
FromMilliseconds
(200);
System.ComponentModel.DataAnnotations (1)
DataAnnotations\RegularExpressionAttribute.cs (1)
111
: Regex = new Regex(Pattern, default(RegexOptions), TimeSpan.
FromMilliseconds
((double)MatchTimeoutInMilliseconds));
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (1)
208
this.tryHideTimer.Interval = TimeSpan.
FromMilliseconds
(200);
System.IdentityModel (7)
System\IdentityModel\BoundedCache.cs (7)
102
_readWriteLock.AcquireWriterLock(TimeSpan.
FromMilliseconds
(-1));
147
_readWriteLock.AcquireWriterLock(TimeSpan.
FromMilliseconds
(-1));
194
_readWriteLock.AcquireWriterLock(TimeSpan.
FromMilliseconds
(-1));
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.Messaging (1)
System\Messaging\MessageQueue.cs (1)
51
public static readonly TimeSpan InfiniteTimeout = TimeSpan.
FromMilliseconds
(UInt32.MaxValue);
System.Runtime.Caching (2)
System\Caching\Configuration\MemoryCacheElement.cs (1)
57
TimeSpan.
FromMilliseconds
(ConfigUtil.DefaultPollingTimeMilliseconds),
System\Caching\MemoryCacheStatistics.cs (1)
188
return TimeSpan.
FromMilliseconds
(_configPollingInterval);
System.ServiceModel (12)
System\ServiceModel\Channels\HttpChannelHelpers.cs (3)
3645
TimeSpan.
FromMilliseconds
(response.GetResponseStream().ReadTimeout)), webException));
3675
return SocketConnection.ConvertTransferException((SocketException)ioException.InnerException, TimeSpan.
FromMilliseconds
(request.Timeout), exception);
3683
return SR.GetString(SR.HttpRequestTimedOut, request.RequestUri, TimeSpan.
FromMilliseconds
(request.Timeout));
System\ServiceModel\Channels\MsmqReceiveHelper.cs (1)
39
Thread.Sleep(TimeSpan.
FromMilliseconds
(MillisecondsToSleep));
System\ServiceModel\Channels\PipeConnection.cs (2)
1786
if (timeout >= TimeSpan.
FromMilliseconds
(backoffBufferMilliseconds * 2))
1788
backoffTimeout = TimeoutHelper.Add(timeout, TimeSpan.Zero - TimeSpan.
FromMilliseconds
(backoffBufferMilliseconds));
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
273
interval = TimeSpan.
FromMilliseconds
(Convert.ToDouble(milliseconds));
System\ServiceModel\Channels\SharedConnectionListener.cs (2)
1252
new BackoffTimeoutHelper(TimeSpan.MaxValue, TimeSpan.
FromMilliseconds
(pollMax), TimeSpan.
FromMilliseconds
(pollMin));
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
1688
base.Connection.Write(encodedSize, 0, bytesEncoded, false, TimeSpan.
FromMilliseconds
(this.WriteTimeout));
System\ServiceModel\Channels\UtilityExtension.cs (1)
45
pruneInterval = TimeSpan.
FromMilliseconds
(PruneIntervalMilliseconds + new Random(Process.GetCurrentProcess().Id).Next(PruneIntervalMilliseconds));
System\ServiceModel\Dispatcher\TransactedBatchContext.cs (1)
30
this.commitNotLaterThan = DateTime.UtcNow + TimeSpan.
FromMilliseconds
(shared.TransactionTimeout.TotalMilliseconds * 4 / 5);
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\UdpRetransmissionSettings.cs (1)
269
return diff < TimeSpan.
FromMilliseconds
(1).Ticks || (max > 0 && diff / (double) max < 1e-3);
System.ServiceModel.Discovery (4)
System\ServiceModel\Discovery\Configuration\FindCriteriaElement.cs (1)
151
new TimeSpanOrInfiniteValidator(TimeSpan.
FromMilliseconds
(1), TimeSpan.MaxValue),
System\ServiceModel\Discovery\DiscoveryDefaults.cs (3)
39
udpBE.RetransmissionSettings.DelayLowerBound = TimeSpan.
FromMilliseconds
(50);
40
udpBE.RetransmissionSettings.DelayUpperBound = TimeSpan.
FromMilliseconds
(250);
41
udpBE.RetransmissionSettings.MaxDelayPerRetransmission = TimeSpan.
FromMilliseconds
(500);
System.ServiceModel.Internals (4)
System\Runtime\BackoffTimeoutHelper.cs (1)
14
readonly static TimeSpan defaultInitialWaitTime = TimeSpan.
FromMilliseconds
(1);
System\Runtime\IOThreadCancellationTokenSource.cs (1)
25
: this(TimeSpan.
FromMilliseconds
(timeout))
System\Runtime\TimeoutHelper.cs (2)
15
public static readonly TimeSpan MaxWait = TimeSpan.
FromMilliseconds
(Int32.MaxValue);
44
return TimeSpan.
FromMilliseconds
(milliseconds);
System.Transactions (1)
System\Transactions\TransactionTable.cs (1)
214
return TimeSpan.
FromMilliseconds
( (tx.AbsoluteTimeout - this.ticks) * this.timerInterval );
System.Web (5)
Configuration\RegexMatchTimeoutValidator.cs (1)
9
private static readonly TimeSpan _maxValue = TimeSpan.
FromMilliseconds
(Int32.MaxValue - 1); // from Regex.cs
UI\Page.cs (1)
246
private static readonly TimeSpan _maxAsyncTimeout = TimeSpan.
FromMilliseconds
(Int32.MaxValue);
Util\RegexUtil.cs (3)
18
return Regex.IsMatch(stringToMatch, pattern, regOption, TimeSpan.
FromMilliseconds
((double)timeout));
28
return Regex.Match(stringToMatch, pattern, regOption, TimeSpan.
FromMilliseconds
((double)timeout));
38
return new Regex(pattern, option, TimeSpan.
FromMilliseconds
((double)timeout));
System.Web.DataVisualization (1)
Common\General\ChartElement.cs (1)
1297
span = TimeSpan.
FromMilliseconds
(interval);
System.Windows.Forms.DataVisualization (1)
Common\General\ChartElement.cs (1)
1297
span = TimeSpan.
FromMilliseconds
(interval);
WindowsBase (22)
Base\MS\Internal\WeakEventTable.cs (1)
424
Dispatcher.Invoke((Action)OnShutDown, DispatcherPriority.Send, CancellationToken.None, TimeSpan.
FromMilliseconds
(300));
Base\System\Windows\SplashScreen.cs (1)
314
_dt.Interval = TimeSpan.
FromMilliseconds
(30); // shoot for ~30 fps
Base\System\Windows\Threading\Dispatcher.cs (16)
562
Invoke(callback, DispatcherPriority.Send, CancellationToken.None, TimeSpan.
FromMilliseconds
(-1));
579
Invoke(callback, priority, CancellationToken.None, TimeSpan.
FromMilliseconds
(-1));
602
Invoke(callback, priority, cancellationToken, TimeSpan.
FromMilliseconds
(-1));
644
timeout != TimeSpan.
FromMilliseconds
(-1))
711
return Invoke(callback, DispatcherPriority.Send, CancellationToken.None, TimeSpan.
FromMilliseconds
(-1));
737
return Invoke(callback, priority, CancellationToken.None, TimeSpan.
FromMilliseconds
(-1));
769
return Invoke(callback, priority, cancellationToken, TimeSpan.
FromMilliseconds
(-1));
814
timeout != TimeSpan.
FromMilliseconds
(-1))
1133
return LegacyInvokeImpl(priority, TimeSpan.
FromMilliseconds
(-1), method, null, 0);
1159
return LegacyInvokeImpl(priority, TimeSpan.
FromMilliseconds
(-1), method, arg, 1);
1187
return LegacyInvokeImpl(priority, TimeSpan.
FromMilliseconds
(-1), method, CombineParameters(arg, args), -1);
1298
return LegacyInvokeImpl(DispatcherPriority.Normal, TimeSpan.
FromMilliseconds
(-1), method, args, -1);
1323
return LegacyInvokeImpl(priority, TimeSpan.
FromMilliseconds
(-1), method, args, -1);
1403
timeout != TimeSpan.
FromMilliseconds
(-1))
1413
timeout = TimeSpan.
FromMilliseconds
(-1);
1468
Debug.Assert(timeout.TotalMilliseconds >= 0 || timeout == TimeSpan.
FromMilliseconds
(-1));
Base\System\Windows\Threading\DispatcherOperation.cs (2)
191
return Wait(TimeSpan.
FromMilliseconds
(-1));
622
TimeSpan.
FromMilliseconds
(-1));
Base\System\Windows\Threading\DispatcherTimer.cs (2)
33
Initialize(Dispatcher.CurrentDispatcher, priority, TimeSpan.
FromMilliseconds
(0));
53
Initialize(dispatcher, priority, TimeSpan.
FromMilliseconds
(0));