2 instantiations of TrayViewState
aspire-tray (2)
src\Aspire.Tray\Common\TrayController.cs (2)
22private TrayViewState _state = new(DiscoveryState.Connecting, [], "Connecting to Aspire..."); 626Volatile.Write(ref _state, new(_snapshot.Discovery, rows.ToArray(), status)
21 references to TrayViewState
aspire-tray (21)
NativeSmokeHarness.cs (1)
138var state = _controller.State;
src\Aspire.Tray\Common\PanelSettings.cs (1)
7/// What the panel's Settings view shows besides the values in <see cref="TrayViewState"/>. Hosts
src\Aspire.Tray\Common\TrayController.cs (2)
22private TrayViewState _state = new(DiscoveryState.Connecting, [], "Connecting to Aspire..."); 76public TrayViewState State => Volatile.Read(ref _state);
src\Aspire.Tray\Common\TrayIconStatus.cs (2)
22public static TrayIconStatus Get(TrayViewState state) => state.Discovery switch 45private static bool NeedsAttention(TrayViewState state)
src\Aspire.Tray\Common\TrayPanel.cs (10)
9/// collapsed recent list, a row's open action list) and turns <see cref="TrayViewState"/> into a 71private TrayViewState _state; 72private TrayViewState? _pendingState; 95public TrayPanel(TrayViewState state, TrayPanelPalette palette) 101public TrayViewState State => _state; 269public bool Update(TrayViewState state) 745var state = _state; 1071private void AddHeader(List<PanelCommand> commands, TrayViewState state, TrayPanelPalette palette) 1133TrayViewState state, TrayPanelPalette palette) 1584internal static (string Text, PanelColor Dot) GetHeaderStatus(TrayViewState state, TrayPanelPalette palette)
TrayApplication.Actions.cs (1)
113var state = controller.State;
TrayApplication.cs (1)
207var state = controller.State;
TrayApplication.Icons.cs (1)
8private void UpdateTrayIcon(TrayViewState state)
TrayApplication.NativeSmoke.cs (1)
423var state = controller.State;
TrayApplication.Panel.cs (1)
297private void UpdatePanel(TrayViewState state)