3 writes to AppHostProcess
Aspire.EndToEnd.Tests (3)
tests\Shared\WorkloadTesting\AspireProject.cs (3)
119
AppHostProcess
= new Process();
225
AppHostProcess
= null;
343
AppHostProcess
= null;
24 references to AppHostProcess
Aspire.EndToEnd.Tests (24)
tests\Shared\WorkloadTesting\AspireProject.cs (24)
36
public bool IsRunning =>
AppHostProcess
is not null && !
AppHostProcess
.TryGetHasExited();
123
AppHostProcess
.StartInfo = new ProcessStartInfo(_buildEnv.DotNet, processArguments)
135
AppHostProcess
.StartInfo.Environment[item.Key] = item.Value;
139
_testOutput.WriteLine($"Starting the process: {_buildEnv.DotNet} {processArguments} in {
AppHostProcess
.StartInfo.WorkingDirectory}");
140
AppHostProcess
.OutputDataReceived += (sender, e) =>
173
AppHostProcess
.ErrorDataReceived += (sender, e) =>
198
AppHostProcess
.EnableRaisingEvents = true;
199
AppHostProcess
.Exited += appExitedCallback;
201
AppHostProcess
.EnableRaisingEvents = true;
203
configureProcess?.Invoke(
AppHostProcess
.StartInfo);
206
AppHostProcess
.Start();
207
AppHostProcess
.BeginOutputReadLine();
208
AppHostProcess
.BeginErrorReadLine();
224
AppHostProcess
.CloseAndKillProcessIfRunning();
229
reason = $"App exited before startup could complete with exit code {
AppHostProcess
.ExitCode}. It ran for {runTimeStopwatch.Elapsed} secs.";
331
if (
AppHostProcess
is null)
338
AppHostProcess
.StandardInput.WriteLine("Stop");
340
await
AppHostProcess
.WaitForExitAsync(token).ConfigureAwait(false);
341
AppHostProcess
.WaitForExit(500);
342
AppHostProcess
.Dispose();
349
if (
AppHostProcess
is null)
408
if (
AppHostProcess
is null ||
AppHostProcess
.TryGetHasExited() || AppExited?.Task.IsCompleted == true)