Implemented interface member:
method
StartAsync
Aspire.Shared.IChildProcess.StartAsync(System.Threading.CancellationToken)
22 references to StartAsync
Aspire.Hosting.RemoteHost (1)
src\Shared\ProcessSupervisor.cs (1)
147if (!await process.StartAsync(CancellationToken.None).ConfigureAwait(false))
Aspire.Hosting.RemoteHost.Tests (21)
tests\Shared\Processes\ChildProcessTests.cs (15)
25await Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.StartAsync(cancellation.Token)); 28await Assert.ThrowsAsync<ObjectDisposedException>(() => process.StartAsync(TestContext.Current.CancellationToken)); 51await process.StartAsync(TestContext.Current.CancellationToken); 83await process.StartAsync(TestContext.Current.CancellationToken); 110await process.StartAsync(TestContext.Current.CancellationToken); 112await Assert.ThrowsAsync<InvalidOperationException>(() => process.StartAsync(TestContext.Current.CancellationToken)); 120await process.StartAsync(TestContext.Current.CancellationToken); 136await process.StartAsync(TestContext.Current.CancellationToken); 163await process.StartAsync(TestContext.Current.CancellationToken); 202await process.StartAsync(TestContext.Current.CancellationToken); 240await process.StartAsync(TestContext.Current.CancellationToken); 299await process.StartAsync(TestContext.Current.CancellationToken); 358await process.StartAsync(TestContext.Current.CancellationToken); 414await process.StartAsync(TestContext.Current.CancellationToken); 457var exception = await Assert.ThrowsAsync<NotSupportedException>(() => process.StartAsync(TestContext.Current.CancellationToken));
tests\Shared\Processes\ProcessSupervisorTests.cs (6)
58await process.StartAsync(TestContext.Current.CancellationToken); 78await guardian.StartAsync(TestContext.Current.CancellationToken); 100await guardian.StartAsync(TestContext.Current.CancellationToken); 119await guardian.StartAsync(TestContext.Current.CancellationToken); 138await guardian.StartAsync(TestContext.Current.CancellationToken); 163await owner.StartAsync(TestContext.Current.CancellationToken);