Implemented interface member:
method
StartAsync
Aspire.Shared.IChildProcess.StartAsync(System.Threading.CancellationToken)
23 references to StartAsync
aspire (2)
DotNet\ProcessExecutionFactory.cs (1)
129/// <see cref="Aspire.Shared.ChildProcess.StartAsync"/> so an execution that is never started holds no handles.
src\Shared\ProcessSupervisor.cs (1)
147if (!await process.StartAsync(CancellationToken.None).ConfigureAwait(false))
Aspire.Cli.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); 444await 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);