8 implementations of ProcessId
aspire (1)
DotNet\ProcessExecution.cs (1)
77
public int
ProcessId
=> Process.Id;
Aspire.Cli.Tests (7)
Commands\AppHostLauncherTests.cs (3)
1432
public int
ProcessId
=> Inner.ProcessId;
1471
public int
ProcessId
{ get; } = process.Id;
1544
public int
ProcessId
=> int.MaxValue - 12345;
Commands\StartCommandTests.cs (1)
744
public int
ProcessId
=> int.MaxValue - 1;
DotNet\DotNetCliRunnerTests.cs (1)
2691
public int
ProcessId
=> Environment.ProcessId;
Telemetry\InternalMicrosoftDetectorTests.cs (1)
617
public int
ProcessId
=> Environment.ProcessId;
TestServices\TestProcessExecutionFactory.cs (1)
188
public int
ProcessId
{ get; init; } = Environment.ProcessId;
36 references to ProcessId
aspire (22)
Commands\AppHostLauncher.cs (7)
507
spawnActivity.SetProcessId(childProcess.
ProcessId
);
529
logger.LogDebug("Child CLI process started with PID: {PID}", childProcess.
ProcessId
);
532
using var waitForBackchannelActivity = profilingTelemetry.StartDetachedWaitForBackchannel(childProcess.
ProcessId
, expectedHash, legacyHashes.Count > 0);
687
childProcess.
ProcessId
,
850
DisplayChildLogTail(childLogFile, result.ChildProcess.
ProcessId
);
923
var pid = appHostInfo?.ProcessId ?? result.ChildProcess!.
ProcessId
;
930
result.ChildProcess!.
ProcessId
,
DotNet\DotNetCliRunner.cs (1)
289
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)
681
_logger.LogTrace("AppHostServer({ProcessId}) stdout: {Line}", execution.
ProcessId
, line);
687
_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)
1371
_logger.LogDebug("PrebuiltAppHostServer({ProcessId}) stdout: {Line}", execution.
ProcessId
, line);
1381
_logger.LogInformation("PrebuiltAppHostServer({ProcessId}) stderr: {Line}", execution.
ProcessId
, line);
Projects\ProcessGuestLauncher.cs (7)
85
var pid = execution.
ProcessId
;
97
var pid = execution.
ProcessId
;
153
_logger.LogDebug("{Language} guest process {ProcessId} started: {Command}", _language, execution.
ProcessId
, resolvedCommandPath);
154
activity?.SetTag(TelemetryConstants.Tags.ProcessPid, execution.
ProcessId
);
155
AddEvent(activity, ProfilingTelemetry.Events.GuestProcessStarted, TelemetryConstants.Tags.ProcessPid, execution.
ProcessId
);
165
_logger.LogInformation("Cancellation requested while waiting for {Language} guest process {ProcessId} to exit", _language, execution.
ProcessId
));
183
_logger.LogDebug("{Language} guest process {ProcessId} exited with code {ExitCode}", _language, execution.
ProcessId
, finalExitCode);
Aspire.Cli.Tests (14)
Commands\AppHostLauncherTests.cs (1)
1432
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)
144
WaitForProcessExit(project.StartedExecution!.
ProcessId
, TimeSpan.FromSeconds(30)),