2 writes to Timestamp
Aspire.Dashboard (2)
src\Shared\ConsoleLogs\LogEntry.cs (2)
79Timestamp = startTimestamp, 101Timestamp = timestamp,
20 references to Timestamp
Aspire.Dashboard (16)
Components\Controls\LogViewer.razor.cs (1)
188if (ShowTimestamp && entry.Timestamp is { } timestamp)
Components\Pages\ConsoleLogs.razor.cs (2)
385if (logEntry.Timestamp is not null && timestampFilterDate is not null && !(logEntry.Timestamp > timestampFilterDate))
Model\ConsoleLogsFetcher.cs (2)
47if (filterDate is not null && logEntry.Timestamp is not null && logEntry.Timestamp <= filterDate)
src\Shared\ConsoleLogs\LogEntries.cs (10)
62if (logEntry.Timestamp is null) 69if (pauseVM.ResourcePrefix == logEntry.ResourcePrefix && pauseVM.Contains(logEntry.Timestamp.Value)) 85Debug.Assert(logLine.Timestamp == null || logLine.Timestamp.Value.Kind == DateTimeKind.Utc, "Timestamp should always be UTC."); 100if (entry.Timestamp is { } timestamp && entry.Type is not LogEntryType.Pause) 117if (logEntry.Timestamp == null) 131if (current.Timestamp == null) 142if (logEntry.Timestamp.Value >= current.Timestamp.Value) 220if (_earliestTimestampIndex == null && logEntry.Timestamp != null)
src\Shared\ConsoleLogs\LogEntry.cs (1)
125return new(logEntry.Timestamp, logEntry.Content, logEntry.RawContent, logEntry.Type);
Aspire.Dashboard.Components.Tests (3)
Pages\ConsoleLogsTests.cs (3)
648timeProvider.UtcNow = earliestEntry.Timestamp!.Value; 754timeProvider.UtcNow = earliestEntry.Timestamp!.Value; 756await consoleLogsManager.UpdateFiltersAsync(new ConsoleLogsFilters { FilterAllLogsDate = earliestEntry.Timestamp!.Value, FilterResourceLogsDates = new Dictionary<string, DateTime>() });
Aspire.Dashboard.Tests (1)
ConsoleLogsTests\LogEntriesTests.cs (1)
96Assert.Null(entry.Timestamp);