2 writes to Timestamp
Aspire.Hosting (2)
src\Shared\ConsoleLogs\LogEntry.cs (2)
79Timestamp = startTimestamp, 101Timestamp = timestamp,
23 references to Timestamp
Aspire.Hosting (23)
ApplicationModel\ResourceLoggerService.cs (2)
857if (entry.Timestamp != null) 859content = entry.Timestamp.Value.ToString(KnownFormats.ConsoleLogsTimestampFormat, CultureInfo.InvariantCulture) + " " + content;
Dcp\DcpResourceWatcher.cs (3)
785if (logEntry.Timestamp is { } timestamp && 854logEntries.Any(entry => entry.Timestamp is null || entry.Timestamp > pendingDeduplication.LatestTimestamp.Value))
src\Shared\ConsoleLogs\LogEntries.cs (17)
62if (logEntry.Timestamp is null) 69if (pauseVM.ResourcePrefix == logEntry.ResourcePrefix && pauseVM.Contains(logEntry.Timestamp.Value)) 103var batch = logEntries.OrderBy(e => e.Timestamp!.Value).ToList(); 113(existingIndex < existing.Count && existing[existingIndex].Timestamp!.Value <= batch[batchIndex].Timestamp!.Value) 148if (logEntry is not { Timestamp: { } timestamp, Type: not LogEntryType.Pause }) 156if (_logEntries.Count == 0 || earliest >= _logEntries[_logEntries.Count - 1].Timestamp) 163if (existingEntry is not { Timestamp: not null, Type: not LogEntryType.Pause }) 178Debug.Assert(logLine.Timestamp == null || logLine.Timestamp.Value.Kind == DateTimeKind.Utc, "Timestamp should always be UTC."); 194if (index < 0 || index >= _logEntries.Count || _logEntries[index] is not { Timestamp: { } timestamp, Type: not LogEntryType.Pause }) 209if (_logEntries[i] is { Timestamp: { } value, Type: not LogEntryType.Pause }) 222if (logEntry.Timestamp == null) 235if (current.Timestamp == null) 246if (logEntry.Timestamp.Value >= current.Timestamp.Value) 322if (_earliestTimestampIndex == null && logEntry.Timestamp != null)
src\Shared\ConsoleLogs\LogEntry.cs (1)
125return new(logEntry.Timestamp, logEntry.Content, logEntry.RawContent, logEntry.Type);