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)
79public TrayViewState State => _state; 132public bool IsRecentExpanded => _recentExpanded ?? _state.AppHosts.Count == 0; 723var state = _state; 1095PanelSection.Running => _state.AppHosts.Where(host => host.Id.AppHostPid != 0), 1096PanelSection.Pinned => _state.AppHosts.Where(host => host.Id.AppHostPid == 0), 1097_ => IsRecentExpanded ? _state.RecentAppHosts : [] 1194PanelConfirmKind.RemoveMissing => _state.RecentAppHosts.FirstOrDefault(host => host.Id == confirm.Host!.Id), 1197var valid = confirm.Kind == PanelConfirmKind.ClearRecent ? _state.CanClearRecent : current is not null;