64 references to StartTime
aspire (14)
Processes\IsolatedProcess.cs (1)
465return ProcessStartTimeHelper.TryGetProcessStartTime(process.Id) ?? new DateTimeOffset(process.StartTime);
Program.cs (1)
1135mainActivity.SetStartTime(currentProcess.StartTime);
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (2)
1503/// Gets or sets when the AppHost process started using the legacy <see cref="Process.StartTime"/> clock domain. 1528/// <see cref="Process.StartTime"/> for released-AppHost compatibility. On Linux it drifts across
src\Shared\BundleVersionLease.cs (1)
266return process.StartTime.ToUniversalTime().Ticks;
src\Shared\ProcessStartTimeHelper.cs (9)
21/// The tolerance legacy callers apply when comparing a <see cref="Process.StartTime"/>-derived 48/// Gets the current process's start time as reported by <see cref="Process.StartTime"/>. 53return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 68return new DateTimeOffset(process.StartTime); 81/// using <see cref="Process.StartTime"/>. 89return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 111return new DateTimeOffset(process.StartTime); 220/// <see cref="Process.StartTime"/>. Cross-process callers should pass a one-second 221/// <paramref name="tolerance"/> because on Linux <see cref="Process.StartTime"/> is reconstructed from
aspire-managed (10)
src\Shared\BundleVersionLease.cs (1)
266return process.StartTime.ToUniversalTime().Ticks;
src\Shared\ProcessStartTimeHelper.cs (9)
21/// The tolerance legacy callers apply when comparing a <see cref="Process.StartTime"/>-derived 48/// Gets the current process's start time as reported by <see cref="Process.StartTime"/>. 53return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 68return new DateTimeOffset(process.StartTime); 81/// using <see cref="Process.StartTime"/>. 89return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 111return new DateTimeOffset(process.StartTime); 220/// <see cref="Process.StartTime"/>. Cross-process callers should pass a one-second 221/// <paramref name="tolerance"/> because on Linux <see cref="Process.StartTime"/> is reconstructed from
Aspire.Cli.Tests (1)
Commands\AppHostLauncherTests.cs (1)
1523return ProcessStartTimeHelper.TryGetProcessStartTime(process.Id) ?? new DateTimeOffset(process.StartTime);
Aspire.Hosting (14)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
909StartedAt = new DateTimeOffset(currentProcess.StartTime),
Backchannel\BackchannelDataTypes.cs (2)
1503/// Gets or sets when the AppHost process started using the legacy <see cref="Process.StartTime"/> clock domain. 1528/// <see cref="Process.StartTime"/> for released-AppHost compatibility. On Linux it drifts across
Dcp\DcpProcessMonitor.cs (1)
36return parentProcess.StartTime.ToUniversalTime();
Diagnostics\ProfilingTelemetry.cs (1)
749return new DateTimeOffset(Process.GetCurrentProcess().StartTime.ToUniversalTime(), TimeSpan.Zero);
src\Shared\ProcessStartTimeHelper.cs (9)
21/// The tolerance legacy callers apply when comparing a <see cref="Process.StartTime"/>-derived 48/// Gets the current process's start time as reported by <see cref="Process.StartTime"/>. 53return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 68return new DateTimeOffset(process.StartTime); 81/// using <see cref="Process.StartTime"/>. 89return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 111return new DateTimeOffset(process.StartTime); 220/// <see cref="Process.StartTime"/>. Cross-process callers should pass a one-second 221/// <paramref name="tolerance"/> because on Linux <see cref="Process.StartTime"/> is reconstructed from
Aspire.Hosting.RemoteHost (9)
src\Shared\ProcessStartTimeHelper.cs (9)
21/// The tolerance legacy callers apply when comparing a <see cref="Process.StartTime"/>-derived 48/// Gets the current process's start time as reported by <see cref="Process.StartTime"/>. 53return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 68return new DateTimeOffset(process.StartTime); 81/// using <see cref="Process.StartTime"/>. 89return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 111return new DateTimeOffset(process.StartTime); 220/// <see cref="Process.StartTime"/>. Cross-process callers should pass a one-second 221/// <paramref name="tolerance"/> because on Linux <see cref="Process.StartTime"/> is reconstructed from
Aspire.TerminalHost (9)
src\Shared\ProcessStartTimeHelper.cs (9)
21/// The tolerance legacy callers apply when comparing a <see cref="Process.StartTime"/>-derived 48/// Gets the current process's start time as reported by <see cref="Process.StartTime"/>. 53return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 68return new DateTimeOffset(process.StartTime); 81/// using <see cref="Process.StartTime"/>. 89return new DateTimeOffset(process.StartTime).ToUnixTimeSeconds(); 111return new DateTimeOffset(process.StartTime); 220/// <see cref="Process.StartTime"/>. Cross-process callers should pass a one-second 221/// <paramref name="tolerance"/> because on Linux <see cref="Process.StartTime"/> is reconstructed from
dotnet (1)
Program.cs (1)
46?.SetStartTime(Process.GetCurrentProcess().StartTime)
dotnet-aot (1)
NativeEntryPoint.cs (1)
141mainActivity.SetStartTime(Process.GetCurrentProcess().StartTime.ToUniversalTime());
Microsoft.TestPlatform.Extensions.BlameDataCollector (4)
ProcessCodeMethods.cs (4)
176var children = acc.Where(p => p.ParentId == parent.Id && p.Process?.StartTime > parent.StartTime).ToList(); 190return child.StartTime > parent.StartTime && child.Id != parent.Id;
NuGet.Protocol (1)
Plugins\Logging\ProcessLogMessage.cs (1)
24_processStartTime = process.StartTime.ToUniversalTime();