19 references to Comparer
Aspire.Tray.Tests (19)
Helpers\TestAppHostClient.cs (1)
18
private readonly ConcurrentDictionary<string, TaskCompletionSource<StartResult>> _starts = new(TrayAppHostPath.
Comparer
);
src\Aspire.Tray\Common\FileTraySavedStateStore.cs (1)
171
var paths = new HashSet<string>(TrayAppHostPath.
Comparer
);
src\Aspire.Tray\Common\IAppHostClient.cs (2)
18
=> TrayAppHostPath.
Comparer
.Equals(AppHostPath, other.AppHostPath)
25
hash.Add(AppHostPath, TrayAppHostPath.
Comparer
);
src\Aspire.Tray\Common\TrayController.cs (9)
18
private readonly Dictionary<string, StartOperation> _starts = new(TrayAppHostPath.
Comparer
);
262
if (_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)))
498
if (!_savedState.AppHosts.Any(host => TrayAppHostPath.
Comparer
.Equals(host.AppHostPath, path)))
509
var 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)
36
var existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.
Comparer
.Equals(host.AppHostPath, appHostPath));
40
.. AppHosts.Where(host => !TrayAppHostPath.
Comparer
.Equals(host.AppHostPath, appHostPath))]
46
var existing = AppHosts.SingleOrDefault(host => TrayAppHostPath.
Comparer
.Equals(host.AppHostPath, appHostPath));
64
AppHosts = AppHosts.Select(host => TrayAppHostPath.
Comparer
.Equals(host.AppHostPath, appHostPath)
TraySavedStateTests.cs (2)
98
state.RemoveMissingPins(new HashSet<string>([pinned], TrayAppHostPath.
Comparer
))
194
var missing = new HashSet<string>([pinned, recent], TrayAppHostPath.
Comparer
);