22 references to CliProcess
Aspire.Tray.Tests (22)
CliAppHostCommandsTests.cs (3)
98using var otherProcess = Process.Start(CliProcess.CreateStartInfo(otherCli.Path)) 128await CliProcess.TerminateOwnedChildAsync(otherProcess); 311await CliProcess.TerminateOwnedChildAsync(detached);
MacTrayLauncherTests.cs (1)
194await CliProcess.TerminateOwnedChildAsync(unrelated);
src\Aspire.Tray\Common\CliAppHostClient.cs (4)
27_ = CliProcess.CreateStartInfo(cliPath); 101=> CliProcess.CreateStartInfo(executable, "ps", "--follow", "--format", "json", 113stderr = CliProcess.DrainAsync(process.StandardError, streams.Token); 151await CliProcess.TerminateOwnedChildAsync(process).ConfigureAwait(false);
src\Aspire.Tray\Common\CliAppHostCommands.cs (7)
31return CliProcess.CreateStartInfo(executable, "stop", "--apphost", target.AppHostPath, 40var startInfo = CliProcess.CreateStartInfo(executable, "start", "--apphost", path, "--non-interactive", "--nologo"); 78output = Task.WhenAll(CliProcess.DrainAsync(process.StandardOutput, lifetime.Token), 79CliProcess.DrainAsync(process.StandardError, lifetime.Token)); 93await CliProcess.TerminateOwnedChildAsync(process).ConfigureAwait(false); 116stderr = CliProcess.DrainAsync(process.StandardError, lifetime.Token); 145await CliProcess.TerminateOwnedChildAsync(process).ConfigureAwait(false);
src\Aspire.Tray\Common\WindowsLoginBootstrap.cs (3)
23return CliProcess.CreateStartInfo(cliPath, "tray", "start", "--non-interactive", "--nologo"); 32var stdout = CliProcess.DrainAsync(process.StandardOutput, timeout.Token); 33var stderr = CliProcess.DrainAsync(process.StandardError, timeout.Token);
WindowsTrayLauncherTests.cs (4)
89await CliProcess.TerminateOwnedChildAsync(child); 132await CliProcess.TerminateOwnedChildAsync(child); 133await CliProcess.TerminateOwnedChildAsync(unrelated); 160await CliProcess.TerminateOwnedChildAsync(child);