13 references to State
aspire-tray (13)
NativeSmokeHarness.cs (5)
138var state = _controller.State; 177Require(_controller.State.AppHosts.Single(host => host.Id == _hosts[0].Id).IsPinned, "Pin from the action list did not persist."); 178_staleHost = _controller.State.AppHosts.Single(host => host.Id == _hosts[0].Id); 207Require(_controller.State.RecentAppHosts.Any(host => host.Id == missing.Id), "Cancel removed a missing recent path."); 210Require(_controller.State.RecentAppHosts.All(host => host.Id != missing.Id), "Missing recent path was not removed.");
src\Aspire.Tray\Common\TrayController.cs (1)
285if (!_shutdown.IsCancellationRequested && State.Discovery is not (DiscoveryState.Incompatible or DiscoveryState.LimitExceeded))
TrayApplication.Actions.cs (3)
113var state = controller.State; 129if (controller.State.AppHosts.Any(host => host.IsPinned && !host.IsRunning && TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, path))) 133else if (controller.State.RecentAppHosts.FirstOrDefault(host => TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, path)) is { } recent
TrayApplication.cs (1)
207var state = controller.State;
TrayApplication.NativeSmoke.cs (1)
423var state = controller.State;
TrayApplication.Panel.cs (2)
71_panel.Update(controller.State); 150_panel = new TrayPanel(controller.State, GetPanelPalette()) { FileManagerName = "File Explorer", QuitVerb = "Exit" };