1 write to ProcessId
Aspire.Hosting.RemoteHost (1)
src\Shared\ProcessScope.cs (1)
28ProcessId = execution.ProcessId;
15 references to ProcessId
Aspire.Hosting.RemoteHost (13)
Language\IntegrationHostLauncher.cs (8)
164activity.SetIntegrationHostProcessId(process.ProcessId); 168descriptor.PackageName, registrationId, process.ProcessId, _configuration.RegistrationTimeout); 179descriptor.PackageName, registrationId, process.ProcessId, connection.GetHashCode(), _timeProvider.GetElapsedTime(started)); 188$"(attempt {registrationId}, supervisor PID {process.ProcessId}). Check its stdout/stderr.", ex); 213activity.SetIntegrationHostProcessId(process.ProcessId); 217descriptor.PackageName, connection.GetHashCode(), process.ProcessId, _configuration.DiscoveryTimeout); 227$"(supervisor PID {process.ProcessId}, connection {connection.GetHashCode()}).", ex); 357$"Integration host supervisor for '{descriptor.PackageName}' (PID {process.ProcessId}, entry '{descriptor.HostEntryPoint}') " +
Language\IntegrationHostProcessLauncher.cs (2)
72activity.SetIntegrationHostProcessId(process.ProcessId); 73logger.LogInformation("Started integration host supervisor '{Name}' (PID {Pid}).", descriptor.PackageName, process.ProcessId);
src\Shared\ProcessScope.cs (3)
30_logger.LogDebug("Process scope '{Name}' started with supervisor PID {Pid}.", description, ProcessId); 51_logger.LogDebug("Process scope '{Name}' (supervisor PID {Pid}) terminated and cleanup verified.", _description, ProcessId); 55_logger.LogError(ex, "Failed to clean up process scope '{Name}' (supervisor PID {Pid}).", _description, ProcessId);
Aspire.Hosting.RemoteHost.Tests (2)
tests\Shared\Processes\ProcessSupervisorTests.cs (2)
102var guardianIdentity = ProcessTestIdentity.Capture(scope.ProcessId); 122using var observedGuardian = Process.GetProcessById(scope.ProcessId);