110 references to GetProcessById
aspire (9)
Commands\AppHostFollowDisconnectHelpers.cs (1)
28using var process = Process.GetProcessById(pid);
Projects\RunningInstanceManager.cs (1)
135var process = Process.GetProcessById(pid);
src\Shared\BackchannelConstants.cs (1)
417using var process = Process.GetProcessById(pid);
src\Shared\ProcessSignaler.cs (2)
72process = Process.GetProcessById(pid); 135process = Process.GetProcessById(pid);
src\Shared\ProcessStartTimeHelper.cs (4)
88using var process = Process.GetProcessById(pid); 110using var process = Process.GetProcessById(pid); 168using var process = Process.GetProcessById(pid); 237using var process = Process.GetProcessById(pid);
aspire-managed (4)
src\Shared\ProcessStartTimeHelper.cs (4)
88using var process = Process.GetProcessById(pid); 110using var process = Process.GetProcessById(pid); 168using var process = Process.GetProcessById(pid); 237using var process = Process.GetProcessById(pid);
aspire-tray (1)
src\Aspire.Tray\Common\TrayProcessIdentity.cs (1)
15process = Process.GetProcessById(ProcessId);
Aspire.Cli.Tests (17)
Acquisition\PeerInstallProbeTests.cs (1)
436return Process.GetProcessById(pid);
Commands\AppHostLauncherTests.cs (1)
630detachedHandle = Process.GetProcessById(startedProcess.Id);
Projects\AppHostServerSessionTests.cs (2)
299using var proc = Process.GetProcessById(pid); 576using var probe = Process.GetProcessById(pid);
Projects\ProcessGuestLauncherTests.cs (2)
105using var proc = Process.GetProcessById(pid); 158using var proc = Process.GetProcessById(pid);
tests\Shared\Processes\ChildProcessTests.cs (3)
138using var observedProcess = Process.GetProcessById(identity.ProcessId); 195using var root = Process.GetProcessById(identities[0].ProcessId); 376using var worker = Process.GetProcessById(identities[1].ProcessId);
tests\Shared\Processes\ProcessSupervisorTests.cs (3)
122using var observedGuardian = Process.GetProcessById(scope.ProcessId); 148using var observedGuardian = Process.GetProcessById(guardian.ProcessId); 169using var observedOwner = Process.GetProcessById(owner.ProcessId);
tests\Shared\Processes\ProcessTestFixture.cs (2)
135using var process = Process.GetProcessById(identity.ProcessId); 164using var process = Process.GetProcessById(identity.ProcessId);
TestServices\ProcessTestHelpers.cs (2)
72using var probe = Process.GetProcessById(pid); 94using var process = Process.GetProcessById(pid);
Utils\TemporaryWorkspaceTests.cs (1)
137process = Process.GetProcessById(int.Parse(match.Groups[1].Value, System.Globalization.CultureInfo.InvariantCulture));
Aspire.Dashboard (4)
src\Shared\ProcessStartTimeHelper.cs (4)
88using var process = Process.GetProcessById(pid); 110using var process = Process.GetProcessById(pid); 168using var process = Process.GetProcessById(pid); 237using var process = Process.GetProcessById(pid);
Aspire.Hosting (8)
ResourceBuilderExtensions.cs (1)
192using var parentProcess = SystemProcess.GetProcessById(parentProcessId);
src\Shared\BackchannelConstants.cs (1)
417using var process = Process.GetProcessById(pid);
src\Shared\ProcessSignaler.cs (2)
72process = Process.GetProcessById(pid); 135process = Process.GetProcessById(pid);
src\Shared\ProcessStartTimeHelper.cs (4)
88using var process = Process.GetProcessById(pid); 110using var process = Process.GetProcessById(pid); 168using var process = Process.GetProcessById(pid); 237using var process = Process.GetProcessById(pid);
Aspire.Hosting.Azure.Tests (1)
FoundryExtensionsTests.cs (1)
205using var daemon = Process.GetProcessById(daemonPid);
Aspire.Hosting.Browsers (2)
BrowserEndpointDiscovery.cs (1)
234using var process = Process.GetProcessById(processId);
BrowserLogsPipeBrowserProcessLauncher.Windows.cs (1)
247using var process = Process.GetProcessById(processId);
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
234using var process = Process.GetProcessById(processId);
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.Windows.cs (1)
247using var process = Process.GetProcessById(processId);
Aspire.Hosting.RemoteHost (6)
src\Shared\ProcessSignaler.cs (2)
72process = Process.GetProcessById(pid); 135process = Process.GetProcessById(pid);
src\Shared\ProcessStartTimeHelper.cs (4)
88using var process = Process.GetProcessById(pid); 110using var process = Process.GetProcessById(pid); 168using var process = Process.GetProcessById(pid); 237using var process = Process.GetProcessById(pid);
Aspire.Hosting.RemoteHost.Tests (10)
IntegrationHostProcessTests.cs (1)
158using (var process = Process.GetProcessById(supervisor))
tests\Shared\Processes\ChildProcessTests.cs (3)
138using var observedProcess = Process.GetProcessById(identity.ProcessId); 195using var root = Process.GetProcessById(identities[0].ProcessId); 376using var worker = Process.GetProcessById(identities[1].ProcessId);
tests\Shared\Processes\ProcessSupervisorTests.cs (3)
122using var observedGuardian = Process.GetProcessById(scope.ProcessId); 148using var observedGuardian = Process.GetProcessById(guardian.ProcessId); 169using var observedOwner = Process.GetProcessById(owner.ProcessId);
tests\Shared\Processes\ProcessTestFixture.cs (2)
135using var process = Process.GetProcessById(identity.ProcessId); 164using var process = Process.GetProcessById(identity.ProcessId);
TestServices\IntegrationHostProcessFixture.cs (1)
422using var process = Process.GetProcessById(processId);
Aspire.Hosting.Sdk.Tests (1)
AppHostSdkTargetsTests.cs (1)
1987return Process.GetProcessById(processId);
Aspire.Hosting.Tests (1)
Terminals\Hex1bAspireTerminalTests.cs (1)
310using var process = Process.GetProcessById(pid);
Aspire.TerminalHost (4)
src\Shared\ProcessStartTimeHelper.cs (4)
88using var process = Process.GetProcessById(pid); 110using var process = Process.GetProcessById(pid); 168using var process = Process.GetProcessById(pid); 237using var process = Process.GetProcessById(pid);
Aspire.Tray.Tests (11)
CliAppHostClientTests.cs (3)
55using var process = Process.GetProcessById(await cli.WaitForPidAsync(TestContext.Current.CancellationToken)); 184using var process = Process.GetProcessById(await cli.WaitForPidAsync(TestContext.Current.CancellationToken)); 199using var process = Process.GetProcessById(await cli.WaitForPidAsync(TestContext.Current.CancellationToken));
CliAppHostCommandsTests.cs (6)
106using var process = Process.GetProcessById(pid); 140using var process = Process.GetProcessById(pid); 170using var process = Process.GetProcessById(await cli.WaitForPidAsync(TestContext.Current.CancellationToken)); 284detached = Process.GetProcessById(await cli.WaitForDetachedPidAsync(TestContext.Current.CancellationToken)); 285using var process = Process.GetProcessById(await cli.WaitForPidAsync(TestContext.Current.CancellationToken)); 326using var process = Process.GetProcessById(await cli.WaitForPidAsync(TestContext.Current.CancellationToken));
src\Aspire.Tray\Common\TrayProcessIdentity.cs (1)
15process = Process.GetProcessById(ProcessId);
WindowsTrayLauncherTests.cs (1)
69child = Process.GetProcessById(BinaryPrimitives.ReadInt32LittleEndian(identity));
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
170using var process = Process.GetProcessById(serverProcessId);
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ParentProcessWatcher.cs (1)
33var parent = Process.GetProcessById(_parentPid);
Microsoft.Build (1)
BackEnd\Client\MSBuildClient.cs (1)
846using Process launched = Process.GetProcessById(pid);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
170using var process = Process.GetProcessById(serverProcessId);
Microsoft.CodeAnalysis.BuildClient.Package (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
170using var process = Process.GetProcessById(serverProcessId);
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsIpc\IpcTransport.cs (1)
493Process.GetProcessById(pid);
Microsoft.DotNet.HotReload.Watch (1)
UI\PhysicalConsole.cs (1)
64using var process = Process.GetProcessById(processId);
Microsoft.Extensions.Hosting.WindowsServices (1)
Internal\Win32.cs (1)
31return Process.GetProcessById(procEntry.th32ParentProcessID);
Microsoft.TestPlatform.Build (1)
Tasks\VSTestTask.cs (1)
101Process.GetProcessById(_activeProcessId).Kill();
Microsoft.TestPlatform.Extensions.BlameDataCollector (5)
BlameCollector.cs (1)
316var p = Process.GetProcessById(_testHostProcessId);
NetClientHangDumper.cs (1)
24var process = Process.GetProcessById(processId);
ProcDumpDumper.cs (2)
118_process = Process.GetProcessById(processId); 291var process = Process.GetProcessById(processId);
WindowsHangDumper.cs (1)
40var process = Process.GetProcessById(processId);
Microsoft.TestPlatform.PlatformAbstractions (4)
common\System\ProcessHelper.cs (2)
293return Process.GetProcessById(processId).ProcessName; 321var process = processId == _currentProcess.Id ? _currentProcess : Process.GetProcessById(processId);
net462\System\ProcessHelper.cs (1)
64var process = processId == _currentProcess.Id ? _currentProcess : Process.GetProcessById(processId);
netcore\System\ProcessHelper.cs (1)
29return Process.GetProcessById(processId).SafeHandle.DangerousGetHandle();
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DefaultTestHostManager.cs (1)
551_testHostProcess = Process.GetProcessById(processId);
Hosting\DotnetTestHostManager.cs (1)
970_testHostProcess = Process.GetProcessById(processId);
MSBuild.Coordinator (1)
CoordinatorServer.cs (1)
568using Process process = Process.GetProcessById(processId);
NuGet.Protocol (1)
Plugins\RequestHandlers\MonitorNuGetProcessExitRequestHandler.cs (1)
107process = _processes.GetOrAdd(monitorRequest.ProcessId, pid => Process.GetProcessById(pid));
rzc (1)
ShutdownCommand.cs (1)
59var process = Process.GetProcessById(response.ServerProcessId);
System.Diagnostics.Process (1)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (1)
69/// This API opens the handle immediately. In contrast, <see cref="Process.GetProcessById(int)"/> only checks whether
UIAutomationClient (1)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
432targetProcess = System.Diagnostics.Process.GetProcessById( pid );
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\Misc.cs (1)
1815string processName = System.Diagnostics.Process.GetProcessById((int)processId).ProcessName;
MS\Internal\AutomationProxies\WinEventTracker.cs (1)
475return Misc.ProxyGetClassName(Process.GetProcessById(processId).MainWindowHandle).Equals("ConsoleWindowClass");
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
170using var process = Process.GetProcessById(serverProcessId);
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
170using var process = Process.GetProcessById(serverProcessId);