108 instantiations of Process
aspire (13)
Aspire.Cli.EndToEnd.Tests (2)
Aspire.Cli.Tests (1)
Aspire.Deployment.EndToEnd.Tests (28)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (1)
Aspire.Hosting.Azure (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Tests (2)
Aspire.Templates.Tests (2)
dotnet (2)
dotnet-format (1)
dotnet-suggest (1)
dotnet-svcutil-lib (1)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
Infrastructure.Tests (4)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.Server.IntegrationTesting (6)
Microsoft.Build.Utilities.Core (1)
Microsoft.DotNet.Cli.Utils (2)
Microsoft.DotNet.HotReload.Watch (1)
Microsoft.DotNet.MacOsPkg.Core (1)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.McpServer.ProjectTemplates.Tests (1)
Microsoft.ML.CodeGenerator (3)
Microsoft.ML.Sweeper (1)
Microsoft.NET.Build.Containers (1)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.TestPlatform.Build (1)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Microsoft.TestPlatform.PlatformAbstractions (1)
NuGet.Build.Tasks (1)
NuGet.Common (1)
NuGet.Packaging (1)
NuGet.Protocol (1)
PresentationUI (2)
System.Diagnostics.Process (6)
System\Diagnostics\Process.cs (6)
919return new Process(machineName, isRemoteMachine, processId, null);
936return new Process(".", false, processId, null);
955process = new Process(".", false, processId, null);
1043processes[i] = new Process(machineName, isRemoteMachine, processInfo.ProcessId, processInfo);
1058return new Process(".", false, Environment.ProcessId, null);
1406Process process = new Process();
System.Net.Ping (1)
804 references to Process
aspire (90)
Aspire.Cli.EndToEnd.Tests (2)
Aspire.Cli.Tests (1)
Aspire.Deployment.EndToEnd.Tests (28)
Aspire.EndToEnd.Tests (5)
Aspire.Hosting (11)
Aspire.Hosting.Azure (3)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (3)
Aspire.Hosting.JavaScript.Tests (4)
Aspire.Hosting.Maui (2)
Aspire.Hosting.Python (2)
Aspire.Hosting.Python.Tests (4)
Aspire.Hosting.RemoteHost (1)
Aspire.Hosting.Tests (6)
Aspire.Templates.Tests (5)
csc (5)
datacollector (7)
datacollector.arm64 (7)
dotnet (17)
dotnet-dev-certs (14)
dotnet-format (8)
dotnet-getdocument (3)
dotnet-openapi (3)
dotnet-sql-cache (1)
dotnet-suggest (1)
dotnet-svcutil-lib (6)
dotnet-user-jwts (3)
dotnet-user-secrets (3)
GetDocument.Insider (1)
Infrastructure.Tests (8)
Microsoft.Agents.AI.ProjectTemplates.Tests (2)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore.Components.Testing (4)
Microsoft.AspNetCore.Components.WebAssembly.Server (5)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (13)
Microsoft.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.Server.IntegrationTesting (17)
Microsoft.AspNetCore.Server.Kestrel.Core (13)
Microsoft.AspNetCore.SpaProxy (6)
Microsoft.AspNetCore.SpaServices.Extensions (4)
Microsoft.Build (57)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (27)
166List<Process> nodeProcesses = GetPossibleRunningNodes().nodeProcesses.ToList();
172nodeProcesses.AddRange(Process.GetProcessesByName(Path.GetFileNameWithoutExtension(msbuildtaskhostExeName)));
175foreach (Process nodeProcess in nodeProcesses)
266ConcurrentQueue<Process> possibleRunningNodes = null;
271IList<Process> possibleRunningNodesList;
275possibleRunningNodes = new ConcurrentQueue<Process>(possibleRunningNodesList);
320while (possibleRunningNodes != null && possibleRunningNodes.TryDequeue(out var nodeToReuse))
393Process msbuildProcess = nodeLauncher.Start(launchData, nodeId);
441void CreateNodeContext(int nodeId, Process nodeToReuse, Stream nodeStream, byte negotiatedVersion)
458private (string expectedProcessName, IList<Process> nodeProcesses) GetPossibleRunningNodes(
472List<Process> processes = new();
477processes.AddRange(Process.GetProcessesByName(name));
578private static IList<Process> FilterProcessesByNodeMode(List<Process> processes, NodeMode expectedNodeMode, string expectedProcessName)
582List<Process> filtered = new(capacity: processes.Count);
584foreach (Process process in processes)
725(_, IList<Process> nodeProcesses) = GetPossibleRunningNodes(nodeMode);
727foreach (var process in nodeProcesses)
740private static (string expectedProcessName, IList<Process> nodeProcesses) GetPossibleRunningNodes(NodeMode? expectedNodeMode)
744Process[] processes;
747processes = Process.GetProcessesByName(expectedProcessName);
751return (expectedProcessName, Array.Empty<Process>());
756List<Process> filteredProcesses = [];
758foreach (var process in processes)
943private readonly Process _process;
945internal Process Process { get { return _process; } }
1025Process process,
Microsoft.Build.Framework (12)
Microsoft.Build.Tasks.CodeAnalysis (5)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Utilities.Core (10)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
Microsoft.Data.Analysis.Tests (2)
Microsoft.Diagnostics.NETCore.Client (3)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.Cli.Utils (10)
Microsoft.DotNet.HotReload.Watch (14)
Process\ProcessRunner.cs (9)
13private sealed class ProcessState(Process process) : IDisposable
15public Process Process { get; } = process;
137internal static Process? TryStartProcess(ProcessSpec processSpec, ILogger logger)
144var process = new Process
235private async ValueTask TerminateProcessAsync(Process process, ProcessSpec processSpec, ProcessState state, ILogger logger)
258private static async ValueTask<bool> WaitForExitAsync(Process process, ProcessState state, TimeSpan? timeout, ILogger logger)
321private static void TerminateProcess(Process process, ProcessState state, ILogger logger, bool force)
343private static void TerminateWindowsProcess(Process process, ProcessState state, ILogger logger, bool force)
370private static void TerminateUnixProcess(Process process, ProcessState state, ILogger logger, bool force)
Microsoft.DotNet.MacOsPkg.Core (1)
Microsoft.DotNet.StrongName (4)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Templates.Tests (2)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Hosting.WindowsServices (3)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.McpServer.ProjectTemplates.Tests (2)
Microsoft.ML.AutoML (4)
Microsoft.ML.CodeGenerator (3)
Microsoft.ML.Data (2)
Microsoft.ML.FastTree (3)
Microsoft.ML.Sweeper (1)
Microsoft.ML.TestFramework (3)
Microsoft.NET.Build.Containers (5)
Microsoft.NET.HostModel (2)
Microsoft.NET.Sdk.Publish.Tasks (2)
Microsoft.NET.Sdk.Razor.Tasks (2)
Microsoft.TemplateEngine.Cli (5)
Microsoft.TestPlatform.Build (4)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.TestPlatform.Extensions.BlameDataCollector (43)
Microsoft.TestPlatform.PlatformAbstractions (23)
Microsoft.TestPlatform.TestHostRuntimeProvider (8)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (3)
MSBuild (4)
MSBuild.Coordinator (2)
netstandard (1)
NuGet.Build.Tasks (1)
NuGet.CommandLine.XPlat (2)
NuGet.Common (3)
NuGet.Credentials (3)
NuGet.PackageManagement (1)
NuGet.Packaging (1)
NuGet.Protocol (13)
Pipelines.AppHost (8)
Pipelines.Library (2)
PresentationUI (4)
RepoTasks (13)
rzc (4)
Stress.TelemetryService (4)
SuperFileCheck (2)
System (1)
System.CodeDom (2)
System.Configuration.ConfigurationManager (2)
System.Diagnostics.PerformanceCounter (2)
System.Diagnostics.Process (85)
System\Diagnostics\Process.cs (46)
91/// Initializes a new instance of the <see cref='System.Diagnostics.Process'/> class.
100if (GetType() == typeof(Process))
468/// Gets or sets the properties to pass into the <see cref='System.Diagnostics.Process.Start(System.Diagnostics.ProcessStartInfo)'/> method for the <see cref='System.Diagnostics.Process'/>.
547/// Gets or sets whether the <see cref='System.Diagnostics.Process.Exited'/>
722/// Causes the <see cref="Process"/> component to wait the specified <paramref name="timeout"/> for the associated process to enter an idle state.
740/// No process is associated with this <see cref="Process"/> object.
907/// Returns a new <see cref='System.Diagnostics.Process'/> component given a process identifier and
911public static Process GetProcessById(int processId, string machineName)
924/// Returns a new <see cref='System.Diagnostics.Process'/> component given the
928public static Process GetProcessById(int processId)
940/// Attempts to get a <see cref="Process"/> instance for an existing process with the specified process ID.
943/// <param name="process">When this method returns <see langword="true"/>, contains a <see cref="Process"/> representing the opened process; otherwise, <see langword="null"/>.</param>
949public static bool TryGetProcessById(int processId, [NotNullWhen(true)] out Process? process)
966/// Creates an array of <see cref='System.Diagnostics.Process'/> components that are
975public static Process[] GetProcessesByName(string? processName)
985/// Creates an array of <see cref="Process"/> components that are associated with process resources on a
991public static Process[] GetProcessesByName(string? processName, string machineName)
1002/// Creates a new <see cref='System.Diagnostics.Process'/>
1009public static Process[] GetProcesses()
1019/// Creates a new <see cref='System.Diagnostics.Process'/>
1027public static Process[] GetProcesses(string machineName)
1035private static Process[] CreateProcessArray(ArrayBuilder<ProcessInfo> processInfos, string machineName, bool isRemoteMachine)
1039Process[] processes = new Process[processInfos.Count];
1052/// Returns a new <see cref='System.Diagnostics.Process'/>
1056public static Process GetCurrentProcess()
1063/// Raises the <see cref='System.Diagnostics.Process.Exited'/> event.
1104/// that has been cached inside the process component. After <see cref='System.Diagnostics.Process.Refresh'/> is called, the
1175/// Starts a process specified by the <see cref='System.Diagnostics.Process.StartInfo'/> property of this <see cref='System.Diagnostics.Process'/>
1177/// <see cref='System.Diagnostics.Process'/> . If a process resource is reused
1178/// rather than started, the reused process is associated with this <see cref='System.Diagnostics.Process'/>
1346/// document or application file. Associates the process resource with a new <see cref='System.Diagnostics.Process'/>
1353public static Process Start(string fileName)
1365/// with a new <see cref='System.Diagnostics.Process'/>
1372public static Process Start(string fileName, string? arguments)
1386public static Process Start(string fileName, IEnumerable<string> arguments)
1395/// Associates the process resource with a new <see cref='System.Diagnostics.Process'/>
1402public static Process? Start(ProcessStartInfo startInfo)
1406Process process = new Process();
1470/// Instructs the <see cref='System.Diagnostics.Process'/> component to wait
1625/// Instructs the <see cref='System.Diagnostics.Process'/> component to start
1662/// Instructs the <see cref='System.Diagnostics.Process'/> component to start
1701/// Instructs the <see cref='System.Diagnostics.Process'/> component to cancel the asynchronous operation
1722/// Instructs the <see cref='System.Diagnostics.Process'/> component to cancel the asynchronous operation
System.Diagnostics.TextWriterTraceListener (2)
System.Net.Ping (3)
System.Windows.Forms (3)
testhost (7)
testhost.arm64 (7)
testhost.x86 (7)
UIAutomationClient (2)
UIAutomationClientSideProviders (4)
vbc (5)
VBCSCompiler (6)
vstest.console (8)
vstest.console.arm64 (8)