51 references to TimeoutAfter
IIS.Common.TestLib (1)
TestConnections.cs (1)
134task = task.TimeoutAfter(Timeout);
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
IIS.Tests (15)
ClientDisconnectTests.cs (14)
35await requestAborted.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 47await requestStartedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 50await requestAborted.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 52await requestCompletedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 90await requestStartedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 93await requestCompletedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 128await requestStartedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 131await requestCompletedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 172await requestStartedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 174await requestCompletedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 211await readIsAsyncCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 213await requestCompletedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 272await requestCompletedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 315await requestCompletedCompletionSource.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
ResponseAbortTests.cs (1)
46await bodyReceived.Task.TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
InMemory.FunctionalTests (4)
ChunkedRequestTests.cs (1)
897var badReqEx = await exTcs.Task.TimeoutAfter(TestConstants.DefaultTimeout);
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (3)
107task = task.TimeoutAfter(Timeout); 133var count = await _reader.ReadAsync(ch, 0, 128).TimeoutAfter(Timeout).ConfigureAwait(false); 141var bytesTransferred = await _stream.ReadAsync(buffer, 0, 128).ContinueWith(t => t.IsFaulted ? 0 : t.Result).TimeoutAfter(Timeout);
Microsoft.AspNetCore.InternalTesting (4)
src\Shared\TaskExtensions.cs (4)
56return task.TimeoutAfter(TimeSpan.FromMilliseconds(milliseconds), filePath, lineNumber); 61return task.TimeoutAfter(timeout, filePath, lineNumber); 66return task.AsTask().TimeoutAfter(TimeSpan.FromMilliseconds(milliseconds), filePath, lineNumber); 71return task.AsTask().TimeoutAfter(timeout, filePath, lineNumber);
Microsoft.AspNetCore.InternalTesting.Tests (2)
TaskExtensionsTest.cs (2)
24await Task.FromResult(true).TimeoutAfter(TimeSpan.FromMilliseconds(30000)); 85var exception = await Assert.ThrowsAsync<TimeoutException>(() => ExpectedTimeout().TimeoutAfter(TimeSpan.FromMilliseconds(30000)));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
OpaqueUpgradeTests.cs (3)
122Assert.True(await upgraded.Task.TimeoutAfter(TimeSpan.FromSeconds(1))); 154Assert.True(await upgraded.Task.TimeoutAfter(TimeSpan.FromSeconds(10))); 182Assert.True(await upgraded.Task.TimeoutAfter(TimeSpan.FromSeconds(1)));
ResponseSendFileTests.cs (1)
57Assert.True(await appThrew.Task.TimeoutAfter(TimeSpan.FromSeconds(10)));
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
243if (!await started.Task.TimeoutAfter(TimeSpan.FromMinutes(15)))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (3)
107task = task.TimeoutAfter(Timeout); 133var count = await _reader.ReadAsync(ch, 0, 128).TimeoutAfter(Timeout).ConfigureAwait(false); 141var bytesTransferred = await _stream.ReadAsync(buffer, 0, 128).ContinueWith(t => t.IsFaulted ? 0 : t.Result).TimeoutAfter(Timeout);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
DefaultHealthCheckServiceTest.cs (1)
514await Task.WhenAll(output1.Task, output2.Task).TimeoutAfter(TimeSpan.FromSeconds(10));
HealthCheckPublisherHostedServiceTest.cs (2)
373await unblockDelayedCheck.Task.TimeoutAfter(TimeSpan.FromSeconds(10)); 636await unblockDelayedCheck.Task.TimeoutAfter(TimeSpan.FromSeconds(10));
Sockets.BindTests (3)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (3)
107task = task.TimeoutAfter(Timeout); 133var count = await _reader.ReadAsync(ch, 0, 128).TimeoutAfter(Timeout).ConfigureAwait(false); 141var bytesTransferred = await _stream.ReadAsync(buffer, 0, 128).ContinueWith(t => t.IsFaulted ? 0 : t.Result).TimeoutAfter(Timeout);
Sockets.FunctionalTests (3)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (3)
107task = task.TimeoutAfter(Timeout); 133var count = await _reader.ReadAsync(ch, 0, 128).TimeoutAfter(Timeout).ConfigureAwait(false); 141var bytesTransferred = await _stream.ReadAsync(buffer, 0, 128).ContinueWith(t => t.IsFaulted ? 0 : t.Result).TimeoutAfter(Timeout);