5 writes to _state
Aspire.Tray.Tests (5)
src\Aspire.Tray\Common\TrayPanel.cs (5)
103_state = state; 281_state = state; 291_state = _pendingState; 324_state = _pendingState; 423_state = _pendingState;
8 references to _state
Aspire.Tray.Tests (8)
src\Aspire.Tray\Common\TrayPanel.cs (8)
107public TrayViewState State => _state; 160public bool IsRecentExpanded => _recentExpanded ?? _state.AppHosts.Count == 0; 828var state = _state; 1356PanelSection.Running => _state.AppHosts.Where(host => host.Id.AppHostPid != 0), 1357PanelSection.Pinned => _state.AppHosts.Where(host => host.Id.AppHostPid == 0), 1358_ => IsRecentExpanded ? _state.RecentAppHosts : [] 1455PanelConfirmKind.RemoveMissing => _state.RecentAppHosts.FirstOrDefault(host => host.Id == confirm.Host!.Id), 1458var valid = confirm.Kind == PanelConfirmKind.ClearRecent ? _state.CanClearRecent : current is not null;