136 references to WaitAsync
Aspire.Cli.Tests (101)
Commands\AddCommandTests.cs (8)
26var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 91var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 166var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 249var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 329var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 399var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 442var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 515var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
Commands\ConfigCommandTests.cs (24)
23var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 37var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 60var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 85var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 114var exitCode1 = await result1.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 119var exitCode2 = await result2.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 144var setExitCode = await setResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 155var getExitCode = await getResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 170var setExitCode = await setResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 180var getExitCode = await getResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 194var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 209var setExitCode = await setResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 214var deleteExitCode = await deleteResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 219var getExitCode = await getResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 234var setExitCode = await setResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 239var deleteExitCode = await deleteResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 263var setExitCode1 = await setResult1.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 267var setExitCode2 = await setResult2.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 271var setExitCode3 = await setResult3.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 276var listExitCode = await listResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 294var setExitCode = await setResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 312var setExitCode = await setResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 336var setExitCode = await setResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 369var setExitCode = await setResult.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
Commands\DeployCommandTests.cs (6)
26var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 56var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 90var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 124var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 188var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 254var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
Commands\ExecCommandTests.cs (7)
34var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 52var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 70var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 88var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 109var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 132var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 163var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
Commands\NewCommandTests.cs (10)
30var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 74var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 132var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 186var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 240var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 296var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 351var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.LongTimeout); 385var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 440var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 493var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
Commands\PublishCommandPromptingIntegrationTests.cs (10)
49var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 95var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 147var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 194var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 240var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 298var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 377var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 445var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 497var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 552var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
Commands\PublishCommandTests.cs (6)
26var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 53var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 84var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 115var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 158var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 228var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
Commands\RootCommandTests.cs (1)
22var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
Commands\RunCommandTests.cs (9)
30var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 47var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 64var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 81var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 127var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 251var exitCode = await pendingRun.WaitAsync(CliTestConstants.DefaultTimeout); 307var exitCode = await pendingRun.WaitAsync(CliTestConstants.LongTimeout); 381var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 470var exitCode = await pendingRun.WaitAsync(CliTestConstants.DefaultTimeout);
Commands\SdkInstallerTests.cs (7)
29var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 49var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 69var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 89var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 109var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 130var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout); 152var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
Commands\UpdateCommandTests.cs (1)
73var exitCode = await result.InvokeAsync().WaitAsync(CliTestConstants.DefaultTimeout);
NuGet\NuGetPackageCacheTests.cs (5)
39var packages = await nuGetPackageCache.GetCliPackagesAsync(workspace.WorkspaceRoot, prerelease: true, nugetConfigFile: null, CancellationToken.None).WaitAsync(CliTestConstants.DefaultTimeout); 73var packages = await nuGetPackageCache.GetPackagesAsync(workspace.WorkspaceRoot, "Aspire.Hosting", null, prerelease: false, nugetConfigFile: null, CancellationToken.None).WaitAsync(CliTestConstants.DefaultTimeout); 111var packages = await nuGetPackageCache.GetPackagesAsync(workspace.WorkspaceRoot, "Aspire.Hosting", null, prerelease: false, nugetConfigFile: null, CancellationToken.None).WaitAsync(CliTestConstants.DefaultTimeout); 154CancellationToken.None).WaitAsync(CliTestConstants.DefaultTimeout); 189var packages = await nuGetPackageCache.GetPackagesAsync(workspace.WorkspaceRoot, "Aspire.Hosting", null, prerelease: false, nugetConfigFile: null, CancellationToken.None).WaitAsync(CliTestConstants.DefaultTimeout);
Projects\ProjectUpdaterTests.cs (4)
127var updateResult = await projectUpdater.UpdateProjectAsync(appHostProjectFile, selectedChannel).WaitAsync(CliTestConstants.DefaultTimeout); 239var updateResult = await projectUpdater.UpdateProjectAsync(appHostProjectFile, selectedChannel).WaitAsync(CliTestConstants.DefaultTimeout); 391var updateResult = await projectUpdater.UpdateProjectAsync(appHostProjectFile, selectedChannel).WaitAsync(CliTestConstants.DefaultTimeout); 555var updateResult = await projectUpdater.UpdateProjectAsync(appHostProjectFile, selectedChannel).WaitAsync(CliTestConstants.DefaultTimeout);
Utils\CliUpdateNotificationServiceTests.cs (3)
70var suggestedVersion = await suggestedVersionTcs.Task.WaitAsync(CliTestConstants.DefaultTimeout); 125var suggestedVersion = await suggestedVersionTcs.Task.WaitAsync(CliTestConstants.DefaultTimeout); 180var suggestedVersion = await suggestedVersionTcs.Task.WaitAsync(CliTestConstants.DefaultTimeout);
Aspire.Dashboard.Components.Tests (3)
Layout\MainLayoutTests.cs (2)
81Assert.True(await dismissedSettingSetTcs.Task.WaitAsync(TimeSpan.FromSeconds(5))); 120var completedTask = await Task.WhenAny(messageShownTcs.Task, timeoutTask).WaitAsync(TimeSpan.FromSeconds(5));
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Dashboard.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.GitHub.Models.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Kafka.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.MySql.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.NodeJs.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.OpenAI.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.PostgreSQL.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.RabbitMQ.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Tests (15)
Backchannel\AppHostBackchannelTests.cs (4)
39var backchannelReadyEvent = await backchannelReadyTaskCompletionSource.Task.WaitAsync(TimeSpan.FromSeconds(60)); 45_ = await backchannelConnectedTaskCompletionSource.Task.WaitAsync(TimeSpan.FromSeconds(60)); 77var backchannelReadyEvent = await backchannelReadyTaskCompletionSource.Task.WaitAsync(TimeSpan.FromSeconds(60)); 89).WaitAsync(TimeSpan.FromSeconds(60));
OperationModesTests.cs (4)
33var context = await tcs.Task.WaitAsync(TestConstants.DefaultTimeoutTimeSpan); 62var context = await tcs.Task.WaitAsync(TestConstants.DefaultTimeoutTimeSpan); 91var context = await tcs.Task.WaitAsync(TestConstants.DefaultTimeoutTimeSpan); 122var context = await tcs.Task.WaitAsync(TestConstants.DefaultTimeoutTimeSpan);
Orchestrator\ParameterProcessorTests.cs (3)
320var logs = await logsTask.WaitAsync(TimeSpan.FromSeconds(5)); 344var logs = await logsTask.WaitAsync(TimeSpan.FromSeconds(5)); 387var logs = await logsTask.WaitAsync(TimeSpan.FromSeconds(5));
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
WaitForTests.cs (3)
246).WaitAsync(TimeSpan.FromSeconds(15)); 270).WaitAsync(TimeSpan.FromSeconds(15)); 299.WaitAsync(TimeSpan.FromSeconds(15));
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Playground.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
139return await task.WaitAsync(timeout).ConfigureAwait(false);
Microsoft.AspNetCore.Components.Tests (3)
NavigationManagerTest.cs (3)
312var navigation1Result = await navigation1.WaitAsync(Timeout); 485var navigation1Result = await navigation1.WaitAsync(Timeout); 517var navigation1Result = await navigation1.WaitAsync(Timeout);
Microsoft.AspNetCore.InternalTesting (1)
src\Shared\TaskExtensions.cs (1)
88return await task.WaitAsync(timeout).ConfigureAwait(false);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ResponseBodyTests.cs (1)
311Assert.True(await requestThrew.Task.WaitAsync(TimeSpan.FromSeconds(10)));
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\Shared\TaskExtensions.cs (1)
88return await task.WaitAsync(timeout).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Resolver\TcpFailoverTests.cs (1)
59AddressResult[] results = await Resolver.ResolveIPAddressesAsync(hostName, AddressFamily.InterNetwork).AsTask().WaitAsync(TimeSpan.FromSeconds(10));