8 implementations of StartAsync
aspire (1)
DotNet\ProcessExecution.cs (1)
93
public async Task<bool>
StartAsync
(CancellationToken cancellationToken)
Aspire.Cli.Tests (7)
Commands\AppHostLauncherTests.cs (3)
1445
public async Task<bool>
StartAsync
(CancellationToken cancellationToken)
1490
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
1556
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
Commands\StartCommandTests.cs (1)
752
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
DotNet\DotNetCliRunnerTests.cs (1)
2699
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
Telemetry\InternalMicrosoftDetectorTests.cs (1)
625
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
TestServices\TestProcessExecutionFactory.cs (1)
210
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
31 references to StartAsync
aspire (14)
Commands\AppHostLauncher.cs (1)
506
await childProcess.
StartAsync
(cancellationToken).ConfigureAwait(false);
DotNet\DotNetCliRunner.cs (1)
288
var started = await execution.
StartAsync
(cancellationToken).ConfigureAwait(false);
DotNet\IProcessExecution.cs (3)
37
/// Gets the process ID. Only valid after <see cref="
StartAsync
"/> returns <c>true</c>.
42
/// Gets the process start time, when available. Only valid after <see cref="
StartAsync
"/> returns <c>true</c>.
54
/// Gets a value indicating whether the process has exited. Only valid after <see cref="
StartAsync
"/> returns <c>true</c>.
DotNet\ProcessExecution.cs (1)
15
/// spawned lazily on <see cref="IProcessExecution.
StartAsync
"/> so callers that build an execution but never start it (e.g.
Layout\LayoutProcessRunner.cs (2)
53
if (!await execution.
StartAsync
(ct).ConfigureAwait(false))
94
if (!await execution.
StartAsync
(CancellationToken.None).ConfigureAwait(false))
Projects\DotNetBasedAppHostServerProject.cs (1)
709
await execution.
StartAsync
(CancellationToken.None).ConfigureAwait(false);
Projects\PrebuiltAppHostServer.cs (1)
1400
await execution.
StartAsync
(CancellationToken.None).ConfigureAwait(false);
Projects\ProcessGuestLauncher.cs (1)
151
await execution.
StartAsync
(cancellationToken).ConfigureAwait(false);
Telemetry\InternalMicrosoftDetector.cs (1)
777
if (!await execution.
StartAsync
(timeoutCts.Token).ConfigureAwait(false))
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
273
if (!await process.
StartAsync
(cancellationToken).ConfigureAwait(false))
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
429
started = await process.
StartAsync
(cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (17)
DotNet\ProcessExecutionDetachedTests.cs (8)
41
Assert.True(await child.
StartAsync
(CancellationToken.None));
101
Assert.True(await detachedProcess.
StartAsync
(CancellationToken.None));
168
var startTask = detachedExecution.
StartAsync
(cts.Token);
243
Assert.True(await detachedProcess.
StartAsync
(CancellationToken.None));
289
Assert.True(await detachedProcess.
StartAsync
(CancellationToken.None));
349
Assert.True(await detachedProcess.
StartAsync
(CancellationToken.None));
397
Assert.True(await detachedProcess.
StartAsync
(CancellationToken.None));
448
var startTask = detachedProcess.
StartAsync
(CancellationToken.None);
DotNet\ProcessExecutionTests.cs (7)
32
await Assert.ThrowsAsync<ObjectDisposedException>(() => execution.
StartAsync
(CancellationToken.None));
81
Assert.True(await execution.
StartAsync
(CancellationToken.None));
139
Assert.True(await execution.
StartAsync
(CancellationToken.None));
168
Assert.True(await execution.
StartAsync
(CancellationToken.None));
196
Assert.True(await execution.
StartAsync
(CancellationToken.None));
227
Assert.True(await execution.
StartAsync
(CancellationToken.None));
257
Assert.True(await execution.
StartAsync
(CancellationToken.None));
Projects\AppHostServerSessionTests.cs (2)
622
await execution.
StartAsync
(CancellationToken.None);
671
await execution.
StartAsync
(CancellationToken.None);