6 instantiations of new
aspire-tray (6)
NativeSmokeHarness.cs (4)
63
new
(_pinned, true, true),
new
(_recent, false, true),
new
(_missing, false, true),
new
(_missingPin, true, false)
src\Aspire.Tray\Common\TraySavedState.cs (2)
39
AppHosts = [
new
(appHostPath, existing?.IsPinned ?? false, true),
49
return pinned ? this with { AppHosts = [.. AppHosts,
new
(appHostPath, true, false)] } : this;
8 references to new
aspire-tray (8)
src\Aspire.Tray\Common\FileTraySavedStateStore.cs (1)
173
foreach (
var
host in state.AppHosts)
src\Aspire.Tray\Common\TrayController.cs (3)
520
foreach (
var
host in _savedState.AppHosts.Where(host => host.IsPinned && !protectedPaths.Contains(host.AppHostPath)))
614
foreach (
var
saved in _savedState.AppHosts.Where(host => host.IsPinned && !listedPaths.Contains(host.AppHostPath)))
651
private AppHostMenuItem CreateSavedMenuItem(
SavedAppHost
saved, bool live)
src\Aspire.Tray\Common\TraySavedState.cs (4)
11
internal sealed record TraySavedState(IReadOnlyList<
SavedAppHost
> AppHosts)
22
public TraySavedState(IReadOnlyList<
SavedAppHost
> appHosts, bool confirmStop = true) : this(appHosts)
36
var
existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath));
46
var
existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath));