11 references to ProcessStartTimeHelper
Aspire.Dashboard (11)
src\Shared\ChildProcess.cs (1)
182return 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\ParentProcessWatchdog.cs (2)
81if (ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(getEnvironmentVariable(stableStartVariable)) is { } stableStartTimeUnix) 90: ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(getEnvironmentVariable(legacyStartVariable));
src\Shared\ProcessSignaler.cs (3)
81var actualStartTimeUnixMilliseconds = ProcessStartTimeHelper.TryGetProcessStartTimeUnixMilliseconds(pid); 90if (!ProcessStartTimeHelper.AreCloseMilliseconds(expectedStartTimeUnixMilliseconds, actualStartTimeUnixMilliseconds.Value)) 143if (!ProcessStartTimeHelper.IsProcessRunningWithRuntimeStartTime(pid, expectedStartTimeUnix, tolerance))
src\Shared\ProcessSupervisor.cs (2)
76startInfo.Environment[ParentStartedVariable] = ProcessStartTimeHelper.TryGetProcessStartTimeUnixMilliseconds(Environment.ProcessId)? 136if (!ProcessStartTimeHelper.IsProcessRunning(parentId, parentStarted))