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