50 references to Wait
ConcurrencyLimiterSample (1)
Startup.cs (1)
24Task.Delay(100).Wait(); // 100ms sync-over-async
ILCompiler.DependencyAnalysisFramework (1)
src\coreclr\tools\Common\Sorting\MergeSortCore.cs (1)
27ParallelSort(arrayToSort, 0, accessor.GetLength(arrayToSort), comparer).Wait();
installer.tasks (1)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
43ExecuteAsync(client).Wait();
Microsoft.AspNetCore.Components (1)
RenderTree\Renderer.cs (1)
1150done.Wait();
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Verifiers\CodeFixVerifier.cs (1)
87codeFixProvider.RegisterCodeFixesAsync(context).Wait();
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Verifiers\CodeFixVerifier.cs (1)
87codeFixProvider.RegisterCodeFixesAsync(context).Wait();
Microsoft.AspNetCore.Components.WebView.Photino (1)
PhotinoSynchronizationContext.cs (1)
182antecedent.Wait();
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingProvider.cs (1)
414.Wait();
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorViewTest.cs (1)
1485v.FlushAsync().Wait();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (10)
MessagePumpTests.cs (6)
31server.StartAsync(new DummyApplication(), CancellationToken.None).Wait(); 52server.StartAsync(new DummyApplication(), CancellationToken.None).Wait(); 69server.StartAsync(new DummyApplication(), CancellationToken.None).Wait(); 90server.StartAsync(new DummyApplication(), CancellationToken.None).Wait(); 106server.StartAsync(new DummyApplication(), CancellationToken.None).Wait(); 117server.StartAsync(new DummyApplication(), CancellationToken.None).Wait();
RequestTests.cs (1)
583server.StartAsync(new DummyApplication(app), CancellationToken.None).Wait();
ResponseSendFileTests.cs (1)
124sendFile.SendFileAsync(AbsoluteFilePath, 0, null, CancellationToken.None).Wait();
Utilities.cs (2)
130server.StartAsync(new DummyApplication(app), CancellationToken.None).Wait(); 160server.StartAsync(new DummyApplication(app), CancellationToken.None).Wait();
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
Utilities.cs (1)
49server.StartAsync(new DummyApplication(app), CancellationToken.None).Wait();
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
122RunScriptAsync("StopServer").Wait();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerTests.cs (1)
699stopTask1.Wait();
TestHelpers\TestInput.cs (1)
64Write().Wait();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
InMemoryTransportBenchmark.cs (2)
64ValidateResponseAsync(RequestParsingData.PlaintextTechEmpowerRequest, _plaintextExpectedResponse).Wait(); 65ValidateResponseAsync(RequestParsingData.PlaintextTechEmpowerPipelinedRequests, _plaintextPipelinedExpectedResponse).Wait();
NamedPipesTransportBenchmark.cs (1)
62ValidateResponseAsync(RequestParsingData.PlaintextTechEmpowerRequest, _plaintextExpectedResponse).Wait();
Microsoft.AspNetCore.SignalR.Tests (1)
SerializedHubMessageTests.cs (1)
66var protocol = new DummyHubProtocol("test", () => onWrite().Wait());
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\TaskTimeoutExtensions.cs (1)
12task.Wait(); // Allow any errors to propagate
Microsoft.AspNetCore.WebSockets.Tests (1)
BufferStream.cs (1)
129WaitForDataAsync().Wait();
Microsoft.Build (6)
BackEnd\BuildManager\BuildManager.cs (3)
1000_workQueue.Completion.Wait(); 1012projectCacheDispose.Wait(); 2463_projectCacheService.HandleBuildResultAsync(configuration, result, buildEventContext, _executionCancellationTokenSource.Token).Wait();
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
294_workQueue.Completion.Wait();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
603builder.RequestThreadProc(setThreadParameters: false).Wait();
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
274_currentTask.Wait();
Microsoft.Build.CommandLine.UnitTests (1)
MSBuildServer_Tests.cs (1)
231t.Wait();
Microsoft.DotNet.Build.Tasks.Feed (1)
src\ExecWithRetriesForNuGetPush.cs (1)
172Task.Delay(delay, _cancelTokenSource.Token).Wait();
Microsoft.DotNet.Build.Tasks.Installers (1)
src\ExecWithRetries.cs (1)
105Task.Delay(delay, _cancelTokenSource.Token).Wait();
Microsoft.DotNet.SignCheck (1)
SignCheck.cs (1)
284DownloadFilesAsync(downloadFiles).Wait();
Microsoft.DotNet.VersionTools.Tasks (3)
src\LocalUpdatePublishedVersions.cs (1)
72.Wait();
src\SubmitPullRequest.cs (1)
127client).Wait();
src\UpdatePublishedVersions.cs (1)
48.Wait();
Microsoft.JSInterop (1)
Infrastructure\TaskGenericsUtil.cs (1)
76task.Wait(); // Throw if the task failed
PortableTask (1)
Sleep.cs (1)
17Task.Delay(TimeSpan.FromSeconds(Seconds)).Wait();
System.Diagnostics.Process (1)
System\Diagnostics\ProcessWaitState.Unix.cs (1)
478waitTask.Wait();
System.Linq.Parallel (1)
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (1)
106_rootTask.Wait();
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
1244/// <see cref="AggregateException"/> in calls to <see cref="Wait()">Wait</see> 1416/// Using the wait functionality provided by <see cref="Wait()"/>
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\TaskReplicator.cs (1)
60pendingTask.Wait();
Wasm.Performance.ConsoleHost (1)
Scenarios\ComponentRenderingScenarioBase.cs (1)
34ExecuteAsync(renderer, numCycles).Wait();