7 instantiations of IsolatedProcess
aspire (2)
DotNet\ProcessExecution.cs (1)
116
process = new
IsolatedProcess
(_startInfo);
Processes\IsolatedProcess.cs (1)
298
var process = new
IsolatedProcess
(startInfo);
Aspire.Cli.Tests (5)
Processes\IsolatedProcessTests.cs (5)
29
await using var child = new
IsolatedProcess
(startInfo);
60
await using var child = new
IsolatedProcess
(startInfo);
92
await using var child = new
IsolatedProcess
(startInfo);
135
var child = new
IsolatedProcess
(startInfo);
176
await using var child = new
IsolatedProcess
(startInfo);
32 references to IsolatedProcess
aspire (26)
DotNet\ProcessExecution.cs (9)
13
/// The single <see cref="IProcessExecution"/> implementation. Wraps an <see cref="
IsolatedProcess
"/>
34
private
IsolatedProcess
? _process;
88
private
IsolatedProcess
Process =>
105
IsolatedProcess
? process = null;
203
var
process = Process;
516
var
process = _process;
571
private void OnOutputLine(
IsolatedProcess
sender, string line)
584
private void OnErrorLine(
IsolatedProcess
sender, string line)
595
private async Task DrainOutputAsync(
IsolatedProcess
process, CancellationToken cancellationToken)
Processes\IsolatedProcess.cs (13)
134
public event Action<
IsolatedProcess
, string>? OutputDataReceived;
137
public event Action<
IsolatedProcess
, string>? ErrorDataReceived;
140
public Process Process => _process ?? throw new InvalidOperationException($"{nameof(
IsolatedProcess
)} has not been started.");
146
public int Id => _id ?? throw new InvalidOperationException($"{nameof(
IsolatedProcess
)} has not been started.");
231
?? throw new InvalidOperationException($"{nameof(
IsolatedProcess
)} has not been started."),
232
LifecycleState.Disposed => throw new ObjectDisposedException(nameof(
IsolatedProcess
)),
233
_ => throw new InvalidOperationException($"{nameof(
IsolatedProcess
)} has not been started.")
290
/// Creates and starts an <see cref="
IsolatedProcess
"/> from <paramref name="startInfo"/>.
294
public static async Task<
IsolatedProcess
> StartAsync(
298
var
process = new IsolatedProcess(startInfo);
315
? new ObjectDisposedException(nameof(
IsolatedProcess
))
316
: new InvalidOperationException($"{nameof(
IsolatedProcess
)} has already been started.");
497
/// Gives <see cref="
IsolatedProcess
"/> a Process-like line-output surface when platform
Processes\WindowsConsoleProcessJob.cs (1)
13
/// children spawned by <see cref="
IsolatedProcess
"/>. The job is created
Processes\WindowsProcessInterop.cs (1)
14
/// Detached and console-isolated <see cref="
IsolatedProcess
"/> launches open the same
Projects\IAppHostServerProject.cs (1)
51
/// When <see langword="true"/>, on Windows the server is spawned via <see cref="
IsolatedProcess
"/>
Projects\IGuestProcessLauncher.cs (1)
19
/// <see cref="
IsolatedProcess
"/> so it lands in its own hidden console
Aspire.Cli.Tests (6)
DotNet\ProcessExecutionDetachedTests.cs (1)
109
$"monitorStarted={ProcessTreeGracefulShutdownService.FormatDcpProcessStartTime(
IsolatedProcess
.GetCurrentProcessDcpMonitorStartTime())}",
Processes\IsolatedProcessTests.cs (5)
29
await using
var
child = new IsolatedProcess(startInfo);
60
await using
var
child = new IsolatedProcess(startInfo);
92
await using
var
child = new IsolatedProcess(startInfo);
135
var
child = new IsolatedProcess(startInfo);
176
await using
var
child = new IsolatedProcess(startInfo);