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