1 write to _process
Microsoft.AspNetCore.Server.IntegrationTesting (1)
src\Shared\Process\ProcessEx.cs (1)
44
_process
= proc;
23 references to _process
Microsoft.AspNetCore.Server.IntegrationTesting (23)
src\Shared\Process\ProcessEx.cs (23)
69
public Process Process =>
_process
;
73
public bool HasExited =>
_process
.HasExited;
99
public int ExitCode =>
_process
.ExitCode;
101
public object Id =>
_process
.Id;
189
_process
.WaitForExit();
192
_exited.TrySetResult(
_process
.ExitCode);
197
if (!
_process
.HasExited)
199
Assert.Fail($"Process {
_process
.ProcessName} with pid: {
_process
.Id} has not finished running.");
202
return $"Process exited with code {
_process
.ExitCode}\nStdErr: {Error}\nStdOut: {Output}";
220
_process
.Dispose();
222
else if (assertSuccess &&
_process
.ExitCode != 0)
224
Assert.Fail($"Process exited with code {
_process
.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
244
if (
_process
!= null && !
_process
.HasExited)
246
_process
.KillTree();
249
if (
_process
!= null)
251
_process
.CancelOutputRead();
252
_process
.CancelErrorRead();
254
_process
.ErrorDataReceived -= OnErrorData;
255
_process
.OutputDataReceived -= OnOutputData;
256
_process
.Exited -= OnProcessExited;
257
_process
.Dispose();