1 type derived from ChildProcess
aspire (1)
DotNet\ProcessExecution.cs (1)
13
internal sealed class ProcessExecution :
ChildProcess
, IProcessExecution
3 instantiations of ChildProcess
aspire (2)
src\Shared\ProcessSupervisor.cs (1)
130
var process = new
ChildProcess
(
src\Shared\Telemetry\TelemetryMetadata.cs (1)
40
(startInfo, stdout, stderr) => new
ChildProcess
(startInfo, NullLogger.Instance,
Aspire.Cli.Tests (1)
tests\Shared\Processes\ProcessTestFixture.cs (1)
135
new
(startInfo, logger, options, OperatingSystem.IsWindows());
26 references to ChildProcess
aspire (5)
DotNet\ProcessExecutionFactory.cs (1)
129
/// <see cref="Aspire.Shared.
ChildProcess
.StartAsync"/> so an execution that is never started holds no handles.
src\Shared\ChildProcess.cs (2)
105
?? throw new InvalidOperationException($"{nameof(
ChildProcess
)} has not been started. Call {nameof(StartAsync)} first.");
118
throw new InvalidOperationException($"{nameof(
ChildProcess
)} has already been started.");
src\Shared\ProcessSupervisor.cs (2)
130
var
process = new ChildProcess(
212
ChildProcess
.KillProcessGroup(Environment.ProcessId);
Aspire.Cli.Tests (21)
tests\Shared\Processes\ChildProcessTests.cs (13)
23
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("output", "0"), new ChildProcessOptions());
38
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("output", "23"),
69
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("output", "0"),
110
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("wait", readiness.Name), new ChildProcessOptions());
120
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("wait", readiness.Name), new ChildProcessOptions());
136
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("wait", readiness.Name), new ChildProcessOptions());
154
await using
var
process = ProcessTestFixture.CreateProcess(
187
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("tree", readiness.Name),
232
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("tree-graceful", readiness.Name),
300
var
process = lifetime.Instance;
344
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("tree-cleanup", readiness.Name, cleanupPath),
411
await using
var
process = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("wait", readiness.Name),
443
await using
var
process = ProcessTestFixture.CreateProcess(startInfo, new ChildProcessOptions
tests\Shared\Processes\ProcessSupervisorTests.cs (6)
52
await using
var
process = ProcessTestFixture.CreateProcess(startInfo, new ChildProcessOptions
75
await using
var
guardian = ProcessTestFixture.CreateProcess(fixture.CreateSupervisorStartInfo(
100
await using
var
guardian = ProcessTestFixture.CreateProcess(fixture.CreateSupervisorStartInfo(
119
await using
var
guardian = ProcessTestFixture.CreateProcess(fixture.CreateSupervisorStartInfo(
138
await using
var
guardian = ProcessTestFixture.CreateProcess(fixture.CreateSupervisorStartInfo(
164
await using
var
owner = ProcessTestFixture.CreateProcess(fixture.CreateStartInfo("owner", readiness.Name), new ChildProcessOptions());
tests\Shared\Processes\ProcessTestFixture.cs (2)
131
internal static
ChildProcess
CreateProcess(ProcessStartInfo startInfo, ChildProcessOptions options) =>
134
internal static
ChildProcess
CreateProcess(ProcessStartInfo startInfo, ILogger logger, ChildProcessOptions options) =>