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)
53
var exitCode = await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30));
91
var exit = process.
WaitForExitAsync
(TestContext.Current.CancellationToken);
126
process.
WaitForExitAsync
(cancellation.Token).WaitAsync(TimeSpan.FromSeconds(30)));
166
Assert.Equal(exitCode, await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30)));
213
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.
WaitForExitAsync
(cancellation.Token));
245
Assert.Equal(23, await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30)));
304
: Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.
WaitForExitAsync
(cancellation.Token));
363
: Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.
WaitForExitAsync
(cancellation.Token));
418
var exception = await Assert.ThrowsAsync<AggregateException>(() => process.
WaitForExitAsync
(cancellation.Token));
445
var exitCode = await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30));
tests\Shared\Processes\ProcessSupervisorTests.cs (2)
60
Assert.Equal(0, await process.
WaitForExitAsync
(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30)));
144
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => guardian.
WaitForExitAsync
(cancellation.Token));