1 write to HostProcess
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\SelfHostDeployer.cs (1)
145HostProcess = new Process() { StartInfo = startInfo };
14 references to HostProcess
Microsoft.AspNetCore.Hosting.FunctionalTests (3)
LinkedApplicationTests.cs (1)
44Assert.False(deployer.HostProcess.HasExited);
ShutdownTests.cs (2)
100SendSIGINT(deployer.HostProcess.Id); 102WaitForExitOrKill(deployer.HostProcess);
Microsoft.AspNetCore.Server.IntegrationTesting (11)
Deployers\SelfHostDeployer.cs (11)
146HostProcess.EnableRaisingEvents = true; 147HostProcess.OutputDataReceived += (sender, dataArgs) => 165HostProcess.Exited += (sender, e) => 167Logger.LogInformation("host process ID {pid} shut down", HostProcess.Id); 170started.TrySetException(new Exception($"Command exited unexpectedly with exit code: {HostProcess.ExitCode}")); 177HostProcess.StartAndCaptureOutAndErrToLogger(executableName, Logger); 184if (HostProcess.HasExited) 186Logger.LogError("Host process {processName} {pid} exited with code {exitCode} or failed to start.", startInfo.FileName, HostProcess.Id, HostProcess.ExitCode); 190Logger.LogInformation("Started {fileName}. Process Id : {processId}", startInfo.FileName, HostProcess.Id); 209ShutDownIfAnyHostProcess(HostProcess);