2 writes to Timestamp
Aspire.Dashboard (2)
src\Shared\ConsoleLogs\LogEntry.cs (2)
79
Timestamp
= startTimestamp,
101
Timestamp
= timestamp,
30 references to Timestamp
Aspire.Dashboard (25)
Components\Controls\LogViewer.razor.cs (1)
182
if (ShowTimestamp && entry.
Timestamp
is { } timestamp)
Components\Legacy\Pages\ConsoleLogs.razor.cs (2)
359
if (logEntry.
Timestamp
is not null && timestampFilterDate is not null && !(logEntry.
Timestamp
> timestampFilterDate))
Components\Pages\ConsoleLogs.razor.cs (2)
391
if (logEntry.
Timestamp
is not null && timestampFilterDate is not null && !(logEntry.
Timestamp
> timestampFilterDate))
Model\ConsoleLogsFetcher.cs (2)
47
if (filterDate is not null && logEntry.
Timestamp
is not null && logEntry.
Timestamp
<= filterDate)
src\Shared\ConsoleLogs\LogEntries.cs (17)
62
if (logEntry.
Timestamp
is null)
69
if (pauseVM.ResourcePrefix == logEntry.ResourcePrefix && pauseVM.Contains(logEntry.
Timestamp
.Value))
103
var batch = logEntries.OrderBy(e => e.
Timestamp
!.Value).ToList();
113
(existingIndex < existing.Count && existing[existingIndex].
Timestamp
!.Value <= batch[batchIndex].
Timestamp
!.Value)
148
if (logEntry is not {
Timestamp
: { } timestamp, Type: not LogEntryType.Pause })
156
if (_logEntries.Count == 0 || earliest >= _logEntries[_logEntries.Count - 1].
Timestamp
)
163
if (existingEntry is not {
Timestamp
: not null, Type: not LogEntryType.Pause })
178
Debug.Assert(logLine.
Timestamp
== null || logLine.
Timestamp
.Value.Kind == DateTimeKind.Utc, "Timestamp should always be UTC.");
194
if (index < 0 || index >= _logEntries.Count || _logEntries[index] is not {
Timestamp
: { } timestamp, Type: not LogEntryType.Pause })
209
if (_logEntries[i] is {
Timestamp
: { } value, Type: not LogEntryType.Pause })
222
if (logEntry.
Timestamp
== null)
235
if (current.
Timestamp
== null)
246
if (logEntry.
Timestamp
.Value >= current.
Timestamp
.Value)
322
if (_earliestTimestampIndex == null && logEntry.
Timestamp
!= null)
src\Shared\ConsoleLogs\LogEntry.cs (1)
125
return new(logEntry.
Timestamp
, logEntry.Content, logEntry.RawContent, logEntry.Type);
Aspire.Dashboard.Components.Tests (3)
Pages\ConsoleLogsTests.cs (3)
680
timeProvider.UtcNow = earliestEntry.
Timestamp
!.Value;
786
timeProvider.UtcNow = earliestEntry.
Timestamp
!.Value;
788
await consoleLogsManager.UpdateFiltersAsync(new ConsoleLogsFilters { FilterAllLogsDate = earliestEntry.
Timestamp
!.Value, FilterResourceLogsDates = new Dictionary<string, DateTime>() });
Aspire.Dashboard.Tests (2)
ConsoleLogsTests\LogEntriesTests.cs (2)
61
foreach (var (entry, _) in batch.OrderBy(pair => pair.OneByOne.
Timestamp
))
171
Assert.Null(entry.
Timestamp
);