25 references to GetProcessById
aspire (4)
Commands\StopCommand.cs (1)
196using var process = Process.GetProcessById(pid);
Processes\DetachedProcessLauncher.Windows.cs (1)
109detachedProcess = Process.GetProcessById(pi.dwProcessId);
Projects\RunningInstanceManager.cs (1)
111var process = Process.GetProcessById(pid);
src\Shared\BackchannelConstants.cs (1)
251using var process = Process.GetProcessById(pid);
Aspire.Hosting (3)
Cli\CliOrphanDetector.cs (2)
17return !Process.GetProcessById(pid).HasExited; 30var process = Process.GetProcessById(pid);
src\Shared\BackchannelConstants.cs (1)
251using var process = Process.GetProcessById(pid);
aspire-server (1)
OrphanDetector.cs (1)
26return !Process.GetProcessById(pid).HasExited;
csc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
133var process = Process.GetProcessById(shutdownBuildResponse.ServerProcessId);
HelixTestRunner (1)
ProcessUtil.cs (1)
47var process = Process.GetProcessById(pid);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeployer.cs (1)
282HostProcess = Process.GetProcessById(workerProcess.ProcessId);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
133var process = Process.GetProcessById(shutdownBuildResponse.ServerProcessId);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
133var process = Process.GetProcessById(shutdownBuildResponse.ServerProcessId);
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
197clientProcess = Process.GetProcessById(clientProcessId);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
RoslynLanguageServer.cs (1)
74using var clientProcess = Process.GetProcessById(clientProcessId);
Microsoft.CodeAnalysis.Remote.Workspaces (1)
ServiceHubRemoteHostClient.cs (1)
84client._remoteProcess = Process.GetProcessById(remoteProcessIdAndErrorMessage.Value.processId);
Microsoft.Extensions.Hosting.WindowsServices (1)
Internal\Win32.cs (1)
36return Process.GetProcessById(procEntry.th32ParentProcessID);
Microsoft.VisualBasic.IntegrationTests (1)
InteractionTests.cs (1)
92Process process = Process.GetProcessById(processId);
Microsoft.VisualStudio.Extensibility.Testing.Xunit (1)
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Harness\VisualStudioInstance.cs (1)
190return Process.GetProcessById(pbi.InheritedFromUniqueProcessId.ToInt32());
Replay (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
133var process = Process.GetProcessById(shutdownBuildResponse.ServerProcessId);
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\Compilers\Shared\BuildServerConnection.cs (1)
133var process = Process.GetProcessById(shutdownBuildResponse.ServerProcessId);
VBCSCompiler (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
133var process = Process.GetProcessById(shutdownBuildResponse.ServerProcessId);