8 implementations of WaitForExitAsync
aspire (1)
src\Shared\ChildProcess.cs (1)
254public async Task<int> WaitForExitAsync(CancellationToken cancellationToken)
Aspire.Cli.Tests (7)
Commands\AppHostLauncherTests.cs (3)
1616public Task<int> WaitForExitAsync(CancellationToken cancellationToken) => Inner.WaitForExitAsync(cancellationToken); 1661public async Task<int> WaitForExitAsync(CancellationToken cancellationToken) 1729public Task<int> WaitForExitAsync(CancellationToken cancellationToken)
Commands\StartCommandTests.cs (1)
760public Task<int> WaitForExitAsync(CancellationToken cancellationToken)
DotNet\DotNetCliRunnerTests.cs (1)
2766public Task<int> WaitForExitAsync(CancellationToken cancellationToken) => Task.FromResult(exitCode);
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1859public Task<int> WaitForExitAsync(CancellationToken cancellationToken)
TestServices\TestProcessExecutionFactory.cs (1)
267public async Task<int> WaitForExitAsync(CancellationToken cancellationToken)
28 references to WaitForExitAsync
aspire (15)
Commands\AppHostLauncher.cs (2)
291await childProcess.WaitForExitAsync(cancellationToken).WaitAsync(TimeSpan.FromSeconds(10), cancellationToken).ConfigureAwait(false); 497var childExitTask = childProcess.WaitForExitAsync(CancellationToken.None);
Commands\DashboardRunCommand.cs (1)
434var processExitTask = process.WaitForExitAsync(cancellationToken);
DotNet\DotNetCliRunner.cs (1)
312var exitCode = await execution.WaitForExitAsync(cancellationToken);
Layout\LayoutProcessRunner.cs (1)
50var exitCode = await execution.WaitForExitAsync(ct).ConfigureAwait(false);
Profiling\ProfileCaptureService.cs (1)
263_dashboardExitTask = dashboardProcess.WaitForExitAsync(CancellationToken.None);
Projects\AppHostServerSession.cs (2)
24/// <see cref="Aspire.Shared.IChildProcess.WaitForExitAsync(CancellationToken)"/>; the execution runs the 274completion.TrySetResult(await execution.WaitForExitAsync(stopToken).ConfigureAwait(false));
Projects\IAppHostServerProject.cs (1)
34/// <see cref="Aspire.Shared.IChildProcess.WaitForExitAsync(CancellationToken)"/> (which runs the shared
Projects\ProcessGuestLauncher.cs (1)
168finalExitCode = await execution.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
src\Shared\IChildProcess.cs (1)
56Task<int> WaitForRootExitAsync(CancellationToken cancellationToken) => WaitForExitAsync(cancellationToken);
src\Shared\ProcessScope.cs (1)
38=> _execution.WaitForExitAsync(cancellationToken);
Telemetry\InternalMicrosoftDetector.cs (1)
1158var exitCode = await execution.WaitForExitAsync(timeoutCts.Token).ConfigureAwait(false);
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
359await _process.WaitForExitAsync(exitCts.Token).ConfigureAwait(false);
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
435var exitCode = await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (13)
Commands\AppHostLauncherTests.cs (1)
1616public Task<int> WaitForExitAsync(CancellationToken cancellationToken) => Inner.WaitForExitAsync(cancellationToken);
DotNet\OwnedProcessExecutionTests.cs (1)
41Assert.Equal(exitCode, await execution.WaitForExitAsync(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30)));
DotNet\ProcessExecutionDetachedTests.cs (3)
38Assert.Equal(0, await child.WaitForExitAsync(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(10))); 45await child.WaitForExitAsync(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5)); 108Assert.Equal(7, await detachedProcess.WaitForExitAsync(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(10)));
DotNet\ProcessExecutionFactoryEnvironmentTests.cs (2)
36Assert.Equal(0, await execution.WaitForExitAsync(TestContext.Current.CancellationToken)); 99Assert.Equal(0, await execution.WaitForExitAsync(TestContext.Current.CancellationToken));
DotNet\ProcessExecutionTests.cs (5)
38await Assert.ThrowsAnyAsync<OperationCanceledException>(() => execution.WaitForExitAsync(cancellation.Token)); 67await Assert.ThrowsAsync<OperationCanceledException>(() => execution.WaitForExitAsync(cts.Token)); 98var waitTask = Assert.ThrowsAsync<OperationCanceledException>(() => execution.WaitForExitAsync(cts.Token)); 129await Assert.ThrowsAsync<OperationCanceledException>(() => execution.WaitForExitAsync(cts.Token)); 220Assert.Equal(unchecked((int)0xC000013A), await execution.WaitForExitAsync(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(30)));
TestServices\TestProcessExecutionFactory.cs (1)
85/// When set, the execution will use this exit code when <see cref="Aspire.Shared.IChildProcess.WaitForExitAsync"/> is called.