3 writes to _testHostProcess
Microsoft.TestPlatform.TestHostRuntimeProvider (3)
Hosting\DefaultTestHostManager.cs (3)
377
_testHostProcess
= null;
538
_testHostProcess
= _processHelper.LaunchProcess(
551
_testHostProcess
= Process.GetProcessById(processId);
9 references to _testHostProcess
Microsoft.TestPlatform.TestHostRuntimeProvider (9)
Hosting\DefaultTestHostManager.cs (9)
396
_processHelper.TerminateProcess(
_testHostProcess
);
403
_testHostProcess
?.Dispose();
411
TPDebug.Assert(_targetFramework is not null &&
_testHostProcess
is not null, "Initialize and LaunchTestHostAsync must be called before AttachDebuggerToTestHost");
415
ITestHostLauncher3 launcher3 => launcher3.AttachDebuggerToProcess(new AttachDebuggerInfo { ProcessId =
_testHostProcess
.Id, TargetFramework = _targetFramework.ToString() }, CancellationToken.None),
416
ITestHostLauncher2 launcher2 => launcher2.AttachDebuggerToProcess(
_testHostProcess
.Id),
518
[MemberNotNullWhen(true, nameof(
_testHostProcess
), nameof(_testHostProcessStdError))]
555
if (
_testHostProcess
is null)
560
AdjustProcessPriorityBasedOnSettings(
_testHostProcess
, testHostStartInfo.EnvironmentVariables);
561
OnHostLaunched(new HostProviderEventArgs("Test Runtime launched", 0,
_testHostProcess
.Id));