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)
139var 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)
23public static TrayIconStatus Get(TrayViewState state) => state.Discovery switch 57private 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 76private TrayViewState _state; 77private TrayViewState? _pendingState; 101public TrayPanel(TrayViewState state, TrayPanelPalette palette) 107public TrayViewState State => _state; 274public bool Update(TrayViewState state) 828var state = _state; 1174private void AddHeader(List<PanelCommand> commands, TrayViewState state, TrayPanelPalette palette) 1245TrayViewState state, TrayPanelPalette palette) 1695internal 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)
313private void UpdatePanel(TrayViewState state)