7 instantiations of IsolatedProcess
aspire (2)
DotNet\ProcessExecution.cs (1)
116process = new IsolatedProcess(_startInfo);
Processes\IsolatedProcess.cs (1)
298var process = new IsolatedProcess(startInfo);
Aspire.Cli.Tests (5)
Processes\IsolatedProcessTests.cs (5)
29await using var child = new IsolatedProcess(startInfo); 60await using var child = new IsolatedProcess(startInfo); 92await using var child = new IsolatedProcess(startInfo); 135var child = new IsolatedProcess(startInfo); 176await 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"/> 34private IsolatedProcess? _process; 88private IsolatedProcess Process => 105IsolatedProcess? process = null; 203var process = Process; 516var process = _process; 571private void OnOutputLine(IsolatedProcess sender, string line) 584private void OnErrorLine(IsolatedProcess sender, string line) 595private async Task DrainOutputAsync(IsolatedProcess process, CancellationToken cancellationToken)
Processes\IsolatedProcess.cs (13)
134public event Action<IsolatedProcess, string>? OutputDataReceived; 137public event Action<IsolatedProcess, string>? ErrorDataReceived; 140public Process Process => _process ?? throw new InvalidOperationException($"{nameof(IsolatedProcess)} has not been started."); 146public int Id => _id ?? throw new InvalidOperationException($"{nameof(IsolatedProcess)} has not been started."); 231?? throw new InvalidOperationException($"{nameof(IsolatedProcess)} has not been started."), 232LifecycleState.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"/>. 294public static async Task<IsolatedProcess> StartAsync( 298var 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)
29await using var child = new IsolatedProcess(startInfo); 60await using var child = new IsolatedProcess(startInfo); 92await using var child = new IsolatedProcess(startInfo); 135var child = new IsolatedProcess(startInfo); 176await using var child = new IsolatedProcess(startInfo);