14 references to ProcessStartTimeHelper
Aspire.Hosting.RemoteHost (14)
OrphanDetector.cs (5)
25
internal Func<int, bool> IsProcessRunning { get; set; } = static pid =>
ProcessStartTimeHelper
.IsProcessRunning(pid);
30
internal Func<int, long, bool> IsProcessRunningWithStartTime { get; set; } = static (pid, expectedStartTimeUnix) =>
ProcessStartTimeHelper
.IsProcessRunning(pid, expectedStartTimeUnix);
34
return
ProcessStartTimeHelper
.IsProcessRunningWithRuntimeStartTime(pid, expectedStartTimeUnix,
ProcessStartTimeHelper
.LegacyStartTimeMatchTolerance);
64
if (
ProcessStartTimeHelper
.TryParseStartTimeUnixSeconds(startTimeString) is { } parsedStartTime)
src\Shared\ChildProcess.cs (1)
182
return
ProcessStartTimeHelper
.TryGetProcessStartTime(process.Id) ?? new DateTimeOffset(process.StartTime);
src\Shared\ParentProcessLivenessMonitor.cs (3)
81
?
ProcessStartTimeHelper
.IsProcessRunningWithRuntimeStartTime(parentPid, legacyStartTime,
ProcessStartTimeHelper
.LegacyStartTimeMatchTolerance)
82
:
ProcessStartTimeHelper
.IsProcessRunning(parentPid, parentStartedUnix);
src\Shared\ProcessSignaler.cs (3)
81
var actualStartTimeUnixMilliseconds =
ProcessStartTimeHelper
.TryGetProcessStartTimeUnixMilliseconds(pid);
90
if (!
ProcessStartTimeHelper
.AreCloseMilliseconds(expectedStartTimeUnixMilliseconds, actualStartTimeUnixMilliseconds.Value))
143
if (!
ProcessStartTimeHelper
.IsProcessRunningWithRuntimeStartTime(pid, expectedStartTimeUnix, tolerance))
src\Shared\ProcessSupervisor.cs (2)
76
startInfo.Environment[ParentStartedVariable] =
ProcessStartTimeHelper
.TryGetProcessStartTimeUnixMilliseconds(Environment.ProcessId)?
136
if (!
ProcessStartTimeHelper
.IsProcessRunning(parentId, parentStarted))