289 references to FromMinutes
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
451return TimeSpan.FromMinutes(5);
Binding.Tcp.IntegrationTests (1)
NetTcpBindingTests.4.0.0.cs (1)
138binding.SendTimeout = binding.ReceiveTimeout = TimeSpan.FromMinutes(10);
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
276TimeSpan MaxRegexTimeout = TimeSpan.FromMinutes(1);
dotnet-getdocument (1)
Exe.cs (1)
52if (!process.WaitForExit((int)(TimeSpan.FromMinutes(2).TotalMilliseconds)))
HelixTestRunner (7)
TestRunner.cs (7)
140cancellationToken: new CancellationTokenSource(TimeSpan.FromMinutes(2)).Token); 148cancellationToken: new CancellationTokenSource(TimeSpan.FromMinutes(2)).Token); 156cancellationToken: new CancellationTokenSource(TimeSpan.FromMinutes(2)).Token); 178cancellationToken: new CancellationTokenSource(TimeSpan.FromMinutes(2)).Token); 187cancellationToken: new CancellationTokenSource(TimeSpan.FromMinutes(2)).Token); 206cancellationToken: new CancellationTokenSource(TimeSpan.FromMinutes(2)).Token); 229var testProcessTimeout = Options.Timeout.Subtract(TimeSpan.FromMinutes(5));
IIS.Common.TestLib (2)
TestConnections.cs (1)
23private static readonly TimeSpan Timeout = TimeSpan.FromMinutes(2);
TimeoutExtensions.cs (1)
13public static TimeSpan DefaultTimeoutValue = TimeSpan.FromMinutes(10);
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (2)
47var client = new HttpClient(new LoggingHandler(new WinHttpHandler() { SendTimeout = TimeSpan.FromMinutes(3) }, deploymentResult.Logger)); 65var client = new HttpClient(new LoggingHandler(new WinHttpHandler() { SendTimeout = TimeSpan.FromMinutes(3) }, deploymentResult.Logger));
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (2)
47var client = new HttpClient(new LoggingHandler(new WinHttpHandler() { SendTimeout = TimeSpan.FromMinutes(3) }, deploymentResult.Logger)); 65var client = new HttpClient(new LoggingHandler(new WinHttpHandler() { SendTimeout = TimeSpan.FromMinutes(3) }, deploymentResult.Logger));
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
157TimeSpan.FromMinutes(1),
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
18private static readonly TimeSpan Timeout = TimeSpan.FromMinutes(1);
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (1)
159var ws = WebSocket.CreateFromStream(opaqueTransport, isServer: true, subProtocol: null, keepAliveInterval: TimeSpan.FromMinutes(2));
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
719using (var client = HttpHelpers.CreateClient(expect100ContinueTimeout: TimeSpan.FromMinutes(20)))
InteropTests (2)
src\Shared\Process\ProcessEx.cs (2)
21private static readonly TimeSpan DefaultProcessTimeout = TimeSpan.FromMinutes(15); 32private readonly CancellationTokenSource _stdoutLinesCancellationSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));
Microsoft.AspNetCore.Authentication (1)
RemoteAuthenticationOptions.cs (1)
117public TimeSpan RemoteAuthenticationTimeout { get; set; } = TimeSpan.FromMinutes(15);
Microsoft.AspNetCore.Authentication.Certificate (2)
CertificateValidationCache.cs (1)
53var absoluteExpiration = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(30));
CertificateValidationCacheOptions.cs (1)
16public TimeSpan CacheEntryExpiration { get; set; } = TimeSpan.FromMinutes(2);
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerOptions.cs (1)
93public TimeSpan BackchannelTimeout { get; set; } = TimeSpan.FromMinutes(1);
Microsoft.AspNetCore.Authentication.Negotiate (3)
LdapSettings.cs (2)
63public TimeSpan ClaimsCacheSlidingExpiration { get; set; } = TimeSpan.FromMinutes(10); 69public TimeSpan ClaimsCacheAbsoluteExpiration { get; set; } = TimeSpan.FromMinutes(60);
PostConfigureNegotiateOptions.cs (1)
87ldapSettings.LdapConnection.Timeout = TimeSpan.FromMinutes(1);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
187NonceLifetime = TimeSpan.FromMinutes(15)
Microsoft.AspNetCore.Authentication.Test (55)
CertificateTests.cs (1)
763timeProvider.Advance(TimeSpan.FromMinutes(31));
CookieTests.cs (50)
442o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 451_timeProvider.Advance(TimeSpan.FromMinutes(7)); 455_timeProvider.Advance(TimeSpan.FromMinutes(7)); 472o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 478new AuthenticationProperties() { ExpiresUtc = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(5)) })); 485_timeProvider.Advance(TimeSpan.FromMinutes(3)); 489_timeProvider.Advance(TimeSpan.FromMinutes(3)); 506o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 523_timeProvider.Advance(TimeSpan.FromMinutes(11)); 535o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 564o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 601o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 623_timeProvider.Advance(TimeSpan.FromMinutes(5)); 629_timeProvider.Advance(TimeSpan.FromMinutes(6)); 635_timeProvider.Advance(TimeSpan.FromMinutes(5)); 675o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 723o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 744_timeProvider.Advance(TimeSpan.FromMinutes(5)); 750_timeProvider.Advance(TimeSpan.FromMinutes(6)); 756_timeProvider.Advance(TimeSpan.FromMinutes(11)); 768o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 800_timeProvider.Advance(TimeSpan.FromMinutes(5)); 806_timeProvider.Advance(TimeSpan.FromMinutes(6)); 812_timeProvider.Advance(TimeSpan.FromMinutes(11)); 824o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 859_timeProvider.Advance(TimeSpan.FromMinutes(1)); 865_timeProvider.Advance(TimeSpan.FromMinutes(1)); 871_timeProvider.Advance(TimeSpan.FromMinutes(9)); 883o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 905_timeProvider.Advance(TimeSpan.FromMinutes(5)); 911_timeProvider.Advance(TimeSpan.FromMinutes(6)); 917_timeProvider.Advance(TimeSpan.FromMinutes(5)); 933o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 963_timeProvider.Advance(TimeSpan.FromMinutes(1)); 969_timeProvider.Advance(TimeSpan.FromMinutes(2)); 984o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 990context.Properties.ExpiresUtc = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(5)); 1004_timeProvider.Advance(TimeSpan.FromMinutes(3)); 1010_timeProvider.Advance(TimeSpan.FromMinutes(3)); 1022o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 1034_timeProvider.Advance(TimeSpan.FromMinutes(4)); 1040_timeProvider.Advance(TimeSpan.FromMinutes(4)); 1047_timeProvider.Advance(TimeSpan.FromMinutes(4)); 1059o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 1080_timeProvider.Advance(TimeSpan.FromMinutes(4)); 1086_timeProvider.Advance(TimeSpan.FromMinutes(4)); 1093_timeProvider.Advance(TimeSpan.FromMinutes(4)); 1105o.ExpireTimeSpan = TimeSpan.FromMinutes(10); 1128_timeProvider.Advance(TimeSpan.FromMinutes(4)); 1134_timeProvider.Advance(TimeSpan.FromMinutes(4));
OpenIdConnect\OpenIdConnectChallengeTests.cs (1)
503opt.MaxAge = TimeSpan.FromMinutes(20);
OpenIdConnect\OpenIdConnectTests.cs (2)
445Assert.Equal(options.BackchannelTimeout, TimeSpan.FromMinutes(5)); 488Assert.Equal(TimeSpan.FromMinutes(1), options.BackchannelTimeout);
OpenIdConnect\TestSettings.cs (1)
277Assert.Equal(TimeSpan.FromMinutes(20), _options.MaxAge.Value);
Microsoft.AspNetCore.Components.Endpoints (2)
DependencyInjection\RazorComponentsServiceOptions.cs (1)
14private TimeSpan _temporaryRedirectionUrlValidityDuration = TimeSpan.FromMinutes(5);
src\Shared\Components\ServerComponentSerializationSettings.cs (1)
24public static readonly TimeSpan DataExpiration = TimeSpan.FromMinutes(5);
Microsoft.AspNetCore.Components.Server (3)
CircuitOptions.cs (2)
47public TimeSpan DisconnectedCircuitRetentionPeriod { get; set; } = TimeSpan.FromMinutes(3); 105public TimeSpan JSInteropDefaultCallTimeout { get; set; } = TimeSpan.FromMinutes(1);
src\Shared\Components\ServerComponentSerializationSettings.cs (1)
24public static readonly TimeSpan DataExpiration = TimeSpan.FromMinutes(5);
Microsoft.AspNetCore.Components.Server.Tests (11)
Circuits\RemoteJSDataStreamTest.cs (4)
24var remoteJSDataStream = await RemoteJSDataStream.CreateRemoteJSDataStreamAsync(_jsRuntime, jsStreamReference, totalLength: 100, signalRMaximumIncomingBytes: 10_000, jsInteropDefaultCallTimeout: TimeSpan.FromMinutes(1), cancellationToken: CancellationToken.None).DefaultTimeout(); 162var remoteJSDataStream = await RemoteJSDataStream.CreateRemoteJSDataStreamAsync(jsRuntime, jsStreamReference, totalLength: 100, signalRMaximumIncomingBytes: 10_000, jsInteropDefaultCallTimeout: TimeSpan.FromMinutes(1), cancellationToken: CancellationToken.None); 182var remoteJSDataStream = await RemoteJSDataStream.CreateRemoteJSDataStreamAsync(jsRuntime, jsStreamReference, totalLength: 100, signalRMaximumIncomingBytes: 10_000, jsInteropDefaultCallTimeout: TimeSpan.FromMinutes(1), cancellationToken: CancellationToken.None); 348var remoteJSDataStream = await RemoteJSDataStream.CreateRemoteJSDataStreamAsync(jsRuntime ?? _jsRuntime, jsStreamReference, totalLength: 100, signalRMaximumIncomingBytes: 10_000, jsInteropDefaultCallTimeout: TimeSpan.FromMinutes(1), cancellationToken: CancellationToken.None);
DependencyInjection\ComponentServiceCollectionExtensionsTest.cs (7)
38options.HandshakeTimeout = TimeSpan.FromMinutes(10); 47Assert.Equal(TimeSpan.FromMinutes(10), options.Value.HandshakeTimeout); 57Assert.Equal(TimeSpan.FromMinutes(10), options.HandshakeTimeout); 58options.HandshakeTimeout = TimeSpan.FromMinutes(5); 64options.HandshakeTimeout = TimeSpan.FromMinutes(10); 74Assert.Equal(TimeSpan.FromMinutes(5), options.Value.HandshakeTimeout); 77Assert.Equal(TimeSpan.FromMinutes(10), globalOptions.Value.HandshakeTimeout);
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\RemoteBrowserFileStreamOptions.cs (1)
38public TimeSpan SegmentFetchTimeout { get; set; } = TimeSpan.FromMinutes(1);
Microsoft.AspNetCore.CookiePolicy.Test (1)
CookieChunkingTests.cs (1)
36MaxAge = TimeSpan.FromMinutes(5)
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\Internal\CacheableKeyRing.cs (1)
48var extension = TimeSpan.FromMinutes(2);
KeyManagement\KeyManagementOptions.cs (1)
20private static readonly TimeSpan _maxServerClockSkew = TimeSpan.FromMinutes(5);
Microsoft.AspNetCore.DataProtection.Tests (4)
KeyManagement\KeyRingProviderTests.cs (4)
613.Setup(o => o.GetCacheableKeyRing(now + TimeSpan.FromMinutes(1))) 619.Setup(o => o.GetCacheableKeyRing(now + TimeSpan.FromMinutes(2))) 629var retVal2 = keyRingProvider.GetCurrentKeyRingCore(now + TimeSpan.FromMinutes(1)); 630var retVal3 = keyRingProvider.GetCurrentKeyRingCore(now + TimeSpan.FromMinutes(2), forceRefresh: true);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
276TimeSpan MaxRegexTimeout = TimeSpan.FromMinutes(1);
Microsoft.AspNetCore.Hosting.FunctionalTests (4)
LinkedApplicationTests.cs (1)
35PublishTimeout = TimeSpan.FromMinutes(10), // Machines are slow (these tests restore)
ShutdownTests.cs (2)
93await startedTcs.Task.TimeoutAfter(TimeSpan.FromMinutes(1)); 106await completedTcs.Task.TimeoutAfter(TimeSpan.FromMinutes(1));
WebHostBuilderTests.cs (1)
55await tcs.Task.TimeoutAfter(TimeSpan.FromMinutes(1));
Microsoft.AspNetCore.Identity (5)
IdentityCookiesBuilderExtensions.cs (2)
70o.ExpireTimeSpan = TimeSpan.FromMinutes(5); 107o.ExpireTimeSpan = TimeSpan.FromMinutes(5);
IdentityServiceCollectionExtensions.cs (2)
70o.ExpireTimeSpan = TimeSpan.FromMinutes(5); 87o.ExpireTimeSpan = TimeSpan.FromMinutes(5);
SecurityStampValidatorOptions.cs (1)
17public TimeSpan ValidationInterval { get; set; } = TimeSpan.FromMinutes(30);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
src\Identity\Extensions.Core\src\Rfc6238AuthenticationService.cs (1)
17private static readonly TimeSpan _timestep = TimeSpan.FromMinutes(3);
Microsoft.AspNetCore.Identity.InMemory.Test (9)
FunctionalTest.cs (9)
77options.ExpireTimeSpan = TimeSpan.FromMinutes(10); 99timeProvider.Advance(TimeSpan.FromMinutes(7)); 105timeProvider.Advance(TimeSpan.FromMinutes(7)); 146timeProvider.Advance(TimeSpan.FromMinutes(10)); 152timeProvider.Advance(TimeSpan.FromMinutes(21)); 198timeProvider.Advance(TimeSpan.FromMinutes(10)); 204timeProvider.Advance(TimeSpan.FromMinutes(21)); 239timeProvider.Advance(TimeSpan.FromMinutes(30)); 275timeProvider.Advance(TimeSpan.FromMinutes(30) + TimeSpan.FromMilliseconds(1));
Microsoft.AspNetCore.Identity.Test (5)
IdentityOptionsTest.cs (2)
18Assert.Equal(TimeSpan.FromMinutes(5), options.Lockout.DefaultLockoutTimeSpan); 36Assert.Equal(TimeSpan.FromMinutes(1), options.Passkey.Timeout);
SecurityStampValidatorTest.cs (1)
282options.Setup(a => a.Value).Returns(new SecurityStampValidatorOptions { ValidationInterval = TimeSpan.FromMinutes(1), TimeProvider = timeProvider });
SignInManagerTest.cs (2)
1393Timeout = TimeSpan.FromMinutes(10), 1456Timeout = TimeSpan.FromMinutes(10),
Microsoft.AspNetCore.Mvc.Razor (1)
RazorViewEngine.cs (1)
37private static readonly TimeSpan _cacheExpirationDuration = TimeSpan.FromMinutes(20);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
CacheTagHelperTest.cs (2)
340ExpiresAfter = TimeSpan.FromMinutes(10) 361ExpiresAfter = TimeSpan.FromMinutes(10)
DistributedCacheTagHelperTest.cs (2)
370ExpiresAfter = TimeSpan.FromMinutes(10) 393ExpiresAfter = TimeSpan.FromMinutes(10)
Microsoft.AspNetCore.Mvc.Testing (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.7.25327.102\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
38return TimeSpan.FromMinutes(5);
Microsoft.AspNetCore.OpenApi.Build.Tests (1)
GenerateAdditionalXmlFilesForOpenApiTests.cs (1)
12private static readonly TimeSpan _defaultProcessTimeout = TimeSpan.FromMinutes(2);
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
247return TimeSpan.FromMinutes(5);
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
247var created = new DateTimeOffset(ticks, TimeSpan.FromMinutes(offsetMinutes));
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
131var gcLifetime = TimeSpan.FromMinutes(5);
Microsoft.AspNetCore.OutputCaching.Tests (2)
MemoryOutputCacheStoreTests.cs (2)
18await store.SetAsync(key, value, null, TimeSpan.FromMinutes(1), default); 245await Assert.ThrowsAsync<ArgumentException>(async () => await store.SetAsync(key, value, new string[] { tag }, TimeSpan.FromMinutes(1), default));
Microsoft.AspNetCore.Rewrite (1)
ApacheModRewrite\CookieActionFactory.cs (1)
88action!.Lifetime = TimeSpan.FromMinutes(minutes);
Microsoft.AspNetCore.Rewrite.Tests (3)
ApacheModRewrite\CookieActionFactoryTest.cs (2)
18Assert.Equal(TimeSpan.FromMinutes(1440), cookie.Lifetime); 32Assert.Equal(TimeSpan.FromMinutes(1440), action.Lifetime);
UrlActions\ChangeCookieActionTests.cs (1)
21Lifetime = TimeSpan.FromMinutes(1440),
Microsoft.AspNetCore.Server.IntegrationTesting (5)
ApplicationPublisher.cs (1)
78var timeout = deploymentParameters.PublishTimeout ?? TimeSpan.FromMinutes(5);
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
259await Task.Delay(TimeSpan.FromMinutes(1));
Deployers\SelfHostDeployer.cs (1)
198await started.Task.TimeoutAfter(TimeSpan.FromMinutes(15));
src\Shared\Process\ProcessEx.cs (2)
21private static readonly TimeSpan DefaultProcessTimeout = TimeSpan.FromMinutes(15); 32private readonly CancellationTokenSource _stdoutLinesCancellationSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (3)
IISExpressDeployer.cs (3)
26private readonly TimeSpan ShutdownTimeSpan = Debugger.IsAttached ? TimeSpan.FromMinutes(60) : TimeSpan.FromMinutes(2); 243if (!await started.Task.TimeoutAfter(TimeSpan.FromMinutes(15)))
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
276TimeSpan MaxRegexTimeout = TimeSpan.FromMinutes(1);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
157TimeSpan.FromMinutes(1),
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
18private static readonly TimeSpan Timeout = TimeSpan.FromMinutes(1);
Microsoft.AspNetCore.Session (2)
SessionOptions.cs (2)
38public TimeSpan IdleTimeout { get; set; } = TimeSpan.FromMinutes(20); 44public TimeSpan IOTimeout { get; set; } = TimeSpan.FromMinutes(1);
Microsoft.AspNetCore.Session.Tests (2)
SessionTests.cs (2)
480services.AddSession(o => o.IdleTimeout = TimeSpan.FromMinutes(20)); 500clock.Add(TimeSpan.FromMinutes(10));
Microsoft.AspNetCore.SignalR.Client.Tests (5)
HubConnectionBuilderTests.cs (4)
84var serverTimeout = TimeSpan.FromMinutes(1); 97var keepAliveInterval = TimeSpan.FromMinutes(1); 110var serverTimeout = TimeSpan.FromMinutes(2); 111var keepAliveInterval = TimeSpan.FromMinutes(3);
HubConnectionTests.Reconnect.cs (1)
1068return TimeSpan.FromMinutes(1);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Docker.cs (1)
115RunProcessAndThrowIfFailed(_path, $"run --rm -p 6379:6379 --name {_dockerContainerName} -d redis", "redis", logger, TimeSpan.FromMinutes(1));
Microsoft.AspNetCore.TestHost (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.7.25327.102\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
38return TimeSpan.FromMinutes(5);
Microsoft.AspNetCore.WebSockets (1)
WebSocketOptions.cs (1)
18KeepAliveInterval = TimeSpan.FromMinutes(2);
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
AutobahnTests.cs (1)
15private static readonly TimeSpan TestTimeout = TimeSpan.FromMinutes(3);
Microsoft.AspNetCore.WebSockets.Tests (2)
WebSocketPair.cs (2)
32clientSocket: WebSocket.CreateFromStream(clientStream, isServer: false, subProtocol: null, keepAliveInterval: TimeSpan.FromMinutes(2)), 33serverSocket: WebSocket.CreateFromStream(serverStream, isServer: true, subProtocol: null, keepAliveInterval: TimeSpan.FromMinutes(2)));
Microsoft.Build.Framework.UnitTests (1)
WorkerNodeTelemetryEventArgs_Tests.cs (1)
21{ (TaskOrTargetTelemetryKey)"task1", new TaskExecutionStats(TimeSpan.FromMinutes(1), 5, 1234) },
Microsoft.Build.Tasks.UnitTests (2)
ResourceHandling\GenerateResource_Tests.cs (2)
356File.SetLastWriteTime(resxFileInput, DateTime.Now.Subtract(TimeSpan.FromMinutes(5))); 357File.SetLastWriteTime(resourceOutput, DateTime.Now.Subtract(TimeSpan.FromMinutes(10)));
Microsoft.CodeAnalysis.LanguageServer (1)
Program.cs (1)
82var timeout = TimeSpan.FromMinutes(2);
Microsoft.DotNet.Build.Tasks.Feed (3)
src\common\UploadToAzure.cs (1)
117CancellationTokenSource timeoutTokenSource = new CancellationTokenSource(TimeSpan.FromMinutes(UploadTimeoutInMinutes));
src\PublishArtifactsInManifestBase.cs (2)
942using CancellationTokenSource timeoutTokenSource = new CancellationTokenSource(TimeSpan.FromMinutes(TimeoutInMinutes)); 977new CancellationTokenSource(TimeSpan.FromMinutes(TimeoutInMinutes));
Microsoft.DotNet.Internal.SymbolHelper (3)
SymbolPromotionHelper.cs (1)
61MaxDelay = TimeSpan.FromMinutes(1),
SymbolUploadHelper.cs (1)
449lcts.CancelAfter(TimeSpan.FromMinutes(_symbolToolTimeoutInMins));
SymbolUploadHelperFactory.cs (1)
121MaxDelay = TimeSpan.FromMinutes(5),
Microsoft.DotNet.SignTool (1)
src\VerifySignatures.cs (1)
29private static readonly HttpClient client = new(new SocketsHttpHandler { PooledConnectionLifetime = TimeSpan.FromMinutes(10) });
Microsoft.DotNet.XUnitAssert.Tests (8)
EqualityAssertsTests.cs (8)
1762 var precision = TimeSpan.FromMinutes(1); 1777 var precision = TimeSpan.FromMinutes(1); 1778 var difference = TimeSpan.FromMinutes(2); 1881 var precision = TimeSpan.FromMinutes(1); 1896 var precision = TimeSpan.FromMinutes(1); 1897 var difference = TimeSpan.FromMinutes(2); 1930 var precision = TimeSpan.FromMinutes(1); 1945 var precision = TimeSpan.FromMinutes(1);
Microsoft.Extensions.ApiDescription.Client.Tests (2)
src\Shared\Process\ProcessEx.cs (2)
21private static readonly TimeSpan DefaultProcessTimeout = TimeSpan.FromMinutes(15); 32private readonly CancellationTokenSource _stdoutLinesCancellationSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));
Microsoft.Extensions.Caching.Hybrid.Tests (22)
DistributedCacheTests.cs (9)
81Clock.Add(TimeSpan.FromMinutes(4)); 86Clock.Add(TimeSpan.FromMinutes(2)); 127Clock.Add(TimeSpan.FromMinutes(4)); 132Clock.Add(TimeSpan.FromMinutes(2)); 195Clock.Add(TimeSpan.FromMinutes(4)); 200Clock.Add(TimeSpan.FromMinutes(2)); 257Clock.Add(TimeSpan.FromMinutes(4)); 262Clock.Add(TimeSpan.FromMinutes(2)); 393= new() { AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(5) };
ExpirationTests.cs (2)
27HybridCacheEntryOptions options = new() { Expiration = TimeSpan.FromMinutes(2), LocalCacheExpiration = TimeSpan.FromMinutes(1) };
PayloadTests.cs (7)
50int actualLength = HybridCachePayload.Write(oversized, key, cache.CurrentTimestamp(), TimeSpan.FromMinutes(1), 0, tags, new(bytes)); 80int actualLength = HybridCachePayload.Write(oversized, key, cache.CurrentTimestamp(), TimeSpan.FromMinutes(1), 0, tags, new(bytes)); 114int actualLength = HybridCachePayload.Write(oversized, key, cache.CurrentTimestamp(), TimeSpan.FromMinutes(1), 0, tags, new(bytes)); 144int actualLength = HybridCachePayload.Write(oversized, key, cache.CurrentTimestamp(), TimeSpan.FromMinutes(1), 0, tags, new(bytes)); 181int actualLength = HybridCachePayload.Write(oversized, key, creation, TimeSpan.FromMinutes(1), 0, tags, new(bytes)); 234int actualLength = HybridCachePayload.Write(oversized, key, cache.CurrentTimestamp(), TimeSpan.FromMinutes(1), 0, tags, new(bytes)); 261int actualLength = HybridCachePayload.Write(oversized, key, cache.CurrentTimestamp(), TimeSpan.FromMinutes(1), 0, tags, new(bytes));
ServiceConstructionTests.cs (4)
257Expiration = defaultExpiration is null ? null : TimeSpan.FromMinutes(defaultExpiration.GetValueOrDefault()), 258LocalCacheExpiration = defaultLocalCacheExpiration is null ? null : TimeSpan.FromMinutes(defaultLocalCacheExpiration.GetValueOrDefault()), 272Expiration = perItemExpiration is null ? null : TimeSpan.FromMinutes(perItemExpiration.GetValueOrDefault()), 273LocalCacheExpiration = perItemLocalCacheExpiration is null ? null : TimeSpan.FromMinutes(perItemLocalCacheExpiration.GetValueOrDefault()),
Microsoft.Extensions.Caching.Memory (1)
MemoryCacheOptions.cs (1)
29public TimeSpan ExpirationScanFrequency { get; set; } = TimeSpan.FromMinutes(1);
Microsoft.Extensions.Caching.SqlServer (3)
SqlServerCache.cs (2)
21private static readonly TimeSpan MinimumExpiredItemsDeletionInterval = TimeSpan.FromMinutes(5); 22private static readonly TimeSpan DefaultExpiredItemsDeletionInterval = TimeSpan.FromMinutes(30);
SqlServerCacheOptions.cs (1)
44public TimeSpan DefaultSlidingExpiration { get; set; } = TimeSpan.FromMinutes(20);
Microsoft.Extensions.Caching.SqlServer.Tests (4)
SqlServerCacheWithDatabaseTest.cs (4)
105new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromMinutes(30))); 168cacheOptions.DefaultSlidingExpiration = cacheOptions.DefaultSlidingExpiration.Add(TimeSpan.FromMinutes(10)); 214new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromMinutes(30))); 438absoluteExpiration = testClock.UtcNow.Add(TimeSpan.FromMinutes(30));
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (5)
HealthCheckPublisherHostedServiceTest.cs (5)
761options.Delay = TimeSpan.FromMinutes(5); 762options.Period = TimeSpan.FromMinutes(5); 763options.Timeout = TimeSpan.FromMinutes(5); 788private Task RunServiceAsync(HealthCheckPublisherHostedService service) => service.RunAsync((TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(5)));
Microsoft.Extensions.Diagnostics.Probes.Tests (2)
TcpEndpointProbesServiceTests.cs (2)
47timeProvider.Advance(TimeSpan.FromMinutes(1)); 56timeProvider.Advance(TimeSpan.FromMinutes(1));
Microsoft.Extensions.Http (1)
HttpClientFactoryOptions.cs (1)
23private TimeSpan _handlerLifetime = TimeSpan.FromMinutes(2);
Microsoft.Extensions.Identity.Core (3)
LockoutOptions.cs (1)
34public TimeSpan DefaultLockoutTimeSpan { get; set; } = TimeSpan.FromMinutes(5);
PasskeyOptions.cs (1)
25public TimeSpan Timeout { get; set; } = TimeSpan.FromMinutes(1);
Rfc6238AuthenticationService.cs (1)
17private static readonly TimeSpan _timestep = TimeSpan.FromMinutes(3);
Microsoft.Extensions.Validation.GeneratorTests (1)
ValidationsGeneratorTestBase.cs (1)
252return TimeSpan.FromMinutes(5);
Microsoft.JSInterop.Tests (2)
JSRuntimeExtensionsTest.cs (2)
106var result = await jsRuntime.Object.InvokeAsync<string>(method, TimeSpan.FromMinutes(5), args); 152await jsRuntime.Object.InvokeVoidAsync(method, TimeSpan.FromMinutes(5), args);
Microsoft.ML.PerformanceTests (1)
Harness\Configs.cs (1)
21Add(DefaultConfig.Instance.WithOption(ConfigOptions.Default, true).WithBuildTimeout(TimeSpan.FromMinutes(5))); // this config contains all of the basic settings (exporters, columns etc)
Microsoft.ML.TestFrameworkCommon (1)
AsyncTestHelper.cs (1)
16return Debugger.IsAttached ? TimeSpan.FromHours(1) : TimeSpan.FromMinutes(1);
Microsoft.ML.Tokenizers.Tests (2)
LlamaTests.cs (1)
21private static readonly HttpClient _httpClient = new HttpClient() { Timeout = TimeSpan.FromMinutes(5) };
Utils.cs (1)
17using (var client = new HttpClient() { Timeout = TimeSpan.FromMinutes(5) })
PresentationCore (1)
MS\Internal\Automation\ElementUtil.cs (1)
190TimeSpan.FromMinutes(3),
RunTests (1)
Options.cs (1)
253Timeout = timeout is { } t ? TimeSpan.FromMinutes(t) : null,
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
18private static readonly TimeSpan Timeout = TimeSpan.FromMinutes(1);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
18private static readonly TimeSpan Timeout = TimeSpan.FromMinutes(1);
System.Configuration.ConfigurationManager (1)
System\Configuration\TimeSpanMinutesConverter.cs (1)
22return TimeSpan.FromMinutes(min);
System.Net.Http (1)
src\libraries\Common\src\System\Net\Http\HttpHandlerDefaults.cs (1)
29public static readonly TimeSpan DefaultPooledConnectionIdleTimeout = TimeSpan.FromMinutes(1);
System.Net.Requests (1)
src\libraries\Common\src\System\Net\Http\HttpHandlerDefaults.cs (1)
29public static readonly TimeSpan DefaultPooledConnectionIdleTimeout = TimeSpan.FromMinutes(1);
System.Net.Security (1)
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
23internal static TimeSpan MinRefreshBeforeExpirationInterval => TimeSpan.FromMinutes(5);
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (1)
11private static readonly TimeSpan s_maxUrlRetrievalTimeout = TimeSpan.FromMinutes(1);
System\Security\Cryptography\X509Certificates\OpenSslCachedSystemStoreProvider.cs (1)
22private static readonly TimeSpan s_assumeInvalidInterval = TimeSpan.FromMinutes(5);
System.ServiceModel.Primitives.Tests (2)
Channels\CommunicationObjectTest.cs (2)
144TimeSpan timeout = TimeSpan.FromMinutes(30); 239TimeSpan timeout = TimeSpan.FromMinutes(5);
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
271return TimeSpan.FromMinutes(timeToLive);
System.Xaml.Tests (4)
System\Xaml\Replacements\DateTimeOffsetConverter2Tests.cs (4)
31DateTimeOffset dateTimeOffset = new DateTimeOffset(2018, 12, 9, 1, 2, 3, 4, TimeSpan.FromMinutes(10)); 71yield return new object?[] { new DateTimeOffset(2018, 12, 9, 1, 2, 3, 4, TimeSpan.FromMinutes(10)), new CultureInfo("en-US") }; 86var dateTimeOffset = new DateTimeOffset(2018, 12, 9, 1, 2, 3, 4, TimeSpan.FromMinutes(10)); 92Assert.Equal(new object[] { 2018, 12, 9, 1, 2, 3, 4, TimeSpan.FromMinutes(10) }, descriptor.Arguments);
Templates.Blazor.Tests (5)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
49Timeout = TimeSpan.FromMinutes(2)
src\ProjectTemplates\Shared\ProcessLock.cs (1)
27timeout ??= TimeSpan.FromMinutes(20);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
276TimeSpan MaxRegexTimeout = TimeSpan.FromMinutes(1);
src\Shared\Process\ProcessEx.cs (2)
21private static readonly TimeSpan DefaultProcessTimeout = TimeSpan.FromMinutes(15); 32private readonly CancellationTokenSource _stdoutLinesCancellationSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));
Templates.Blazor.WebAssembly.Auth.Tests (5)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
49Timeout = TimeSpan.FromMinutes(2)
src\ProjectTemplates\Shared\ProcessLock.cs (1)
27timeout ??= TimeSpan.FromMinutes(20);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
276TimeSpan MaxRegexTimeout = TimeSpan.FromMinutes(1);
src\Shared\Process\ProcessEx.cs (2)
21private static readonly TimeSpan DefaultProcessTimeout = TimeSpan.FromMinutes(15); 32private readonly CancellationTokenSource _stdoutLinesCancellationSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));
Templates.Blazor.WebAssembly.Tests (5)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
49Timeout = TimeSpan.FromMinutes(2)
src\ProjectTemplates\Shared\ProcessLock.cs (1)
27timeout ??= TimeSpan.FromMinutes(20);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
276TimeSpan MaxRegexTimeout = TimeSpan.FromMinutes(1);
src\Shared\Process\ProcessEx.cs (2)
21private static readonly TimeSpan DefaultProcessTimeout = TimeSpan.FromMinutes(15); 32private readonly CancellationTokenSource _stdoutLinesCancellationSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));
Templates.Mvc.Tests (5)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
49Timeout = TimeSpan.FromMinutes(2)
src\ProjectTemplates\Shared\ProcessLock.cs (1)
27timeout ??= TimeSpan.FromMinutes(20);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
276TimeSpan MaxRegexTimeout = TimeSpan.FromMinutes(1);
src\Shared\Process\ProcessEx.cs (2)
21private static readonly TimeSpan DefaultProcessTimeout = TimeSpan.FromMinutes(15); 32private readonly CancellationTokenSource _stdoutLinesCancellationSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));
Templates.Tests (5)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
49Timeout = TimeSpan.FromMinutes(2)
src\ProjectTemplates\Shared\ProcessLock.cs (1)
27timeout ??= TimeSpan.FromMinutes(20);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
276TimeSpan MaxRegexTimeout = TimeSpan.FromMinutes(1);
src\Shared\Process\ProcessEx.cs (2)
21private static readonly TimeSpan DefaultProcessTimeout = TimeSpan.FromMinutes(15); 32private readonly CancellationTokenSource _stdoutLinesCancellationSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));
Wasm.Performance.Driver (1)
Program.cs (1)
79var timeForEachRun = TimeSpan.FromMinutes(3);