8 implementations of WaitForExitAsync
aspire (1)
DotNet\ProcessExecution.cs (1)
201
public async Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
Aspire.Cli.Tests (7)
Commands\AppHostLauncherTests.cs (3)
1451
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken) => Inner.WaitForExitAsync(cancellationToken);
1496
public async Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
1562
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
Commands\StartCommandTests.cs (1)
759
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
DotNet\DotNetCliRunnerTests.cs (1)
2706
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken) => Task.FromResult(exitCode);
Telemetry\InternalMicrosoftDetectorTests.cs (1)
628
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
TestServices\TestProcessExecutionFactory.cs (1)
228
public async Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
26 references to WaitForExitAsync
aspire (13)
Commands\AppHostLauncher.cs (2)
307
await childProcess.
WaitForExitAsync
(cancellationToken).WaitAsync(TimeSpan.FromSeconds(10), cancellationToken).ConfigureAwait(false);
537
var childExitTask = childProcess.
WaitForExitAsync
(CancellationToken.None);
Commands\DashboardRunCommand.cs (1)
415
var processExitTask = process.
WaitForExitAsync
(cancellationToken);
DotNet\DotNetCliRunner.cs (1)
302
var exitCode = await execution.
WaitForExitAsync
(cancellationToken);
Layout\LayoutProcessRunner.cs (1)
58
var exitCode = await execution.
WaitForExitAsync
(ct).ConfigureAwait(false);
Profiling\ProfileCaptureService.cs (1)
260
_dashboardExitTask = dashboardProcess.
WaitForExitAsync
(CancellationToken.None);
Projects\AppHostServerSession.cs (2)
24
/// <see cref="IProcessExecution.
WaitForExitAsync
(CancellationToken)"/>; the execution runs the
277
completion.TrySetResult(await execution.
WaitForExitAsync
(stopToken).ConfigureAwait(false));
Projects\IAppHostServerProject.cs (1)
34
/// <see cref="IProcessExecution.
WaitForExitAsync
(CancellationToken)"/> (which runs the shared
Projects\ProcessGuestLauncher.cs (1)
170
finalExitCode = await execution.
WaitForExitAsync
(cancellationToken).ConfigureAwait(false);
Telemetry\InternalMicrosoftDetector.cs (1)
782
var exitCode = await execution.
WaitForExitAsync
(timeoutCts.Token).ConfigureAwait(false);
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
359
await _process.
WaitForExitAsync
(exitCts.Token).ConfigureAwait(false);
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
435
var exitCode = await process.
WaitForExitAsync
(cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (13)
Commands\AppHostLauncherTests.cs (1)
1451
public Task<int> WaitForExitAsync(CancellationToken cancellationToken) => Inner.
WaitForExitAsync
(cancellationToken);
DotNet\ProcessExecutionDetachedTests.cs (5)
122
await detachedProcess.
WaitForExitAsync
(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5));
199
await detachedProcess.
WaitForExitAsync
(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5));
244
await detachedProcess.
WaitForExitAsync
(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5));
296
await detachedProcess.
WaitForExitAsync
(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5));
350
await detachedProcess.
WaitForExitAsync
(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5));
DotNet\ProcessExecutionTests.cs (6)
83
var exitCode = await execution.
WaitForExitAsync
(CancellationToken.None).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
141
var exitCode = await execution.
WaitForExitAsync
(CancellationToken.None).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
173
await Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token));
201
await Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token));
232
var waitTask = Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token));
263
await Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token));
TestServices\TestProcessExecutionFactory.cs (1)
50
/// When set, the execution will use this exit code when <see cref="IProcessExecution.
WaitForExitAsync
"/> is called.