172 instantiations of Process
aspire (11)
Aspire.Acquisition.Tests (1)
Aspire.Cli.EndToEnd.Tests (4)
Aspire.Cli.Tests (3)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (1)
Aspire.Deployment.EndToEnd.Tests (52)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (1)
Aspire.Hosting.Azure (1)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Foundry (2)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Radius (5)
Aspire.Hosting.RemoteHost.Tests (1)
Aspire.Hosting.Rust (1)
Aspire.Hosting.Sdk.Tests (1)
Aspire.Hosting.Tasks (1)
Aspire.Hosting.Tests (2)
Aspire.Hosting.TestUtilities (1)
Aspire.Managed.Tests (1)
Aspire.Templates.Tests (2)
Aspire.TerminalHost.Tests (1)
Aspire.TestTools (2)
dotnet (2)
dotnet-aot (1)
dotnet-format (1)
dotnet-suggest (1)
dotnet-svcutil-lib (1)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
Infrastructure.Tests (17)
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.ML.CodeGenerator (3)
Microsoft.ML.Sweeper (1)
Microsoft.NET.Build.Containers (2)
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 (7)
System\Diagnostics\Process.cs (6)
1002return new Process(machineName, isRemoteMachine, processId, null);
1019return new Process(".", false, processId, null);
1038process = new Process(".", false, processId, null);
1126processes[i] = new Process(machineName, isRemoteMachine, processInfo.ProcessId, processInfo);
1141return new Process(".", false, Environment.ProcessId, null);
1567Process process = new Process();
System.Net.Ping (1)
1194 references to Process
aspire (133)
src\Shared\ProcessSignaler.cs (9)
16using var process = TryGetRunningProcess(pid, expectedStartTime, logger);
27using var process = TryGetRunningProcessWithRuntimeStartTime(pid, expectedStartTime, tolerance, logger);
52using var process = TryGetRunningProcess(pid, expectedStartTime, logger);
67public static Process? TryGetRunningProcess(int pid, DateTimeOffset? expectedStartTime, ILogger logger)
69Process? process = null;
72process = Process.GetProcessById(pid);
130public static Process? TryGetRunningProcessWithRuntimeStartTime(int pid, DateTimeOffset expectedStartTime, TimeSpan tolerance, ILogger logger)
132Process? process = null;
135process = Process.GetProcessById(pid);
aspire-managed (19)
Aspire.Acquisition.Tests (2)
Aspire.Cli.EndToEnd.Tests (8)
Aspire.Cli.Tests (77)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (1)
Aspire.Deployment.EndToEnd.Tests (52)
Aspire.EndToEnd.Tests (5)
Aspire.Hosting (52)
src\Shared\ProcessSignaler.cs (9)
16using var process = TryGetRunningProcess(pid, expectedStartTime, logger);
27using var process = TryGetRunningProcessWithRuntimeStartTime(pid, expectedStartTime, tolerance, logger);
52using var process = TryGetRunningProcess(pid, expectedStartTime, logger);
67public static Process? TryGetRunningProcess(int pid, DateTimeOffset? expectedStartTime, ILogger logger)
69Process? process = null;
72process = Process.GetProcessById(pid);
130public static Process? TryGetRunningProcessWithRuntimeStartTime(int pid, DateTimeOffset expectedStartTime, TimeSpan tolerance, ILogger logger)
132Process? process = null;
135process = Process.GetProcessById(pid);
Aspire.Hosting.Azure (4)
Aspire.Hosting.Browsers (4)
Aspire.Hosting.Browsers.Tests (4)
Aspire.Hosting.CodeGeneration.Python (2)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (4)
Aspire.Hosting.EntityFrameworkCore (2)
Aspire.Hosting.Foundry (7)
Aspire.Hosting.Java.Tests (8)
Aspire.Hosting.JavaScript.Tests (6)
Aspire.Hosting.Kubernetes (4)
Aspire.Hosting.Maui (4)
Aspire.Hosting.Python (2)
Aspire.Hosting.Python.Tests (4)
Aspire.Hosting.Radius (5)
Aspire.Hosting.RemoteHost (17)
Aspire.Hosting.RemoteHost.Tests (1)
Aspire.Hosting.Rust (2)
Aspire.Hosting.Rust.Tests (2)
Aspire.Hosting.Sdk.Tests (11)
Aspire.Hosting.Tasks (5)
Aspire.Hosting.Tests (25)
Aspire.Hosting.TestUtilities (3)
Aspire.Managed.Tests (7)
Aspire.Playground.Tests (2)
Aspire.Templates.Tests (5)
Aspire.TerminalHost (17)
Aspire.TerminalHost.Tests (1)
Aspire.TestTools (2)
Aspire.TestUtilities (4)
csc (5)
datacollector (7)
datacollector.arm64 (7)
dotnet (17)
dotnet-aot (3)
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 (27)
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)
950private readonly Process _process;
952internal Process Process { get { return _process; } }
1051Process 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 (6)
Microsoft.Extensions.Hosting.WindowsServices (3)
Microsoft.Extensions.Http.Resilience.Tests (3)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Telemetry.Tests (1)
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 (8)
Microsoft.NET.HostModel (2)
Microsoft.NET.Sdk.Publish.Tasks (2)
Microsoft.NET.Sdk.Razor.Tasks (1)
Microsoft.TemplateEngine.Cli (5)
Microsoft.TestPlatform.Build (4)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.TestPlatform.Extensions.BlameDataCollector (43)
Microsoft.TestPlatform.PlatformAbstractions (24)
Microsoft.TestPlatform.TestHostRuntimeProvider (8)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (3)
MSBuild (6)
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 (3)
SelectTests (4)
Stress.TelemetryService (4)
SuperFileCheck (2)
System (1)
System.CodeDom (2)
System.Configuration.ConfigurationManager (2)
System.Diagnostics.PerformanceCounter (2)
System.Diagnostics.Process (91)
System\Diagnostics\Process.cs (46)
90/// Initializes a new instance of the <see cref='System.Diagnostics.Process'/> class.
99if (GetType() == typeof(Process))
551/// 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'/>.
630/// Gets or sets whether the <see cref='System.Diagnostics.Process.Exited'/>
805/// Causes the <see cref="Process"/> component to wait the specified <paramref name="timeout"/> for the associated process to enter an idle state.
823/// No process is associated with this <see cref="Process"/> object.
990/// Returns a new <see cref='System.Diagnostics.Process'/> component given a process identifier and
994public static Process GetProcessById(int processId, string machineName)
1007/// Returns a new <see cref='System.Diagnostics.Process'/> component given the
1011public static Process GetProcessById(int processId)
1023/// Attempts to get a <see cref="Process"/> instance for an existing process with the specified process ID.
1026/// <param name="process">When this method returns <see langword="true"/>, contains a <see cref="Process"/> representing the opened process; otherwise, <see langword="null"/>.</param>
1032public static bool TryGetProcessById(int processId, [NotNullWhen(true)] out Process? process)
1049/// Creates an array of <see cref='System.Diagnostics.Process'/> components that are
1058public static Process[] GetProcessesByName(string? processName)
1068/// Creates an array of <see cref="Process"/> components that are associated with process resources on a
1074public static Process[] GetProcessesByName(string? processName, string machineName)
1085/// Creates a new <see cref='System.Diagnostics.Process'/>
1092public static Process[] GetProcesses()
1102/// Creates a new <see cref='System.Diagnostics.Process'/>
1110public static Process[] GetProcesses(string machineName)
1118private static Process[] CreateProcessArray(ArrayBuilder<ProcessInfo> processInfos, string machineName, bool isRemoteMachine)
1122Process[] processes = new Process[processInfos.Count];
1135/// Returns a new <see cref='System.Diagnostics.Process'/>
1139public static Process GetCurrentProcess()
1146/// Raises the <see cref='System.Diagnostics.Process.Exited'/> event.
1187/// that has been cached inside the process component. After <see cref='System.Diagnostics.Process.Refresh'/> is called, the
1258/// Starts a process specified by the <see cref='System.Diagnostics.Process.StartInfo'/> property of this <see cref='System.Diagnostics.Process'/>
1260/// <see cref='System.Diagnostics.Process'/> . If a process resource is reused
1261/// rather than started, the reused process is associated with this <see cref='System.Diagnostics.Process'/>
1507/// document or application file. Associates the process resource with a new <see cref='System.Diagnostics.Process'/>
1514public static Process Start(string fileName)
1526/// with a new <see cref='System.Diagnostics.Process'/>
1533public static Process Start(string fileName, string? arguments)
1547public static Process Start(string fileName, IEnumerable<string> arguments)
1556/// Associates the process resource with a new <see cref='System.Diagnostics.Process'/>
1563public static Process? Start(ProcessStartInfo startInfo)
1567Process process = new Process();
1631/// Instructs the <see cref='System.Diagnostics.Process'/> component to wait
1908/// Instructs the <see cref='System.Diagnostics.Process'/> component to start
1945/// Instructs the <see cref='System.Diagnostics.Process'/> component to start
1984/// Instructs the <see cref='System.Diagnostics.Process'/> component to cancel the asynchronous operation
2005/// 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)