8 writes to Health
Aspire.Tray.Tests (8)
Helpers\TrayPanelSamples.cs (1)
17
Health
= health
LinuxTrayTests.cs (4)
453
Health
= AppHostHealth.Healthy
583
"Example", "PID 1", "Example", true, true, false, null) {
Health
= Enum.Parse<AppHostHealth>(health) };
594
"Example", "PID 1", "Example", true, true, false, null) {
Health
= AppHostHealth.NoResources };
639
Health
= AppHostHealth.Healthy, IsStarting = starting
src\Aspire.Tray\Common\TrayController.cs (2)
590
Health
= live && !stopped ? host.Health : AppHostHealth.Unknown
650
Health
= AppHostHealth.Unknown
TrayPanelTests.cs (1)
828
TrayPanel.GetRowDetail(host with {
Health
= AppHostHealth.NoResources }, live: true, showPid: false));
17 references to Health
Aspire.Tray.Tests (17)
src\Aspire.Tray\Common\TrayIconStatus.cs (1)
50
|| (host.IsRunning && host.Id.AppHostPid != 0 && host.
Health
is AppHostHealth.Warning or AppHostHealth.Unhealthy));
src\Aspire.Tray\Common\TrayPanel.cs (7)
1549
{
Health
: AppHostHealth.Healthy } => PanelStatusGlyph.Healthy,
1550
{
Health
: AppHostHealth.Warning } => PanelStatusGlyph.Warning,
1551
{
Health
: AppHostHealth.Unhealthy } => PanelStatusGlyph.Unhealthy,
1573
{
Health
: AppHostHealth.Warning } => "Needs attention",
1574
{
Health
: AppHostHealth.Unhealthy } => "Unhealthy",
1575
{
Health
: AppHostHealth.NoResources } => "No resources",
1601
|| (host.IsRunning && host.Id.AppHostPid != 0 && host.
Health
is AppHostHealth.Warning or AppHostHealth.Unhealthy));
src\Aspire.Tray\Linux\LinuxTrayMenu.cs (2)
108
_ => host.
Health
switch
122
: host.
Health
switch
TrayControllerPinPruningTests.cs (1)
94
Assert.Equal(AppHostHealth.Healthy, row.
Health
);
TrayControllerSavedStateTests.cs (6)
193
Assert.Equal(AppHostHealth.Unknown, row.
Health
);
223
Assert.Equal(AppHostHealth.Healthy, live.
Health
);
240
Assert.Equal(AppHostHealth.Unknown, offline.
Health
);
251
Assert.Equal(AppHostHealth.Warning, controller.State.AppHosts[0].
Health
);
379
Assert.Equal(AppHostHealth.Unhealthy, row.
Health
);
464
Assert.Equal(AppHostHealth.Unknown, row.
Health
);