8 implementations of ProcessId
aspire (1)
DotNet\ProcessExecution.cs (1)
77
public int
ProcessId
=> Process.Id;
Aspire.Cli.Tests (7)
Commands\AppHostLauncherTests.cs (3)
1597
public int
ProcessId
=> Inner.ProcessId;
1636
public int
ProcessId
{ get; } = process.Id;
1709
public int
ProcessId
=> int.MaxValue - 12345;
Commands\StartCommandTests.cs (1)
745
public int
ProcessId
=> int.MaxValue - 1;
DotNet\DotNetCliRunnerTests.cs (1)
2740
public int
ProcessId
=> Environment.ProcessId;
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1848
public int
ProcessId
=> Environment.ProcessId;
TestServices\TestProcessExecutionFactory.cs (1)
188
public int
ProcessId
{ get; init; } = Environment.ProcessId;
39 references to ProcessId
aspire (25)
Commands\AppHostLauncher.cs (10)
458
spawnActivity.SetProcessId(childProcess.
ProcessId
);
484
var childStableStartedAt = ProcessStartTimeHelper.TryGetProcessStartTimeUnixMilliseconds(childProcess.
ProcessId
);
485
logger.LogDebug("Child CLI process started with PID: {PID}", childProcess.
ProcessId
);
492
using var waitForBackchannelActivity = profilingTelemetry.StartDetachedWaitForBackchannel(childProcess.
ProcessId
);
518
candidate => IsLaunchedByChildCli(candidate, childProcess.
ProcessId
, childStableStartedAt));
520
candidate => IsUnattributedAppHostAtPath(candidate, canonicalAppHostPath, childProcess.
ProcessId
, childStableStartedAt));
650
childProcess.
ProcessId
,
889
DisplayChildLogTail(childLogFile, result.ChildProcess.
ProcessId
);
962
var pid = appHostInfo?.ProcessId ?? result.ChildProcess!.
ProcessId
;
969
result.ChildProcess!.
ProcessId
,
DotNet\DotNetCliRunner.cs (1)
301
processActivity.AddDotNetProcessStartResult(started, started ? execution.
ProcessId
: null);
Projects\AppHostServerSession.cs (2)
148
public int? ServerProcessId => _execution?.
ProcessId
;
240
_activity.SetProcessId(result.Execution.
ProcessId
);
Projects\DotNetBasedAppHostServerProject.cs (2)
682
_logger.LogTrace("AppHostServer({ProcessId}) stdout: {Line}", execution.
ProcessId
, line);
688
_logger.LogTrace("AppHostServer({ProcessId}) stderr: {Line}", execution.
ProcessId
, line);
Projects\IAppHostServerProject.cs (1)
33
/// <see cref="IProcessExecution.
ProcessId
"/>), drive its lifetime via
Projects\PrebuiltAppHostServer.cs (2)
1375
_logger.LogDebug("PrebuiltAppHostServer({ProcessId}) stdout: {Line}", execution.
ProcessId
, line);
1385
_logger.LogInformation("PrebuiltAppHostServer({ProcessId}) stderr: {Line}", execution.
ProcessId
, line);
Projects\ProcessGuestLauncher.cs (7)
80
var pid = execution.
ProcessId
;
92
var pid = execution.
ProcessId
;
148
_logger.LogDebug("{Language} guest process {ProcessId} started: {Command}", _language, execution.
ProcessId
, resolvedCommand);
149
activity?.SetTag(TelemetryConstants.Tags.ProcessPid, execution.
ProcessId
);
150
AddEvent(activity, ProfilingTelemetry.Events.GuestProcessStarted, TelemetryConstants.Tags.ProcessPid, execution.
ProcessId
);
160
_logger.LogInformation("Cancellation requested while waiting for {Language} guest process {ProcessId} to exit", _language, execution.
ProcessId
));
178
_logger.LogDebug("{Language} guest process {ProcessId} exited with code {ExitCode}", _language, execution.
ProcessId
, finalExitCode);
Aspire.Cli.Tests (14)
Commands\AppHostLauncherTests.cs (1)
1597
public int ProcessId => Inner.
ProcessId
;
DotNet\ProcessExecutionDetachedTests.cs (4)
42
Assert.True(child.
ProcessId
> 0);
105
Assert.True(detachedProcess.
ProcessId
> 0);
178
Assert.True(detachedProcess.
ProcessId
> 0);
292
Assert.Equal(childPid, detachedProcess.
ProcessId
);
DotNet\ProcessExecutionTests.cs (8)
175
Assert.True(WaitForProcessExit(execution.
ProcessId
, TimeSpan.FromSeconds(10)), $"Expected process {execution.
ProcessId
} to exit after cancellation.");
205
Assert.True(WaitForProcessExit(execution.
ProcessId
, TimeSpan.FromSeconds(10)), $"Expected process {execution.
ProcessId
} to exit after graceful signal.");
240
Assert.True(WaitForProcessExit(execution.
ProcessId
, TimeSpan.FromSeconds(10)), $"Expected process {execution.
ProcessId
} to be killed after graceful expiration.");
266
Assert.True(WaitForProcessExit(execution.
ProcessId
, TimeSpan.FromSeconds(10)), $"Expected process {execution.
ProcessId
} to be killed after signaler failure.");
Projects\AppHostServerSessionTests.cs (1)
146
WaitForProcessExit(project.StartedExecution!.
ProcessId
, TimeSpan.FromSeconds(30)),