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)
1610
public async Task<bool>
StartAsync
(CancellationToken cancellationToken)
1655
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
1723
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
Commands\StartCommandTests.cs (1)
753
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
DotNet\DotNetCliRunnerTests.cs (1)
2748
public Task<bool>
StartAsync
(CancellationToken cancellationToken)
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1856
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)
457
await childProcess.
StartAsync
(cancellationToken).ConfigureAwait(false);
DotNet\DotNetCliRunner.cs (1)
300
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)
710
await execution.
StartAsync
(CancellationToken.None).ConfigureAwait(false);
Projects\PrebuiltAppHostServer.cs (1)
1404
await execution.
StartAsync
(CancellationToken.None).ConfigureAwait(false);
Projects\ProcessGuestLauncher.cs (1)
146
await execution.
StartAsync
(cancellationToken).ConfigureAwait(false);
Telemetry\InternalMicrosoftDetector.cs (1)
1146
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)
624
await execution.
StartAsync
(CancellationToken.None);
673
await execution.
StartAsync
(CancellationToken.None);