3 writes to AppHostProcess
Aspire.Workload.Tests (3)
tests\Shared\WorkloadTesting\AspireProject.cs (3)
157
AppHostProcess
= new Process();
263
AppHostProcess
= null;
382
AppHostProcess
= null;
27 references to AppHostProcess
Aspire.Workload.Tests (27)
TemplateAppFixture.cs (3)
60
if (Project!.
AppHostProcess
is null || Project.
AppHostProcess
.HasExited || Project.AppExited?.Task.IsCompleted == true)
62
throw new InvalidOperationException($"The app host process is not running. {Project.
AppHostProcess
?.HasExited}, {Project.AppExited?.Task.IsCompleted}");
tests\Shared\WorkloadTesting\AspireProject.cs (24)
36
public bool IsRunning =>
AppHostProcess
is not null && !
AppHostProcess
.TryGetHasExited();
161
AppHostProcess
.StartInfo = new ProcessStartInfo(_buildEnv.DotNet, processArguments)
173
AppHostProcess
.StartInfo.Environment[item.Key] = item.Value;
177
_testOutput.WriteLine($"Starting the process: {_buildEnv.DotNet} {processArguments} in {
AppHostProcess
.StartInfo.WorkingDirectory}");
178
AppHostProcess
.OutputDataReceived += (sender, e) =>
211
AppHostProcess
.ErrorDataReceived += (sender, e) =>
236
AppHostProcess
.EnableRaisingEvents = true;
237
AppHostProcess
.Exited += appExitedCallback;
239
AppHostProcess
.EnableRaisingEvents = true;
241
configureProcess?.Invoke(
AppHostProcess
.StartInfo);
244
AppHostProcess
.Start();
245
AppHostProcess
.BeginOutputReadLine();
246
AppHostProcess
.BeginErrorReadLine();
262
AppHostProcess
.CloseAndKillProcessIfRunning();
267
reason = $"App exited before startup could complete with exit code {
AppHostProcess
.ExitCode}. It ran for {runTimeStopwatch.Elapsed} secs.";
370
if (
AppHostProcess
is null)
377
AppHostProcess
.StandardInput.WriteLine("Stop");
379
await
AppHostProcess
.WaitForExitAsync(token).ConfigureAwait(false);
380
AppHostProcess
.WaitForExit(500);
381
AppHostProcess
.Dispose();
388
if (
AppHostProcess
is null)
447
if (
AppHostProcess
is null ||
AppHostProcess
.TryGetHasExited() || AppExited?.Task.IsCompleted == true)