6 instantiations of new
aspire-tray (6)
NativeSmokeHarness.cs (4)
56
new
(_pinned, true, true),
new
(_recent, false, true),
new
(_missing, false, true),
new
(_missingPin, true, false)
src\Aspire.Tray\Common\TraySavedState.cs (2)
34
AppHosts = [
new
(appHostPath, existing?.IsPinned ?? false, true),
44
return pinned ? this with { AppHosts = [.. AppHosts,
new
(appHostPath, true, false)] } : this;
7 references to new
aspire-tray (7)
src\Aspire.Tray\Common\FileTraySavedStateStore.cs (1)
174
foreach (
var
host in state.AppHosts)
src\Aspire.Tray\Common\TrayController.cs (3)
500
foreach (
var
host in _savedState.AppHosts.Where(host => host.IsPinned && !protectedPaths.Contains(host.AppHostPath)))
595
foreach (
var
saved in _savedState.AppHosts.Where(host => host.IsPinned && !listedPaths.Contains(host.AppHostPath)))
635
private AppHostMenuItem CreateSavedMenuItem(
SavedAppHost
saved, bool live)
src\Aspire.Tray\Common\TraySavedState.cs (3)
11
internal sealed record TraySavedState(IReadOnlyList<
SavedAppHost
> AppHosts)
31
var
existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath));
41
var
existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath));