1 write to RecentAppHosts
aspire-tray (1)
src\Aspire.Tray\Common\TrayController.cs (1)
628
RecentAppHosts
= recent,
15 references to RecentAppHosts
aspire-tray (15)
NativeSmokeHarness.cs (4)
163
foreach (var id in state.AppHosts.Concat(state.
RecentAppHosts
).Select(host => host.Id))
203
var missing = state.
RecentAppHosts
.Single(host => TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, _missing));
207
Require(_controller.State.
RecentAppHosts
.Any(host => host.Id == missing.Id), "Cancel removed a missing recent path.");
210
Require(_controller.State.
RecentAppHosts
.All(host => host.Id != missing.Id), "Missing recent path was not removed.");
src\Aspire.Tray\Common\TrayIconStatus.cs (1)
49
|| state.AppHosts.Concat(state.
RecentAppHosts
).Any(host => host.Error is not null
src\Aspire.Tray\Common\TrayPanel.cs (7)
773
AddSection(PanelSection.Recent, state.
RecentAppHosts
, IsRecentExpanded);
1139
_ => $"RECENT · {state.
RecentAppHosts
.Count}"
1157
var count = state.
RecentAppHosts
.Count;
1245
_ => IsRecentExpanded ? _state.
RecentAppHosts
: []
1342
PanelConfirmKind.RemoveMissing => _state.
RecentAppHosts
.FirstOrDefault(host => host.Id == confirm.Host!.Id),
1598
var starting = state.AppHosts.Concat(state.
RecentAppHosts
).Count(host => host.IsStarting);
1599
var attention = state.AppHosts.Concat(state.
RecentAppHosts
).Count(host => host.Error is not null
TrayApplication.Actions.cs (2)
114
return state.AppHosts.Concat(state.
RecentAppHosts
).SingleOrDefault(host => host.Id == id)
133
else if (controller.State.
RecentAppHosts
.FirstOrDefault(host => TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, path)) is { } recent
TrayApplication.NativeSmoke.cs (1)
207
if (host is { } id && !panel.IsRecentExpanded && panel.State.
RecentAppHosts
.Any(recent => recent.Id == id)