4 writes to IsPinned
Aspire.Dashboard (2)
ServiceClient\DashboardRunStore.cs (2)
298run.IsPinned = isPinned; 557IsPinned = metadata.IsPinned
Aspire.Dashboard.Components.Tests (1)
Shared\FluentUISetupHelpers.cs (1)
295_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)
397.ThenByDescending(run => run.IsPinned) 465foreach (var run in _runs.Value.Where(run => !run.IsPinned).Skip(MaxRuns))
Aspire.Dashboard.Components.Tests (5)
Layout\MainLayoutTests.cs (5)
454Assert.True(currentRun.IsPinned); 465Assert.True(historicalRun.IsPinned); 636Assert.False(historicalRun.IsPinned); 670.OrderByDescending(run => run.IsPinned) 696.OrderByDescending(run => run.IsPinned)
Aspire.Dashboard.Tests (8)
Model\DashboardDataSourceTests.cs (8)
174Assert.False(currentRun.IsPinned); 178Assert.True(currentRun.IsPinned); 187Assert.True(historicalRun.IsPinned); 762runs.OrderByDescending(run => run.IsCurrent).ThenByDescending(run => run.IsPinned).ThenByDescending(run => run.StartedAtUtc), 765Assert.Equal(3, runs.Count(run => !run.IsCurrent && run.IsPinned)); 766Assert.Equal(DashboardRunStore.MaxRuns - 1, runs.Count(run => !run.IsCurrent && !run.IsPinned)); 767Assert.All(pinnedRunIds, runId => Assert.True(finalRunStore.GetRuns().Single(run => string.Equals(run.RunId, runId, StringComparison.Ordinal)).IsPinned)); 921Assert.True(historicalRun.IsPinned);