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