9 writes to Notice
Aspire.Tray.Tests (9)
Helpers\TrayPanelSamples.cs (2)
73Notice = "Unable to save AppHost history. The saved file was left unchanged." 80Notice = "Discovery is unavailable. Reconnecting…"
LinuxTrayTests.cs (1)
435Notice = "Unable to save AppHost history. The saved file was left unchanged."
src\Aspire.Tray\Common\TrayController.cs (1)
630Notice = notice,
TrayIconStatusTests.cs (2)
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." };
TrayPanelTests.cs (3)
952Notice = "Unable to save AppHost history.", 1158var without = new TrayPanel(TrayPanelSamples.Errors() with { Notice = null }, TrayPanelPalette.Light); 1174Notice = "A sufficiently long notice that normally wraps to multiple lines."
10 references to Notice
Aspire.Tray.Tests (10)
LinuxTrayTests.cs (1)
442Assert.Equal(state.Notice, menu[1].Label);
src\Aspire.Tray\Common\TrayIconStatus.cs (1)
60=> state.Notice is not null
src\Aspire.Tray\Common\TrayPanel.cs (2)
907var notice = string.IsNullOrWhiteSpace(state.Notice) ? null : state.Notice.Trim();
src\Aspire.Tray\Linux\LinuxTrayMenu.cs (1)
32var notice = state.Notice ?? (state.Discovery != DiscoveryState.Live || state.AppHosts.Any(host => host.Error is not null)
TrayControllerTests.cs (4)
19Assert.Null(controller.State.Notice); 25Assert.Null(controller.State.Notice); 29Assert.Equal("Discovery is unavailable. Reconnecting\u2026", controller.State.Notice); 45Assert.Equal(expected, controller.State.Notice);
TrayPanelTests.cs (1)
1186var noticeText = scene.Commands.OfType<TextCommand>().Single(text => text.Text == state.Notice);