6 writes to IsRunning
Aspire.Tray.Tests (6)
Helpers\TrayPanelSamples.cs (1)
30
IsRunning
= false
LinuxTrayTests.cs (3)
482
var recent = host with { Id = new(path, 0, null),
IsRunning
= false, CanStart = true };
601
Assert.Single(LinuxTrayMenu.Build(new(DiscoveryState.Live, [host with {
IsRunning
= false }], ""), []),
614
IsRunning
= false, IsPinned = true, CanStart = true
src\Aspire.Tray\Common\TrayController.cs (2)
589
IsRunning
= !stopped,
650
IsRunning
= false,
26 references to IsRunning
Aspire.Tray.Tests (26)
src\Aspire.Tray\Common\IAppHostClient.cs (1)
97
public bool HasActiveAppHosts { get; init; } = AppHosts.Any(host => host.
IsRunning
|| host.IsStarting);
src\Aspire.Tray\Common\TrayController.cs (1)
607
var running = rows.Count(row => row.
IsRunning
);
src\Aspire.Tray\Common\TrayIconStatus.cs (1)
62
|| (host.
IsRunning
&& host.Id.AppHostPid != 0 && host.Health is AppHostHealth.Warning or AppHostHealth.Unhealthy));
src\Aspire.Tray\Common\TrayPanel.cs (5)
1656
{
IsRunning
: false } => host.Error is null ? PanelStatusGlyph.Stopped : PanelStatusGlyph.Warning,
1680
{
IsRunning
: false } when host.Id.AppHostPid == 0 && host.Subtitle != "Stopped" => host.Subtitle,
1681
{
IsRunning
: false } => "Stopped",
1708
var running = state.AppHosts.Count(host => host.
IsRunning
&& host.Id.AppHostPid != 0);
1713
|| (host.
IsRunning
&& host.Id.AppHostPid != 0 && host.Health is AppHostHealth.Warning or AppHostHealth.Unhealthy));
src\Aspire.Tray\Linux\LinuxTrayApplication.cs (1)
492
if (!host.
IsRunning
&& !host.IsPinned)
src\Aspire.Tray\Linux\LinuxTrayMenu.cs (4)
69
if (host.
IsRunning
)
95
actions.Add(new(host.
IsRunning
? $"{location} \u00b7 PID {host.Id.AppHostPid}" : location, Enabled: false));
107
{
IsRunning
: false } => LinuxTrayIcon.Stopped,
121
=> host.IsStopping ? "Stopping" : host.IsStarting ? "Starting" : !host.
IsRunning
? "Stopped"
TrayControllerPinPruningTests.cs (1)
93
Assert.True(row.
IsRunning
);
TrayControllerSavedStateTests.cs (10)
46
Assert.False(row.
IsRunning
);
88
Assert.True(row.
IsRunning
);
231
Assert.False(row.
IsRunning
);
262
Assert.True(live.
IsRunning
);
271
Assert.False(controller.State.AppHosts[0].
IsRunning
);
279
Assert.False(offline.
IsRunning
);
410
Assert.False(timedOut.
IsRunning
);
418
Assert.True(row.
IsRunning
);
447
Assert.False(row.
IsRunning
);
508
Assert.True(row.
IsRunning
);
TrayControllerTests.cs (2)
127
Assert.True(controller.State.AppHosts[1].
IsRunning
);
161
Assert.True(controller.State.AppHosts[0].
IsRunning
);