2 instantiations of TrayViewState
aspire-tray (2)
src\Aspire.Tray\Common\TrayController.cs (2)
22private TrayViewState _state = new(DiscoveryState.Connecting, [], "Connecting to Aspire..."); 641Volatile.Write(ref _state, new(_snapshot.Discovery, rows.ToArray(), status)
12 references to TrayViewState
aspire-tray (12)
NativeSmokeHarness.cs (1)
165var state = _controller.State;
src\Aspire.Tray\Common\TrayController.cs (2)
22private TrayViewState _state = new(DiscoveryState.Connecting, [], "Connecting to Aspire..."); 76public TrayViewState State => Volatile.Read(ref _state);
TrayApplication.Actions.cs (1)
119var state = controller.State;
TrayApplication.cs (1)
39private TrayViewState? _displayedState;
TrayApplication.Icons.cs (2)
8private void UpdateTrayIcon(TrayViewState state) 38private static IconState GetIconState(TrayViewState state) => state.Discovery switch
TrayApplication.Menus.cs (3)
17var state = controller.State; 52private NativeMenu BuildMenu(TrayViewState state) 141private void UpdateRetainedMenu(NativeMenu menu, TrayViewState state)
TrayApplication.NativeSmoke.cs (2)
214var state = controller.State; 343var state = controller.State;