24 references to Comparer
aspire-tray (24)
NativeSmokeHarness.cs (6)
281var missing = state.RecentAppHosts.Single(host => TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, _missing)); 288var pinned = state.AppHosts.Single(host => TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, _pinned)); 306&& _store.Load().AppHosts.Any(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, _pinned)), "Clear Recent did not preserve pins."); 311if (state.AppHosts.Any(host => TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, _missingPin))) 315Require(_store.Load().AppHosts.All(host => !TrayAppHostPath.Comparer.Equals(host.AppHostPath, _missingPin)), 346if (!state.AppHosts.Any(host => host.IsRunning && TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, _pinned)))
src\Aspire.Tray\Common\FileTraySavedStateStore.cs (1)
171var paths = new HashSet<string>(TrayAppHostPath.Comparer);
src\Aspire.Tray\Common\IAppHostClient.cs (2)
18=> TrayAppHostPath.Comparer.Equals(AppHostPath, other.AppHostPath) 25hash.Add(AppHostPath, TrayAppHostPath.Comparer);
src\Aspire.Tray\Common\TrayController.cs (9)
18private readonly Dictionary<string, StartOperation> _starts = new(TrayAppHostPath.Comparer); 262if (_snapshot.AppHosts.Any(host => TrayAppHostPath.Comparer.Equals(TrayAppHostPath.Normalize(host.AppHostPath), path))) 345.Distinct(TrayAppHostPath.Comparer).ToArray(); 471&& !_savedState.AppHosts.Any(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, path))) 498if (!_savedState.AppHosts.Any(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, path))) 509var missing = new HashSet<string>(TrayAppHostPath.Comparer); 517.ToHashSet(TrayAppHostPath.Comparer); 591.Select(host => host.AppHostPath).ToHashSet(TrayAppHostPath.Comparer); 613.ToHashSet(TrayAppHostPath.Comparer);
src\Aspire.Tray\Common\TraySavedState.cs (4)
36var existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath)); 40.. AppHosts.Where(host => !TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath))] 46var existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath)); 64AppHosts = AppHosts.Select(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath)
TrayApplication.Actions.cs (2)
131if (controller.State.AppHosts.Any(host => host.IsPinned && !host.IsRunning && TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, path))) 135else if (controller.State.RecentAppHosts.Any(host => TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, path)))