4 writes to IsPinned
Aspire.Dashboard (2)
ServiceClient\DashboardRunStore.cs (2)
282run.IsPinned = isPinned; 534IsPinned = metadata.IsPinned
Aspire.Dashboard.Components.Tests (1)
Shared\FluentUISetupHelpers.cs (1)
286_runs.Single(candidate => string.Equals(candidate.RunId, run.RunId, StringComparison.Ordinal)).IsPinned = isPinned;
Aspire.Dashboard.Tests (1)
Shared\TestDashboardDataSource.cs (1)
61_runs.Single(candidate => string.Equals(candidate.RunId, run.RunId, StringComparison.Ordinal)).IsPinned = isPinned;
20 references to IsPinned
Aspire.Dashboard (7)
Components\Controls\DashboardRunSelect.razor.cs (5)
55.ThenByDescending(run => run.IsPinned) 67SecondaryActionIcon = run.IsPinned ? s_pinnedIcon : s_pinIcon, 68SecondaryActionAriaLabel = Loc[run.IsPinned 71IsSecondaryActionSelected = run.IsPinned, 74SetRunPinned(run, !run.IsPinned);
ServiceClient\DashboardRunStore.cs (2)
374.ThenByDescending(run => run.IsPinned) 442foreach (var run in _runs.Value.Where(run => !run.IsPinned).Skip(MaxRuns))
Aspire.Dashboard.Components.Tests (5)
Layout\MainLayoutTests.cs (5)
492Assert.True(currentRun.IsPinned); 503Assert.True(historicalRun.IsPinned); 674Assert.False(historicalRun.IsPinned); 708.OrderByDescending(run => run.IsPinned) 735.OrderByDescending(run => run.IsPinned)
Aspire.Dashboard.Tests (8)
Model\DashboardDataSourceTests.cs (8)
145Assert.False(currentRun.IsPinned); 149Assert.True(currentRun.IsPinned); 158Assert.True(historicalRun.IsPinned); 706runs.OrderByDescending(run => run.IsCurrent).ThenByDescending(run => run.IsPinned).ThenByDescending(run => run.StartedAtUtc), 709Assert.Equal(3, runs.Count(run => !run.IsCurrent && run.IsPinned)); 710Assert.Equal(DashboardRunStore.MaxRuns - 1, runs.Count(run => !run.IsCurrent && !run.IsPinned)); 711Assert.All(pinnedRunIds, runId => Assert.True(finalRunStore.GetRuns().Single(run => string.Equals(run.RunId, runId, StringComparison.Ordinal)).IsPinned)); 865Assert.True(historicalRun.IsPinned);