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