36 references to GetProcessById
aspire (4)
Commands\StopCommand.cs (1)
296using 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.Hosting.RemoteHost (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 (2)
BackEnd\Components\Communications\DetouredNodeLauncher.cs (1)
141return Process.GetProcessById(sp.ProcessId);
BackEnd\Components\Communications\NodeLauncher.cs (1)
218return Process.GetProcessById(processInfo.dwProcessId);
Microsoft.Build.CommandLine.UnitTests (3)
MSBuildServer_Tests.cs (3)
117Process.GetProcessById(pidOfServerProcess).KillTree(1000); 251var serverProcess = Process.GetProcessById(pidOfServerProcess); 302var serverProcess = Process.GetProcessById(pidOfServerProcess);
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TaskHostFactory_Tests.cs (4)
88Process taskHostNode = Process.GetProcessById(pid); 100Process taskHostNode = Process.GetProcessById(pid); 193Process transientTaskHostNode = Process.GetProcessById(pid); 205Process sidecarTaskHostNode = Process.GetProcessById(pidSidecar);
Microsoft.Build.Framework (1)
NativeMethods.cs (1)
1306thisProcess = Process.GetProcessById(processIdToKill);
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.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
683Process.GetProcessById(_processId).KillTree(1000);
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)
31return 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);