5 writes to _state
Aspire.Tray.Tests (5)
src\Aspire.Tray\Common\TrayPanel.cs (5)
75
_state
= state;
254
_state
= state;
264
_state
= _pendingState;
296
_state
= _pendingState;
359
_state
= _pendingState;
8 references to _state
Aspire.Tray.Tests (8)
src\Aspire.Tray\Common\TrayPanel.cs (8)
79
public TrayViewState State =>
_state
;
132
public bool IsRecentExpanded => _recentExpanded ??
_state
.AppHosts.Count == 0;
723
var state =
_state
;
1095
PanelSection.Running =>
_state
.AppHosts.Where(host => host.Id.AppHostPid != 0),
1096
PanelSection.Pinned =>
_state
.AppHosts.Where(host => host.Id.AppHostPid == 0),
1097
_ => IsRecentExpanded ?
_state
.RecentAppHosts : []
1194
PanelConfirmKind.RemoveMissing =>
_state
.RecentAppHosts.FirstOrDefault(host => host.Id == confirm.Host!.Id),
1197
var valid = confirm.Kind == PanelConfirmKind.ClearRecent ?
_state
.CanClearRecent : current is not null;