45 references to FromMilliseconds
Client.ExpectedExceptions.IntegrationTests (11)
ExpectedExceptionTests.4.0.0.cs (6)
58TimeSpan serviceOperationTimeout = TimeSpan.FromMilliseconds(10000); 72binding.SendTimeout = TimeSpan.FromMilliseconds(5000); 105TimeSpan serviceOperationTimeout = TimeSpan.FromMilliseconds(5000); 119binding.SendTimeout = TimeSpan.FromMilliseconds(0); 249TimeSpan serverDelayTimeSpan = TimeSpan.FromMilliseconds(serverDelayMs); 258binding.SendTimeout = TimeSpan.FromMilliseconds(timeoutMs);
ExpectedExceptionTests.4.1.0.cs (5)
32binding.SendTimeout = TimeSpan.FromMilliseconds(40000); 164binding.SendTimeout = TimeSpan.FromMilliseconds(10000); 202binding.SendTimeout = TimeSpan.FromMilliseconds(10000); 499TimeSpan serverDelayTimeSpan = TimeSpan.FromMilliseconds(serverDelayMs); 508binding.SendTimeout = TimeSpan.FromMilliseconds(timeoutMs);
Contract.Service.IntegrationTests (2)
ServiceContractTests.4.1.0.cs (2)
247binding.SendTimeout = TimeSpan.FromMilliseconds(sendTimeoutMs); 309binding.SendTimeout = TimeSpan.FromMilliseconds(sendTimeoutMs);
Extensibility.WebSockets.IntegrationTests (5)
WebSocketTests.4.1.0.cs (5)
66uploadStream.ReadThrottle = TimeSpan.FromMilliseconds(500); 83uploadStream.ReadThrottle = TimeSpan.FromMilliseconds(500); 307uploadStream.ReadThrottle = TimeSpan.FromMilliseconds(500); 324uploadStream.ReadThrottle = TimeSpan.FromMilliseconds(500); 470uploadStream.ReadThrottle = TimeSpan.FromMilliseconds(500);
Microsoft.CodeAnalysis.Features (12)
Common\DelayTimeSpan.cs (6)
14public static readonly TimeSpan NearImmediate = TimeSpan.FromMilliseconds(50); 19public static readonly TimeSpan Short = TimeSpan.FromMilliseconds(250); 24public static readonly TimeSpan Medium = TimeSpan.FromMilliseconds(500); 29public static readonly TimeSpan Idle = TimeSpan.FromMilliseconds(1500); 34public static readonly TimeSpan IdleWithLongDelay = TimeSpan.FromMilliseconds(10000); 39public static readonly TimeSpan NonFocus = TimeSpan.FromMilliseconds(3000);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIdleProcessor.cs (1)
20private static readonly TimeSpan s_minimumDelay = TimeSpan.FromMilliseconds(50);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerTimeSpan.cs (5)
11public static readonly TimeSpan AllFilesWorkerBackOff = TimeSpan.FromMilliseconds(1500); 12public static readonly TimeSpan EntireProjectWorkerBackOff = TimeSpan.FromMilliseconds(5000); 13public static readonly TimeSpan SemanticChangeBackOff = TimeSpan.FromMilliseconds(100); 14public static readonly TimeSpan ProjectPropagationBackOff = TimeSpan.FromMilliseconds(500); 15public static readonly TimeSpan PreviewBackOff = TimeSpan.FromMilliseconds(500);
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LanguageServerProjectLoader.cs (1)
111TimeSpan.FromMilliseconds(100),
Microsoft.CodeAnalysis.Workspaces (7)
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
26private static readonly TimeSpan EntireProjectWorkerBackOff = TimeSpan.FromMilliseconds(5000);
Shared\TestHooks\AsynchronousOperationListener.cs (1)
193await Task.Delay(TimeSpan.FromMilliseconds(10)).ConfigureAwait(false);
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
118var smallTimeout = TimeSpan.FromMilliseconds(10);
Storage\SQLite\v2\SQLitePersistentStorage.cs (1)
114TimeSpan.FromMilliseconds(FlushAllDelayMS),
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
461TimeSpan.FromMilliseconds(200), // 200 chosen with absolutely no evidence whatsoever
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
187TimeSpan.FromMilliseconds(200), // 200 chosen with absolutely no evidence whatsoever
Workspace\Workspace.cs (1)
99TimeSpan.FromMilliseconds(1500),
Microsoft.Maui (1)
Animations\AnimationManager.cs (1)
84 var milliseconds = TimeSpan.FromMilliseconds(now - _lastUpdate).TotalMilliseconds;
Security.TransportSecurity.IntegrationTests (2)
Tcp\StreamingTests.4.1.0.cs (2)
202TimeSpan serviceOperationTimeout = TimeSpan.FromMilliseconds(10000); 211binding.SendTimeout = TimeSpan.FromMilliseconds(5000);
Shared (1)
ServerSentEvents\SseParser_1.cs (1)
451TimeSpan timeSpan = milliseconds == TimeSpan_MaxValueMilliseconds ? TimeSpan.MaxValue : TimeSpan.FromMilliseconds(milliseconds);
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (1)
198var cancelTask = Task.Delay(TimeSpan.FromMilliseconds(-1), cancellationToken);
VBCSCompiler.UnitTests (2)
CompilerServerApiTest.cs (1)
104keepAlive: TimeSpan.FromMilliseconds(-1));
ServerUtil.cs (1)
88keepAlive ??= TimeSpan.FromMilliseconds(-1);