Implemented interface member:
method
WaitForExitAsync
Aspire.Shared.IChildProcess.WaitForExitAsync(System.Threading.CancellationToken)
12 references to WaitForExitAsync
Aspire.Cli.Tests (12)
tests\Shared\Processes\ChildProcessTests.cs (10)
54
var exitCode = await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30));
92
var exit = process.
WaitForExitAsync
(TestContext.Current.CancellationToken);
127
process.
WaitForExitAsync
(cancellation.Token).WaitAsync(TimeSpan.FromSeconds(30)));
167
Assert.Equal(exitCode, await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30)));
214
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.
WaitForExitAsync
(cancellation.Token));
246
Assert.Equal(23, await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30)));
306
: Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.
WaitForExitAsync
(cancellation.Token));
365
: Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.
WaitForExitAsync
(cancellation.Token));
424
var exception = await Assert.ThrowsAsync<AggregateException>(() => process.
WaitForExitAsync
(cancellation.Token));
451
var exitCode = await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30));
tests\Shared\Processes\ProcessSupervisorTests.cs (2)
61
Assert.Equal(0, await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).DefaultTimeout());
146
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => guardian.
WaitForExitAsync
(cancellation.Token));