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