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