2 writes to Process
Microsoft.DotNet.RemoteExecutor (2)
RemoteInvokeHandle.cs (2)
25
Process
= process;
254
Process
= null;
19 references to Process
Microsoft.DotNet.RemoteExecutor (19)
RemoteInvokeHandle.cs (19)
37
Process
.WaitForExit();
38
return
Process
.ExitCode;
101
if (
Process
!= null)
109
if (!
Process
.WaitForExit(halfTimeOut))
144
if (!
Process
.WaitForExit(halfTimeOut))
156
string miniDmpPath = Path.Combine(uploadPath, $"{
Process
.Id}.{Path.GetRandomFileName()}.dmp");
157
MiniDump.Create(
Process
, miniDmpPath);
170
description.AppendLine($"\tProcess ID: {
Process
.Id}");
171
description.AppendLine($"\tHandle: {
Process
.Handle}");
172
description.AppendLine($"\tName: {
Process
.ProcessName}");
173
description.AppendLine($"\tMainModule: {
Process
.MainModule?.FileName}");
174
description.AppendLine($"\tStartTime: {
Process
.StartTime}");
175
description.AppendLine($"\tTotalProcessorTime: {
Process
.TotalProcessorTime}");
183
using (DataTarget dt = DataTarget.AttachToProcess(
Process
.Id, msecTimeout: 20_000)) // arbitrary timeout
237
int actual = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
Process
.ExitCode : unchecked((sbyte)
Process
.ExitCode);
239
Assert.True(expected == actual, $"Exit code was {
Process
.ExitCode} but it should have been {Options.ExpectedExitCode}");
250
try {
Process
.Kill(); }
253
Process
.Dispose();