2 writes to Process
Microsoft.DotNet.RemoteExecutor (2)
RemoteInvokeHandle.cs (2)
23Process = process; 258Process = null;
19 references to Process
Microsoft.DotNet.RemoteExecutor (19)
RemoteInvokeHandle.cs (19)
35Process.WaitForExit(); 36return Process.ExitCode; 102if (Process != null) 110if (!Process.WaitForExit(halfTimeOut)) 145if (!Process.WaitForExit(halfTimeOut)) 157string miniDmpPath = Path.Combine(uploadPath, $"{Process.Id}.{Path.GetRandomFileName()}.dmp"); 158MiniDump.Create(Process, miniDmpPath); 171description.AppendLine($"\tProcess ID: {Process.Id}"); 172description.AppendLine($"\tHandle: {Process.Handle}"); 173description.AppendLine($"\tName: {Process.ProcessName}"); 174description.AppendLine($"\tMainModule: {Process.MainModule?.FileName}"); 175description.AppendLine($"\tStartTime: {Process.StartTime}"); 176description.AppendLine($"\tTotalProcessorTime: {Process.TotalProcessorTime}"); 184using (DataTarget dt = DataTarget.AttachToProcess(Process.Id, msecTimeout: 20_000)) // arbitrary timeout 238int actual = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? Process.ExitCode : unchecked((sbyte)Process.ExitCode); 242throw new RemoteExecutionException($"Exit code was {Process.ExitCode} but it should have been {Options.ExpectedExitCode}"); 254try { Process.Kill(); } 257Process.Dispose();