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