141 references to Delay
BasicWebSite (10)
Controllers\ActionResultOfTController.cs (1)
25await Task.Delay(0);
Controllers\AsyncActionsController.cs (9)
38await Task.Delay(SimulateDelayMilliseconds); 43return Task.Delay(SimulateDelayMilliseconds); 48await Task.Delay(SimulateDelayMilliseconds); 54await Task.Delay(SimulateDelayMilliseconds); 60await Task.Delay(SimulateDelayMilliseconds); 66await Task.Delay(SimulateDelayMilliseconds); 72await Task.Delay(SimulateDelayMilliseconds); 78await Task.Delay(SimulateDelayMilliseconds); 84await Task.Delay(SimulateDelayMilliseconds);
ClientSample (4)
HubSample.cs (1)
144await Task.Delay(5000);
UploadSample.cs (3)
50await Task.Delay(1000); 70await Task.Delay(1000); 74await Task.Delay(250);
ConcurrencyLimiterSample (1)
Startup.cs (1)
24Task.Delay(100).Wait(); // 100ms sync-over-async
ErrorPageMiddlewareWebSite (2)
AggregateExceptionController.cs (2)
21await Task.Delay(0); 27await Task.Delay(0);
FormatterWebSite (1)
Controllers\AsyncEnumerableController.cs (1)
29await Task.Delay(5);
HealthChecksSample (1)
SlowDependencyHealthCheck.cs (1)
18_task = Task.Delay(15 * 1000);
HttpStress (2)
Program.cs (2)
219await Task.Delay(1); 307await Task.Delay(1);
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
151await Task.Delay(msDelay);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
231await Task.Delay(10); 245await Task.Delay(10);
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
151await Task.Delay(msDelay);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
289await Task.Delay(1); 326await Task.Delay(1);
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
151await Task.Delay(msDelay);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
289await Task.Delay(1); 326await Task.Delay(1);
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
151await Task.Delay(msDelay);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
289await Task.Delay(1); 326await Task.Delay(1);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
151await Task.Delay(msDelay);
IIS.Tests (1)
ClientDisconnectTests.cs (1)
75await Task.Delay(10); // Small delay to not constantly call WriteAsync.
IISExpress.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
151await Task.Delay(msDelay);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
231await Task.Delay(10); 245await Task.Delay(10);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
289await Task.Delay(1); 326await Task.Delay(1);
InMemory.FunctionalTests (7)
ConnectionLimitTests.cs (1)
66await Task.Delay(100);
Http2\Http2StreamTests.cs (1)
1602var res = await Task.WhenAny(tcs.Task, Task.Delay(1000)) == tcs.Task;
Http2\Http2TimeoutTests.cs (1)
289await Task.Delay(1);
Http3\Http3StreamTests.cs (1)
733await Task.Delay(50);
ResponseTests.cs (1)
3106var res = await Task.WhenAny(tcs.Task, Task.Delay(1000)) == tcs.Task;
UpgradeTests.cs (2)
138await Task.Delay(100); 318await Task.Delay(100);
Interop.FunctionalTests (6)
Http3\Http3RequestTests.cs (6)
858await Task.Delay(100); 935await Task.Delay(100); 1133await Task.Delay(50); 1364await Task.Delay(100); 1424await Task.Delay(100); 1794await Task.Delay(100 * (i + 1));
InteropClient (1)
InteropClient.cs (1)
491await Task.Delay(1000);
JwtClientSample (1)
Program.cs (1)
57await Task.Delay(1000);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
949await Task.Delay(500);
Microsoft.AspNetCore.Components.QuickGrid (1)
QuickGrid.razor.cs (1)
328await Task.Delay(100);
Microsoft.AspNetCore.Components.Server.Tests (4)
Circuits\RevalidatingServerAuthenticationStateProviderTest.cs (4)
74await Task.Delay(200); 98await Task.Delay(200); 117await Task.Delay(200); 138await Task.Delay(200);
Microsoft.AspNetCore.Components.Tests (2)
RendererTest.cs (1)
3531var awaitableTask = render1TCS.Task.ContinueWith(_ => Task.Delay(1000)).Unwrap();
Rendering\RendererSynchronizationContextTest.cs (1)
781await Task.Delay(250);
Microsoft.AspNetCore.Components.Web.Tests (2)
HtmlRendering\HtmlRendererTest.cs (2)
910var services = GetServiceProvider(collection => collection.AddSingleton(new AsyncLoadingComponentCompletion { Task = Task.Delay(0) })); 1255await Task.Delay(Value * 100);
Microsoft.AspNetCore.Components.WebViewE2E.Test (2)
BasicBlazorHybridTest.cs (2)
107await Task.Delay(1000); 185await Task.Delay(WaitTimeInMS);
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
QueueRequestsOverwritten.cs (1)
57await Task.Delay(int.MaxValue);
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingProviderTests.cs (1)
872await Task.Delay(500);
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
1503await Task.Delay(15); 1523await Task.Delay(15);
Microsoft.AspNetCore.Http.Tests (1)
HttpContextAccessorTests.cs (1)
17await Task.Delay(100);
Microsoft.AspNetCore.HttpLogging.Tests (4)
FileLoggerProcessorTests.cs (4)
552await Task.Delay(100); 567await Task.Delay(10); 575await Task.Delay(10); 583await Task.Delay(100);
Microsoft.AspNetCore.InternalTesting (1)
xunit\AspNetTestRunner.cs (1)
97await Task.Delay(5000).ConfigureAwait(false);
Microsoft.AspNetCore.InternalTesting.Tests (4)
AssemblyTestLogTests.cs (1)
383await Task.Delay(100);
TaskExtensionsTest.cs (3)
30await Task.Delay(10).TimeoutAfter(TimeSpan.FromMilliseconds(30000)); 69await Task.Delay(10); 82await Task.Delay(10);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ControllerActionInvokerTest.cs (1)
1876await Task.Delay(500);
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCacheMiddlewareTests.cs (2)
828await Task.Delay(500); 901await Task.Delay(500);
OutputCacheTests.cs (1)
246await Task.Delay(1);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\RetryHelper.cs (1)
59await Task.Delay(1 * 1000); //Wait for a while before retry.
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
249await Task.Delay(1000); // Wait a second to make sure the socket is completely cleaned up
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\TransportConnectionManager.cs (1)
86return await Task.WhenAny(allAbortedTask, Task.Delay(1000)).ConfigureAwait(false) == allAbortedTask;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Http1\Http1ConnectionTests.cs (1)
1098await Task.Delay(delay);
MessageBodyTests.cs (1)
1491await Task.Delay(1);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionListenerTests.cs (1)
419await Task.Delay(100 * i);
Microsoft.AspNetCore.Shared.Tests (2)
StackTraceHelperTest.cs (1)
253await Task.Delay(0);
ValueStopwatchTest.cs (1)
35await Task.Delay(200);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.cs (3)
488await Task.Delay(10); 833await Task.Delay(10); 880await Task.Delay(10);
Hubs.cs (1)
226await Task.Delay(20);
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HubConnectionTests.Protocol.cs (1)
666await Task.Delay(1000);
ServerSentEventsTransportTests.cs (1)
90await Task.Delay(100);
Microsoft.AspNetCore.SignalR.Tests (3)
HubConnectionHandlerTests.cs (1)
2711await Task.Delay(10);
HubConnectionHandlerTestUtils\Hubs.cs (1)
510await Task.Delay(100);
Internal\ReflectionHelperTests.cs (1)
38await Task.Delay(10);
Microsoft.AspNetCore.SpaServices.Extensions (1)
AngularCli\AngularCliMiddleware.cs (1)
120await Task.Delay(500);
Microsoft.AspNetCore.TestHost.Tests (1)
ClientHandlerTests.cs (1)
322await Task.Delay(100);
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
835await Task.WhenAny(_packetWriteDrainTask, Task.Delay(100)); 853await Task.Delay(delay).ConfigureAwait(false);
Microsoft.Build.Engine.UnitTests (1)
BackEnd\RedirectConsoleWriter_Tests.cs (1)
24await Task.Delay(80); // should be somehow bigger than `RedirectConsoleWriter` flush period - see its constructor
Microsoft.Build.Utilities.UnitTests (1)
ProcessExtensions_Tests.cs (1)
27await Task.Delay(500);
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
181await Tasks.Task.Delay(RetryDelayMilliseconds).ConfigureAwait(false);
Microsoft.DotNet.Helix.Sdk (1)
AzureDevOpsTask.cs (1)
222await Task.Delay(GetRetryDelay(attempt)).ConfigureAwait(false);
Microsoft.DotNet.RemoteExecutor.Tests (5)
RemoteExecutorTests.cs (5)
20await Task.Delay(1); 30await Task.Delay(1); 41await Task.Delay(1); 53await Task.Delay(1); 64await Task.Delay(1);
Microsoft.DotNet.VersionTools (1)
src\Automation\GitHubVersionsRepoUpdater.cs (1)
157await Task.Delay(RetryMillisecondsDelay);
Microsoft.Extensions.Caching.Hybrid.Tests (6)
BufferReleaseTests.cs (3)
63await Task.Delay(250); 149await Task.Delay(250); 207await Task.Delay(250);
RedisTests.cs (1)
97await Task.Delay(500); // the L2 write continues in the background; give it a chance
StampedeTests.cs (2)
192await Task.Delay(500); // cancellation happens on a worker; need to allow a moment 267await Task.Delay(500); // cancellation happens on a worker; need to allow a moment
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
DefaultHealthCheckServiceTest.cs (1)
567await Task.Delay(1).ConfigureAwait(false);
Microsoft.Extensions.Http.Polly.Tests (1)
PolicyHttpMessageHandlerTest.cs (1)
387await Task.Delay(1).ConfigureAwait(false);
Microsoft.JSInterop.Tests (1)
Infrastructure\DotNetDispatcherTest.cs (1)
919await Task.Delay(50);
OutputCachingSample (1)
Startup.cs (1)
53await Task.Delay(1000);
RazorWebSite (1)
Services\TaskReturningService.cs (1)
10await Task.Delay(100);
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
40var timeoutTask = Task.Delay(1000);
Sockets.FunctionalTests (5)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
40var timeoutTask = Task.Delay(1000);
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (1)
47await Task.Delay(5);
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (3)
310await Task.Delay(10); 373await Task.Delay(10); 808await Task.Delay(10);
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\E2ETesting\BrowserFixture.cs (1)
97await Task.Delay(2000);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
156await Task.Delay(1000);
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\E2ETesting\BrowserFixture.cs (1)
97await Task.Delay(2000);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
156await Task.Delay(1000);
Templates.Mvc.Tests (2)
src\Shared\E2ETesting\BrowserFixture.cs (1)
97await Task.Delay(2000);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
156await Task.Delay(1000);
Templates.Tests (2)
src\Shared\E2ETesting\BrowserFixture.cs (1)
97await Task.Delay(2000);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
156await Task.Delay(1000);