Implemented interface member:
method
WaitForExitAsync
Aspire.Shared.IChildProcess.WaitForExitAsync(System.Threading.CancellationToken)
11 references to WaitForExitAsync
Aspire.Hosting.RemoteHost.Tests (11)
tests\Shared\Processes\ChildProcessTests.cs (9)
54var exitCode = await process.WaitForExitAsync(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30)); 92var exit = process.WaitForExitAsync(TestContext.Current.CancellationToken); 127process.WaitForExitAsync(cancellation.Token).WaitAsync(TimeSpan.FromSeconds(30))); 167Assert.Equal(exitCode, await process.WaitForExitAsync(TestContext.Current.CancellationToken).WaitAsync(TimeSpan.FromSeconds(30))); 214await Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.WaitForExitAsync(cancellation.Token)); 246Assert.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)); 424var exception = await Assert.ThrowsAsync<AggregateException>(() => process.WaitForExitAsync(cancellation.Token));
tests\Shared\Processes\ProcessSupervisorTests.cs (2)
61Assert.Equal(0, await process.WaitForExitAsync(TestContext.Current.CancellationToken).DefaultTimeout()); 146await Assert.ThrowsAnyAsync<OperationCanceledException>(() => guardian.WaitForExitAsync(cancellation.Token));