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)
26await Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.StartAsync(cancellation.Token)); 29await Assert.ThrowsAsync<ObjectDisposedException>(() => process.StartAsync(TestContext.Current.CancellationToken)); 52await process.StartAsync(TestContext.Current.CancellationToken); 84await process.StartAsync(TestContext.Current.CancellationToken); 111await process.StartAsync(TestContext.Current.CancellationToken); 113await Assert.ThrowsAsync<InvalidOperationException>(() => process.StartAsync(TestContext.Current.CancellationToken)); 121await process.StartAsync(TestContext.Current.CancellationToken); 137await process.StartAsync(TestContext.Current.CancellationToken); 164await process.StartAsync(TestContext.Current.CancellationToken); 203await process.StartAsync(TestContext.Current.CancellationToken); 241await process.StartAsync(TestContext.Current.CancellationToken); 301await process.StartAsync(TestContext.Current.CancellationToken); 360await process.StartAsync(TestContext.Current.CancellationToken); 420await process.StartAsync(TestContext.Current.CancellationToken); 450await process.StartAsync(TestContext.Current.CancellationToken);
tests\Shared\Processes\ProcessSupervisorTests.cs (6)
59await process.StartAsync(TestContext.Current.CancellationToken); 79await guardian.StartAsync(TestContext.Current.CancellationToken); 102await guardian.StartAsync(TestContext.Current.CancellationToken); 121await guardian.StartAsync(TestContext.Current.CancellationToken); 140await guardian.StartAsync(TestContext.Current.CancellationToken); 165await owner.StartAsync(TestContext.Current.CancellationToken);