20 references to SafeHandle
aspire-tray (1)
src\Aspire.Tray\Common\TrayProcessIdentity.cs (1)
29_ = process.SafeHandle;
Aspire.Tray.Tests (7)
src\Aspire.Tray\Common\TrayProcessIdentity.cs (1)
29_ = process.SafeHandle;
WindowsTrayLauncherTests.cs (6)
62callerJob.Assign(caller.Process.SafeHandle); 63innerJob?.Assign(caller.Process.SafeHandle); 64Assert.True(callerJob.Contains(caller.Process.SafeHandle)); 70var childHandle = child.SafeHandle; 125() => WindowsTrayLauncher.CompleteStartupAsync(child.SafeHandle, () => Task.FromException(failure))); 151var handle = child.SafeHandle;
Microsoft.DotNet.Cli.Utils (1)
ProcessReaper.cs (1)
192_process.SafeHandle.Signal(PosixSignal.SIGTERM);
Microsoft.DotNet.HotReload.Watch (2)
Process\ProcessRunner.cs (1)
379process.SafeHandle.Signal(signal);
UI\PhysicalConsole.cs (1)
65process.SafeHandle.Signal(PosixSignal.SIGTERM);
Microsoft.TestPlatform.PlatformAbstractions (1)
netcore\System\ProcessHelper.cs (1)
29return Process.GetProcessById(processId).SafeHandle.DangerousGetHandle();
System.Diagnostics.Process (8)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (4)
70/// the process is currently running; opening the process handle is deferred until <see cref="Process.SafeHandle"/> is accessed. 73/// On Windows, this API requests query/synchronize/terminate rights, while <see cref="Process.SafeHandle"/> requests 112/// whether the process is currently running; opening the process handle is deferred until <see cref="Process.SafeHandle"/> is accessed. 115/// On Windows, this API requests query/synchronize/terminate rights, while <see cref="Process.SafeHandle"/> requests
System\Diagnostics\Process.cs (1)
130public IntPtr Handle => SafeHandle.DangerousGetHandle();
System\Diagnostics\Process.Scenarios.cs (3)
262exitStatus = process.SafeHandle.WaitForExitOrKillOnTimeout(remaining); 266exitStatus = process.SafeHandle.WaitForExit(); 334ProcessExitStatus exitStatus = await process.SafeHandle.WaitForExitOrKillOnCancellationAsync(cancellationToken).ConfigureAwait(false);