18 references to Comparer
Aspire.Tray.Tests (18)
Helpers\TestAppHostClient.cs (1)
18private readonly ConcurrentDictionary<string, TaskCompletionSource<StartResult>> _starts = new(TrayAppHostPath.Comparer);
src\Aspire.Tray\Common\FileTraySavedStateStore.cs (1)
172var 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); 242if (_snapshot.AppHosts.Any(host => TrayAppHostPath.Comparer.Equals(TrayAppHostPath.Normalize(host.AppHostPath), path))) 325.Distinct(TrayAppHostPath.Comparer).ToArray(); 451&& !_savedState.AppHosts.Any(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, path))) 478if (!_savedState.AppHosts.Any(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, path))) 489var missing = new HashSet<string>(TrayAppHostPath.Comparer); 497.ToHashSet(TrayAppHostPath.Comparer); 571.Select(host => host.AppHostPath).ToHashSet(TrayAppHostPath.Comparer); 594.ToHashSet(TrayAppHostPath.Comparer);
src\Aspire.Tray\Common\TraySavedState.cs (4)
31var existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath)); 35.. AppHosts.Where(host => !TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath))] 41var existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath)); 59AppHosts = AppHosts.Select(host => TrayAppHostPath.Comparer.Equals(host.AppHostPath, appHostPath)
TraySavedStateTests.cs (1)
167var missing = new HashSet<string>([pinned, recent], TrayAppHostPath.Comparer);