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)
147
if (!await process.
StartAsync
(CancellationToken.None).ConfigureAwait(false))
Aspire.Hosting.RemoteHost.Tests (21)
tests\Shared\Processes\ChildProcessTests.cs (15)
25
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => process.
StartAsync
(cancellation.Token));
28
await Assert.ThrowsAsync<ObjectDisposedException>(() => process.
StartAsync
(TestContext.Current.CancellationToken));
51
await process.
StartAsync
(TestContext.Current.CancellationToken);
83
await process.
StartAsync
(TestContext.Current.CancellationToken);
110
await process.
StartAsync
(TestContext.Current.CancellationToken);
112
await Assert.ThrowsAsync<InvalidOperationException>(() => process.
StartAsync
(TestContext.Current.CancellationToken));
120
await process.
StartAsync
(TestContext.Current.CancellationToken);
136
await process.
StartAsync
(TestContext.Current.CancellationToken);
163
await process.
StartAsync
(TestContext.Current.CancellationToken);
202
await process.
StartAsync
(TestContext.Current.CancellationToken);
240
await process.
StartAsync
(TestContext.Current.CancellationToken);
299
await process.
StartAsync
(TestContext.Current.CancellationToken);
358
await process.
StartAsync
(TestContext.Current.CancellationToken);
414
await process.
StartAsync
(TestContext.Current.CancellationToken);
457
var exception = await Assert.ThrowsAsync<NotSupportedException>(() => process.
StartAsync
(TestContext.Current.CancellationToken));
tests\Shared\Processes\ProcessSupervisorTests.cs (6)
58
await process.
StartAsync
(TestContext.Current.CancellationToken);
78
await guardian.
StartAsync
(TestContext.Current.CancellationToken);
100
await guardian.
StartAsync
(TestContext.Current.CancellationToken);
119
await guardian.
StartAsync
(TestContext.Current.CancellationToken);
138
await guardian.
StartAsync
(TestContext.Current.CancellationToken);
163
await owner.
StartAsync
(TestContext.Current.CancellationToken);