96 writes to ProcessId
aspire (1)
Commands\StopCommand.TrayProtocol.cs (1)
97
ProcessId
= processId.Value,
Aspire.Cli.Tests (95)
Backchannel\AppHostAuxiliaryBackchannelTests.cs (1)
205
ProcessId
= _processId
Backchannel\AppHostConnectionResolverTests.cs (1)
535
ProcessId
= Environment.ProcessId
Backchannel\AuxiliaryBackchannelMonitorTests.cs (2)
127
ProcessId
= 1
222
ProcessId
= 1
Backchannel\OrphanedAppHostCollectorTests.cs (9)
30
ProcessId
= 4242,
49
ProcessId
= 4242,
69
ProcessId
= 4242,
89
ProcessId
= 4242,
109
ProcessId
= 4242,
130
ProcessId
= 4242,
158
ProcessId
= 4242,
186
ProcessId
= 4242,
382
ProcessId
= appHostPid,
Backchannel\TrayWatchStreamTests.cs (1)
1004
AppHostInfo = new AppHostInformation { AppHostPath = path,
ProcessId
= pid },
Commands\AgentMcpCommandTests.cs (19)
173
ProcessId
= 2002
233
ProcessId
= 12345
297
ProcessId
= 12345
374
ProcessId
= 12345
507
ProcessId
= 12345
587
ProcessId
= 2002
655
ProcessId
= 1001
700
ProcessId
= 2002
797
ProcessId
= 1001
829
ProcessId
= 2002
918
ProcessId
= 2002
994
ProcessId
= 1001
1029
ProcessId
= 1001
1092
ProcessId
= 2002
1119
ProcessId
= 2002
1172
ProcessId
= 12345
1200
ProcessId
= 12345
1399
ProcessId
= 12345
1831
ProcessId
= 12345
Commands\AppHostLauncherTests.cs (6)
1398
ProcessId
= Environment.ProcessId,
1769
ProcessId
= 4242,
1793
ProcessId
= 4242,
1814
ProcessId
= 4242,
1831
ProcessId
= 4242,
1923
ProcessId
= 4444,
Commands\DescribeCommandTests.cs (2)
1099
ProcessId
= 1234
1123
ProcessId
= processId
Commands\ExportCommandTests.cs (3)
193
ProcessId
= 1111
216
ProcessId
= 2222
883
ProcessId
= 1234
Commands\LogsCommandTests.cs (5)
729
ProcessId
= 1234
819
ProcessId
= 1234
986
ProcessId
= 1234
1549
ProcessId
= 1234
1627
ProcessId
= processId
Commands\PsCommandTests.cs (15)
132
ProcessId
= 1234,
147
ProcessId
= 9012
238
ProcessId
= 1234
278
ProcessId
= 1234
322
ProcessId
= 1234
366
ProcessId
= 1234,
445
ProcessId
= 1234
506
ProcessId
= 1234
545
ProcessId
= 1234,
586
ProcessId
= 1234
678
ProcessId
= 1234,
722
ProcessId
= 1234,
762
ProcessId
= 1234,
809
ProcessId
= 1234
891
ProcessId
= processId
Commands\ResourceCommandTests.cs (3)
212
ProcessId
= 1
260
ProcessId
= 1
1257
ProcessId
= 42,
Commands\StopCommandTests.cs (4)
71
selected.AppHostInfo = new AppHostInformation { AppHostPath = appHostPath,
ProcessId
= int.MaxValue - 1, CliProcessId = int.MaxValue - 3 };
72
sibling.AppHostInfo = new AppHostInformation { AppHostPath = appHostPath,
ProcessId
= int.MaxValue - 2, CliProcessId = int.MaxValue - 3 };
122
connection.AppHostInfo = new AppHostInformation { AppHostPath = appHostPath,
ProcessId
= int.MaxValue - 1, CliProcessId = int.MaxValue - 3 };
1615
ProcessId
= processId
Commands\TelemetryFollowTests.cs (1)
241
ProcessId
= Environment.ProcessId
Commands\TelemetryTestHelper.cs (1)
79
ProcessId
= 1234
Commands\TelemetryTracesCommandTests.cs (1)
88
ProcessId
= 1234
Commands\TrayProtocolCommandTests.cs (1)
316
AppHostInfo = new AppHostInformation { AppHostPath = path,
ProcessId
= pid }
Mcp\AppHostConnectionSelectionLogicTests.cs (1)
344
ProcessId
= processId,
Mcp\ExcludeFromMcpTests.cs (1)
200
ProcessId
= 4242
Mcp\ListAppHostsToolTests.cs (4)
51
ProcessId
= 1234,
83
ProcessId
= 9999,
115
ProcessId
= 1111,
126
ProcessId
= 3333,
Mcp\ListResourcesToolTests.cs (1)
1203
ProcessId
= 4242
Mcp\SelectAppHostToolTests.cs (1)
194
ProcessId
= processId,
Mcp\WaitForResourcesToolTests.cs (1)
805
ProcessId
= 4242
Processes\ProcessTreeGracefulShutdownServiceTests.cs (8)
37
ProcessId
= int.MaxValue,
75
ProcessId
= appHostProcess.Id,
191
ProcessId
= 1234,
209
ProcessId
= 1234,
251
ProcessId
= appHostProcess.Id,
296
ProcessId
= int.MaxValue,
335
ProcessId
= int.MaxValue,
373
ProcessId
= appHostProcess.Id,
Projects\RunningInstanceManagerTests.cs (1)
141
ProcessId
= _processId
TestServices\TerminalCommandTestServices.cs (1)
25
ProcessId
= 1234
TestServices\TestAuxiliaryBackchannelServer.cs (1)
51
ProcessId
= Environment.ProcessId
29 references to ProcessId
aspire (21)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
582
Pid = legacyInfo.
ProcessId
.ToString(System.Globalization.CultureInfo.InvariantCulture),
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
641
connection.AppHostInfo?.
ProcessId
.ToString(CultureInfo.InvariantCulture) ?? "N/A",
Backchannel\OrphanedAppHostCollector.cs (2)
68
appHostInfo?.
ProcessId
,
76
appHostInfo?.
ProcessId
);
Backchannel\TrayWatchStream.cs (2)
213
var startedAt = processIdentityProvider.GetStartTimeUnixMilliseconds(info.
ProcessId
);
217
AppHostPid = info.
ProcessId
,
Commands\AppHostFollowDisconnectHelpers.cs (1)
21
if (connection.AppHostInfo?.
ProcessId
is not int pid)
Commands\AppHostLauncher.cs (1)
962
var pid = appHostInfo?.
ProcessId
?? result.ChildProcess!.ProcessId;
Commands\PsCommand.cs (1)
388
var appHostPid = info.
ProcessId
;
Commands\StopCommand.cs (2)
192
info.
ProcessId
== processId &&
687
? string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AppHostIdentifierWithProcessId, displayPath, appHostInfo.
ProcessId
)
Commands\StopCommand.TrayProtocol.cs (1)
70
info.
ProcessId
== processId && GetAppHostPathComparer().Equals(info.AppHostPath, appHostFile.FullName))
Mcp\Tools\ListAppHostsTool.cs (2)
51
c.AppHostInfo?.
ProcessId
?? 0,
59
c.AppHostInfo?.
ProcessId
?? 0,
Processes\ProcessTreeGracefulShutdownService.cs (4)
169
logger.LogDebug("Sending graceful shutdown to AppHost PID {Pid}", appHostInfo.
ProcessId
);
195
logger.LogDebug("RPC stop not available, requesting shutdown via AppHost PID {Pid}", appHostInfo.
ProcessId
);
373
return new ProcessTarget(appHostInfo.
ProcessId
, stableStartedAt, UseRuntimeStartTime: false);
379
return new ProcessTarget(appHostInfo.
ProcessId
, appHostInfo.StartedAt, UseRuntimeStartTime: appHostInfo.StartedAt is not null);
Projects\RunningInstanceManager.cs (2)
66
_interactionService.DisplayMessage(KnownEmojis.StopSign, $"Stopping previous instance (AppHost PID: {appHostInfo.
ProcessId
.ToString(CultureInfo.InvariantCulture)}, CLI PID: {cliPidText})");
120
var pidsToMonitor = new List<int> { appHostInfo.
ProcessId
};
Telemetry\ProfilingTelemetry.cs (1)
649
activity.SetProcessId(appHostInfo.
ProcessId
);
Aspire.Cli.Tests (8)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (4)
103
Assert.Equal(firstConnection.AppHostInfo.
ProcessId
, replacementConnection.AppHostInfo.
ProcessId
);
326
Assert.Equal(secondConnection.AppHostInfo.
ProcessId
, replacementConnection.AppHostInfo.
ProcessId
);
Backchannel\OrphanedAppHostCollectorTests.cs (2)
218
Assert.Equal(4242, stopped?.
ProcessId
);
293
ThrowSelector = info => info?.
ProcessId
== 1 ? new InvalidOperationException("boom") : null,
Commands\StopCommandTests.cs (1)
82
var arguments = new List<string> { "stop", "--pid", selected.AppHostInfo.
ProcessId
.ToString(CultureInfo.InvariantCulture), "--nologo" };
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
153
Pid = AppHostInfo.
ProcessId
.ToString(System.Globalization.CultureInfo.InvariantCulture),