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,
649
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)
50
|| (host.
IsRunning
&& host.Id.AppHostPid != 0 && host.Health is AppHostHealth.Warning or AppHostHealth.Unhealthy));
src\Aspire.Tray\Common\TrayPanel.cs (5)
1546
{
IsRunning
: false } => host.Error is null ? PanelStatusGlyph.Stopped : PanelStatusGlyph.Warning,
1570
{
IsRunning
: false } when host.Id.AppHostPid == 0 && host.Subtitle != "Stopped" => host.Subtitle,
1571
{
IsRunning
: false } => "Stopped",
1598
var running = state.AppHosts.Count(host => host.
IsRunning
&& host.Id.AppHostPid != 0);
1601
|| (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)
45
Assert.False(row.
IsRunning
);
87
Assert.True(row.
IsRunning
);
190
Assert.False(row.
IsRunning
);
221
Assert.True(live.
IsRunning
);
230
Assert.False(controller.State.AppHosts[0].
IsRunning
);
238
Assert.False(offline.
IsRunning
);
369
Assert.False(timedOut.
IsRunning
);
377
Assert.True(row.
IsRunning
);
406
Assert.False(row.
IsRunning
);
461
Assert.True(row.
IsRunning
);
TrayControllerTests.cs (2)
127
Assert.True(controller.State.AppHosts[1].
IsRunning
);
161
Assert.True(controller.State.AppHosts[0].
IsRunning
);