114 references to Live
Aspire.Tray.Tests (114)
CliAppHostClientTests.cs (7)
53Assert.Equal(DiscoveryState.Live, stream.Current.Discovery); 69Assert.Equal(DiscoveryState.Live, stream.Current.Discovery); 110Assert.Equal(DiscoveryState.Live, stream.Current.Discovery); 168Assert.Equal(DiscoveryState.Live, stream.Current.Discovery); 225Assert.Equal(DiscoveryState.Live, stream.Current.Discovery); 260Assert.Equal(DiscoveryState.Live, stream.Current.Discovery); 265Assert.Equal(DiscoveryState.Live, stream.Current.Discovery);
CliProtocolTests.cs (2)
15Assert.Equal(DiscoveryState.Live, snapshot.Discovery); 104Assert.Equal(DiscoveryState.Live, snapshot.Discovery);
Helpers\TrayPanelSamples.cs (4)
34public static TrayViewState Typical() => new(DiscoveryState.Live, 51public static TrayViewState Empty() => new(DiscoveryState.Live, [], "No AppHosts running") 63public static TrayViewState Errors() => new(DiscoveryState.Live, 83public static TrayViewState Many(int count = 14) => new(DiscoveryState.Live,
LinuxTrayTests.cs (12)
77var state = new TrayViewState(DiscoveryState.Live, [offline, running], "One AppHost"); 361await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 433var state = new TrayViewState(DiscoveryState.Live, [host], "One AppHost") 455var state = new TrayViewState(DiscoveryState.Live, [host], "One AppHost"); 483var state = new TrayViewState(DiscoveryState.Live, [host], "One AppHost") { RecentAppHosts = [recent] }; 506var menu = LinuxTrayMenu.Build(new(DiscoveryState.Live, [host], "One AppHost"), []); 526await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 584var menu = LinuxTrayMenu.Build(new(DiscoveryState.Live, [host], ""), []); 595var row = Assert.Single(LinuxTrayMenu.Build(new(DiscoveryState.Live, [host], ""), []), item => item.Host is not null); 601Assert.Single(LinuxTrayMenu.Build(new(DiscoveryState.Live, [host with { IsRunning = false }], ""), []), 616var state = new TrayViewState(DiscoveryState.Live, [host], ""); 641var row = LinuxTrayMenu.Build(new(DiscoveryState.Live, [host], ""), [])
src\Aspire.Tray\Common\CliProtocol.cs (1)
65.ThenBy(host => host.AppHostPid).ToArray(), DiscoveryState.Live);
src\Aspire.Tray\Common\TrayController.cs (5)
236if (_snapshot.Discovery != DiscoveryState.Live) 265if (_snapshot.Discovery != DiscoveryState.Live) 321if (snapshot.Discovery == DiscoveryState.Live) 492if (_snapshot.Discovery != DiscoveryState.Live) 569var live = _snapshot.Discovery == DiscoveryState.Live;
src\Aspire.Tray\Common\TrayIconStatus.cs (2)
26DiscoveryState.Live when !state.HasActiveAppHosts => TrayIconStatus.Idle, 27DiscoveryState.Live => NeedsAttention(state) ? TrayIconStatus.Attention
src\Aspire.Tray\Common\TrayPanel.cs (2)
829var live = state.Discovery == DiscoveryState.Live; 1222DiscoveryState.Live => ("No AppHosts running", "Run “aspire run” in a project, or pin one to keep it here."),
src\Aspire.Tray\Linux\LinuxTrayMenu.cs (3)
32var notice = state.Notice ?? (state.Discovery != DiscoveryState.Live || state.AppHosts.Any(host => host.Error is not null) 98var status = state.Discovery != DiscoveryState.Live ? "Discovery unavailable" 105_ when state.Discovery != DiscoveryState.Live => LinuxTrayIcon.Warning,
TrayControllerPinPruningTests.cs (13)
36await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 58await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 65await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 87await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 98await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 116await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 143await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 166await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 176await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 179await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 181await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 205await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 270await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live));
TrayControllerPreferencesTests.cs (5)
100await client.PublishAndWaitAsync(controller, new(hosts, DiscoveryState.Live)); 101await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 126await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 143await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 146await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live));
TrayControllerSavedStateTests.cs (40)
27await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 71await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 85await client.PublishAndWaitAsync(controller, new([running], DiscoveryState.Live)); 106await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 118await client.PublishAndWaitAsync(controller, new([Host(42) with { AppHostPath = path }], DiscoveryState.Live)); 133await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 147await client.PublishAndWaitAsync(controller, new([existing], DiscoveryState.Live)); 155await client.PublishAndWaitAsync(controller, new([existing, Host(42) with { AppHostPath = path }], DiscoveryState.Live)); 173await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 178await client.PublishAndWaitAsync(controller, new([Host(42) with { AppHostPath = path }], DiscoveryState.Live)); 179await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 202await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 240await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 256await client.PublishAndWaitAsync(controller, new([first], DiscoveryState.Live)); 273await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 289await client.PublishAndWaitAsync(controller, new([replacement], DiscoveryState.Live)); 297await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 313await client.PublishAndWaitAsync(controller, new([first, second], DiscoveryState.Live)); 319await client.PublishAndWaitAsync(controller, new([second], DiscoveryState.Live)); 321await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 338await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 345await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 347await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 350await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 357await client.PublishAndWaitAsync(controller, new([replacement], DiscoveryState.Live)); 359await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 377await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 388await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 403await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 415await client.PublishAndWaitAsync(controller, new([running], DiscoveryState.Live)); 435await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 462await client.PublishAndWaitAsync(controller, new([running], DiscoveryState.Live)); 480await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 502await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 525await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 555await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 572await client.PublishAndWaitAsync(controller, new([host], DiscoveryState.Live)); 588await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live)); 591await client.PublishAndWaitAsync(controller, new([replacement], DiscoveryState.Live)); 607await client.PublishAndWaitAsync(controller, new([], DiscoveryState.Live));
TrayControllerTests.cs (10)
22client.Publish(new([], DiscoveryState.Live)); 23await WaitForStateAsync(controller, state => state.Discovery == DiscoveryState.Live); 56client.Publish(new([first, second], DiscoveryState.Live)); 81client.Publish(new([], DiscoveryState.Live)); 94client.Publish(new([first, second], DiscoveryState.Live)); 99client.Publish(new([second, updated], DiscoveryState.Live)); 105client.Publish(new([replacement, second], DiscoveryState.Live)); 123client.Publish(new([known, unknown], DiscoveryState.Live)); 153client.Publish(new([first, second], DiscoveryState.Live)); 182client.Publish(new([first, second], DiscoveryState.Live));
TrayIconStatusTests.cs (7)
21var state = new TrayViewState(DiscoveryState.Live, 33var state = new TrayViewState(DiscoveryState.Live, [TrayPanelSamples.Running("/src/A/A.AppHost.csproj", 1, (AppHostHealth)health)], ""); 42var failedStop = new TrayViewState(DiscoveryState.Live, [running with { Error = "Stop timed out." }], ""); 43var notice = new TrayViewState(DiscoveryState.Live, [running], "") { Notice = "Unable to save AppHost history." }; 44var noticeWhileIdle = new TrayViewState(DiscoveryState.Live, [], "") { Notice = "Unable to save AppHost history." }; 54var state = new TrayViewState(DiscoveryState.Live, [TrayPanelSamples.Offline("/src/A/A.cs", starting: true)], ""); 64var state = new TrayViewState(DiscoveryState.Live,
TrayPanelTests.cs (1)
932var state = new TrayViewState(DiscoveryState.Live,