2 instantiations of TrayViewState
aspire-tray (2)
src\Aspire.Tray\Common\TrayController.cs (2)
22
private TrayViewState _state =
new
(DiscoveryState.Connecting, [], "Connecting to Aspire...");
626
Volatile.Write(ref _state,
new
(_snapshot.Discovery, rows.ToArray(), status)
21 references to TrayViewState
aspire-tray (21)
NativeSmokeHarness.cs (1)
138
var
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)
22
private
TrayViewState
_state = new(DiscoveryState.Connecting, [], "Connecting to Aspire...");
76
public
TrayViewState
State => Volatile.Read(ref _state);
src\Aspire.Tray\Common\TrayIconStatus.cs (2)
22
public static TrayIconStatus Get(
TrayViewState
state) => state.Discovery switch
45
private 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
71
private
TrayViewState
_state;
72
private
TrayViewState
? _pendingState;
95
public TrayPanel(
TrayViewState
state, TrayPanelPalette palette)
101
public
TrayViewState
State => _state;
269
public bool Update(
TrayViewState
state)
745
var
state = _state;
1071
private void AddHeader(List<PanelCommand> commands,
TrayViewState
state, TrayPanelPalette palette)
1133
TrayViewState
state, TrayPanelPalette palette)
1584
internal static (string Text, PanelColor Dot) GetHeaderStatus(
TrayViewState
state, TrayPanelPalette palette)
TrayApplication.Actions.cs (1)
113
var
state = controller.State;
TrayApplication.cs (1)
207
var
state = controller.State;
TrayApplication.Icons.cs (1)
8
private void UpdateTrayIcon(
TrayViewState
state)
TrayApplication.NativeSmoke.cs (1)
423
var
state = controller.State;
TrayApplication.Panel.cs (1)
297
private void UpdatePanel(
TrayViewState
state)