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)
3267
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken) => Task.FromResult(exitCode);
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1913
public Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
TestServices\TestProcessExecutionFactory.cs (1)
266
public async Task<int>
WaitForExitAsync
(CancellationToken cancellationToken)
31 references to WaitForExitAsync
aspire (17)
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)
436
var processExitTask = process.
WaitForExitAsync
(cancellationToken);
DotNet\DotNetCliRunner.cs (1)
344
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
280
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\NativeAppHostServerProject.cs (1)
148
var exitCode = await execution.
WaitForExitAsync
(cancellationToken).ConfigureAwait(false);
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);
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
1176
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);
Utils\EnvironmentChecker\GoAppHostToolingCheck.cs (1)
375
var exitCode = await process.
WaitForExitAsync
(timeoutCts.Token).ConfigureAwait(false);
Aspire.Cli.Tests (14)
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)
44
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cancellation.Token)).DefaultTimeout();
82
await Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token)).DefaultTimeout();
120
var waitTask = Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token));
158
await Assert.ThrowsAsync<OperationCanceledException>(() => execution.
WaitForExitAsync
(cts.Token)).DefaultTimeout();
251
Assert.Equal(unchecked((int)0xC000013A), await execution.
WaitForExitAsync
(CancellationToken.None).DefaultTimeout());
Projects\NativeAppHostServerProjectTests.cs (1)
379
Assert.Equal(7, await result.Execution.
WaitForExitAsync
(TestContext.Current.CancellationToken));
TestServices\TestProcessExecutionFactory.cs (1)
84
/// When set, the execution will use this exit code when <see cref="Aspire.Shared.IChildProcess.
WaitForExitAsync
"/> is called.