86 references to StartTime
aspire (14)
Program.cs (1)
1374activity.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)
214return process.StartTime.ToUniversalTime().Ticks;
src\Shared\ChildProcess.cs (1)
182return ProcessStartTimeHelper.TryGetProcessStartTime(process.Id) ?? new DateTimeOffset(process.StartTime);
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)
214return 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-tray (3)
src\Aspire.Tray\Common\TrayActivation.cs (1)
43_identity = new(process.Id, process.StartTime.ToUniversalTime().Ticks);
src\Aspire.Tray\Common\TrayProcessIdentity.cs (1)
42if (process.StartTime.ToUniversalTime().Ticks != StartTimeUtcTicks)
src\Shared\BundleVersionLease.cs (1)
214return process.StartTime.ToUniversalTime().Ticks;
Aspire.Cli.Tests (1)
Commands\AppHostLauncherTests.cs (1)
1688return ProcessStartTimeHelper.TryGetProcessStartTime(process.Id) ?? new DateTimeOffset(process.StartTime);
Aspire.Dashboard (10)
src\Shared\BundleVersionLease.cs (1)
214return 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.Hosting (14)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
931StartedAt = 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 (10)
src\Shared\ChildProcess.cs (1)
182return ProcessStartTimeHelper.TryGetProcessStartTime(process.Id) ?? new DateTimeOffset(process.StartTime);
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
Aspire.Tray.Tests (9)
src\Aspire.Tray\Common\TrayActivation.cs (1)
43_identity = new(process.Id, process.StartTime.ToUniversalTime().Ticks);
src\Aspire.Tray\Common\TrayProcessIdentity.cs (1)
42if (process.StartTime.ToUniversalTime().Ticks != StartTimeUtcTicks)
src\Shared\BundleVersionLease.cs (1)
214return process.StartTime.ToUniversalTime().Ticks;
TrayActivationTests.cs (4)
69Assert.Equal(process.StartTime.ToUniversalTime().Ticks, BinaryPrimitives.ReadInt64LittleEndian(response.AsSpan(5))); 186Assert.Equal(new(process.Id, process.StartTime.ToUniversalTime().Ticks), identity); 206Assert.Equal(new(process.Id, process.StartTime.ToUniversalTime().Ticks), identity); 281var identity = new TrayProcessIdentity(process.Id, process.StartTime.ToUniversalTime().Ticks + 1);
TrayProcessIdentityTests.cs (2)
14var identity = new TrayProcessIdentity(process.Id, process.StartTime.ToUniversalTime().Ticks); 29var identity = new TrayProcessIdentity(process.Id, process.StartTime.ToUniversalTime().Ticks - 1);
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();