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