50 references to WaitAsync
aspire (1)
Commands\PublishCommandBase.cs (1)
586await progressContext.KeepProgressContextAliveTcs.Task.WaitAsync(cancellationToken)
Aspire.Cli.Tests (1)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
652await completionSource.Task.WaitAsync(cancellationToken);
Aspire.Dashboard (3)
Components\Controls\ApplicationName.razor.cs (1)
34await DashboardClient.WhenConnected.WaitAsync(_disposalCts.Token);
Components\Interactions\InteractionsProvider.cs (1)
130await waitForInteractionAvailableTask.WaitAsync(_cts.Token).ConfigureAwait(false);
ServiceClient\DashboardClient.cs (1)
570await _initialDataReceivedTcs.Task.WaitAsync(cts.Token).ConfigureAwait(false);
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
159await exitedTcs.Task.WaitAsync(token).ConfigureAwait(false);
Aspire.Hosting (5)
ApplicationModel\ResourceNotificationService.cs (1)
160await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false);
Dcp\DcpExecutor.cs (4)
196await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false); 823await Task.WhenAll(containersTask, executablesTask, containerExecsTask).WaitAsync(cancellationToken).ConfigureAwait(false); 1190return Task.WhenAll(tasks).WaitAsync(cancellationToken); 1470await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (2)
329await Resource.ProvisioningTaskCompletionSource.Task.WaitAsync(cancellationToken).ConfigureAwait(false); 386await provisioning.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.MySql.Tests (7)
MySqlFunctionalTests.cs (7)
84await app.WaitForTextAsync(s_mySqlReadyText, cts.Token).WaitAsync(cts.Token); 158await app.WaitForTextAsync(s_mySqlReadyText, cts.Token).WaitAsync(cts.Token); 227await app.WaitForTextAsync(s_mySqlReadyText, cts.Token).WaitAsync(cts.Token); 332await app.WaitForTextAsync(s_mySqlReadyText, cts.Token).WaitAsync(cts.Token); 418await app.WaitForTextAsync(s_mySqlReadyText, cts.Token).WaitAsync(cts.Token); 488await app.WaitForTextAsync(s_mySqlReadyText, cts.Token).WaitAsync(cts.Token); 591await app.StopAsync(cts.Token).WaitAsync(cts.Token);
Aspire.Hosting.Redis.Tests (3)
RedisFunctionalTests.cs (3)
145await rns.WaitForResourceAsync(redisInsightBuilder.Resource.Name, KnownResourceStates.Running).WaitAsync(cts.Token); 477await rns.WaitForResourceAsync(redisInsightBuilder1.Resource.Name, KnownResourceStates.Running).WaitAsync(cts.Token); 512await rns.WaitForResourceAsync(redisInsightBuilder2.Resource.Name, KnownResourceStates.Running).WaitAsync(cts.Token);
Aspire.Hosting.Testing (6)
DistributedApplicationFactory.cs (5)
74await _startedTcs.Task.WaitAsync(linkedCts.Token).ConfigureAwait(false); 523await _exitTcs.Task.WaitAsync(shutdownTimeoutCts.Token).ConfigureAwait(false); 536await app.StopAsync().WaitAsync(shutdownTimeoutCts.Token).ConfigureAwait(false); 545await app.DisposeAsync().AsTask().WaitAsync(shutdownTimeoutCts.Token).ConfigureAwait(false); 603await asyncDisposable.DisposeAsync().AsTask().WaitAsync(appFactory._disposingCts.Token).ConfigureAwait(false);
DistributedApplicationTestingBuilder.cs (1)
309await appFactory.DisposeAsync().AsTask().WaitAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Testing.Tests (7)
TestingBuilderTests.cs (4)
470var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => app.StartAsync().WaitAsync(cts.Token)); 475await app.StartAsync().WaitAsync(cts.Token); 479await app.DisposeAsync().AsTask().WaitAsync(cts.Token); 541await app.DisposeAsync().AsTask().WaitAsync(cts.Token);
TestingFactoryCrashTests.cs (3)
27var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => factory.StartAsync().WaitAsync(cts.Token)); 32await factory.StartAsync().WaitAsync(cts.Token); 35await factory.DisposeAsync().AsTask().WaitAsync(cts.Token);
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
159await exitedTcs.Task.WaitAsync(token).ConfigureAwait(false);
Microsoft.AspNetCore.Components (1)
NavigationManager.cs (1)
399await handlerTask.AsTask().WaitAsync(cancellationToken);
Microsoft.AspNetCore.OpenApi.Tests (3)
Transformers\DocumentTransformerTests.cs (1)
258await tcs.Task.WaitAsync(cancellationToken);
Transformers\OperationTransformerTests.cs (1)
589await tcs.Task.WaitAsync(cancellationToken);
Transformers\SchemaTransformerTests.cs (1)
874await tcs.Task.WaitAsync(cancellationToken);
Microsoft.Extensions.AI.Templates.Tests (1)
Infrastructure\TestCommand.cs (1)
102await exitedTcs.Task.WaitAsync(timeoutCts.Token).ConfigureAwait(false);
Microsoft.Extensions.Hosting.Abstractions (1)
BackgroundService.cs (1)
73await _executeTask.WaitAsync(cancellationToken).ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing);
Microsoft.Extensions.ServiceDiscovery (1)
ServiceEndpointWatcher.cs (1)
85await RefreshAsync(force: false).WaitAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsServiceEndpointProviderBase.cs (1)
83await resolveTask.WaitAsync(cancellationToken).ConfigureAwait(false);
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (2)
1569await _output.EOF.WaitAsync(cancellationToken).ConfigureAwait(false); 1574await _error.EOF.WaitAsync(cancellationToken).ConfigureAwait(false);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
245await writesClosed.WaitAsync(_requestBodyCancellationSource.Token).ConfigureAwait(false);
System.Net.Requests (1)
System\Net\RequestStreamContent.cs (1)
23await completeTcs.Task.WaitAsync(cancellationToken).ConfigureAwait(false);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
7054waitTask = new ValueTask(waitTask.AsTask().WaitAsync(cancellationToken));