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