8 implementations of StartAsync
aspire (1)
DotNet\ProcessExecution.cs (1)
93public async Task<bool> StartAsync(CancellationToken cancellationToken)
Aspire.Cli.Tests (7)
Commands\AppHostLauncherTests.cs (3)
1445public async Task<bool> StartAsync(CancellationToken cancellationToken) 1490public Task<bool> StartAsync(CancellationToken cancellationToken) 1556public Task<bool> StartAsync(CancellationToken cancellationToken)
Commands\StartCommandTests.cs (1)
752public Task<bool> StartAsync(CancellationToken cancellationToken)
DotNet\DotNetCliRunnerTests.cs (1)
2699public Task<bool> StartAsync(CancellationToken cancellationToken)
Telemetry\InternalMicrosoftDetectorTests.cs (1)
625public Task<bool> StartAsync(CancellationToken cancellationToken)
TestServices\TestProcessExecutionFactory.cs (1)
210public Task<bool> StartAsync(CancellationToken cancellationToken)
31 references to StartAsync
aspire (14)
Commands\AppHostLauncher.cs (1)
506await childProcess.StartAsync(cancellationToken).ConfigureAwait(false);
DotNet\DotNetCliRunner.cs (1)
288var 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)
53if (!await execution.StartAsync(ct).ConfigureAwait(false)) 94if (!await execution.StartAsync(CancellationToken.None).ConfigureAwait(false))
Projects\DotNetBasedAppHostServerProject.cs (1)
709await execution.StartAsync(CancellationToken.None).ConfigureAwait(false);
Projects\PrebuiltAppHostServer.cs (1)
1400await execution.StartAsync(CancellationToken.None).ConfigureAwait(false);
Projects\ProcessGuestLauncher.cs (1)
151await execution.StartAsync(cancellationToken).ConfigureAwait(false);
Telemetry\InternalMicrosoftDetector.cs (1)
777if (!await execution.StartAsync(timeoutCts.Token).ConfigureAwait(false))
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
273if (!await process.StartAsync(cancellationToken).ConfigureAwait(false))
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
429started = await process.StartAsync(cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (17)
DotNet\ProcessExecutionDetachedTests.cs (8)
41Assert.True(await child.StartAsync(CancellationToken.None)); 101Assert.True(await detachedProcess.StartAsync(CancellationToken.None)); 168var startTask = detachedExecution.StartAsync(cts.Token); 243Assert.True(await detachedProcess.StartAsync(CancellationToken.None)); 289Assert.True(await detachedProcess.StartAsync(CancellationToken.None)); 349Assert.True(await detachedProcess.StartAsync(CancellationToken.None)); 397Assert.True(await detachedProcess.StartAsync(CancellationToken.None)); 448var startTask = detachedProcess.StartAsync(CancellationToken.None);
DotNet\ProcessExecutionTests.cs (7)
32await Assert.ThrowsAsync<ObjectDisposedException>(() => execution.StartAsync(CancellationToken.None)); 81Assert.True(await execution.StartAsync(CancellationToken.None)); 139Assert.True(await execution.StartAsync(CancellationToken.None)); 168Assert.True(await execution.StartAsync(CancellationToken.None)); 196Assert.True(await execution.StartAsync(CancellationToken.None)); 227Assert.True(await execution.StartAsync(CancellationToken.None)); 257Assert.True(await execution.StartAsync(CancellationToken.None));
Projects\AppHostServerSessionTests.cs (2)
622await execution.StartAsync(CancellationToken.None); 671await execution.StartAsync(CancellationToken.None);