8 implementations of WaitForExitAsync
aspire (1)
src\Shared\ChildProcess.cs (1)
254
public async Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
Aspire.Cli.Tests (7)
Commands\AppHostLauncherTests.cs (3)
1616
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken) => Inner.WaitForExitAsync(cancellationToken);
1661
public async Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
1729
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
Commands\StartCommandTests.cs (1)
760
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
DotNet\DotNetCliRunnerTests.cs (1)
2766
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken) => Task.FromResult(exitCode);
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1859
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
TestServices\TestProcessExecutionFactory.cs (1)
267
public async Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
28 references to WaitForExitAsync
aspire (15)
Commands\AppHostLauncher.cs (2)
291
await childProcess.
WaitForExitAsync
(cancellationToken).WaitAsync(TimeSpan.FromSeconds(10), cancellationToken).ConfigureAwait(false);
497
var childExitTask = childProcess.
WaitForExitAsync
(CancellationToken.None);
Commands\DashboardRunCommand.cs (1)
434
var processExitTask = process.
WaitForExitAsync
(cancellationToken);
DotNet\DotNetCliRunner.cs (1)
312
var exitCode = await execution.
WaitForExitAsync
(cancellationToken);
Layout\LayoutProcessRunner.cs (1)
50
var 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
274
completion.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)
168
finalExitCode = await execution.
WaitForExitAsync
(cancellationToken).ConfigureAwait(false);
src\Shared\IChildProcess.cs (1)
56
Task<int> WaitForRootExitAsync(CancellationToken cancellationToken) =>
WaitForExitAsync
(cancellationToken);
src\Shared\ProcessScope.cs (1)
38
=> _execution.
WaitForExitAsync
(cancellationToken);
Telemetry\InternalMicrosoftDetector.cs (1)
1158
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)
1616
public Task<int> WaitForExitAsync(CancellationToken cancellationToken) => Inner.
WaitForExitAsync
(cancellationToken);
DotNet\OwnedProcessExecutionTests.cs (1)
41
Assert.Equal(exitCode, await execution.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30)));
DotNet\ProcessExecutionDetachedTests.cs (3)
38
Assert.Equal(0, await child.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(10)));
45
await child.
WaitForExitAsync
(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5));
108
Assert.Equal(7, await detachedProcess.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(10)));
DotNet\ProcessExecutionFactoryEnvironmentTests.cs (2)
36
Assert.Equal(0, await execution.
WaitForExitAsync
(TestContext.Current.CancellationToken));
99
Assert.Equal(0, await execution.
WaitForExitAsync
(TestContext.Current.CancellationToken));
DotNet\ProcessExecutionTests.cs (5)
38
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cancellation.Token));
67
await Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token));
98
var waitTask = Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token));
129
await Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token));
220
Assert.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.