46 references to TrayAppHostPath
aspire-tray (46)
FolderApplication.cs (1)
118
path =
TrayAppHostPath
.RequireExistingFile(path);
NativeSmokeHarness.cs (6)
203
var missing = state.RecentAppHosts.Single(host =>
TrayAppHostPath
.Comparer.Equals(host.Id.AppHostPath, _missing));
211
var pinned = state.AppHosts.Single(host =>
TrayAppHostPath
.Comparer.Equals(host.Id.AppHostPath, _pinned));
230
&& _store.Load().AppHosts.Any(host =>
TrayAppHostPath
.Comparer.Equals(host.AppHostPath, _pinned)), "Clear Recent did not preserve pins.");
236
if (state.AppHosts.Any(host =>
TrayAppHostPath
.Comparer.Equals(host.Id.AppHostPath, _missingPin)))
240
Require(_store.Load().AppHosts.All(host => !
TrayAppHostPath
.Comparer.Equals(host.AppHostPath, _missingPin)),
268
if (!state.AppHosts.Any(host => host.IsRunning &&
TrayAppHostPath
.Comparer.Equals(host.Id.AppHostPath, _pinned)))
src\Aspire.Tray\Common\CliAppHostCommands.cs (1)
39
var path =
TrayAppHostPath
.RequireExistingFile(appHostPath);
src\Aspire.Tray\Common\FileTraySavedStateStore.cs (4)
29
_path =
TrayAppHostPath
.Normalize(path);
37
Path.Combine(
TrayAppHostPath
.Normalize(legacyDirectory), "apphosts.json"));
172
var paths = new HashSet<string>(
TrayAppHostPath
.Comparer);
182
var normalized =
TrayAppHostPath
.Normalize(host.AppHostPath);
src\Aspire.Tray\Common\IAppHostClient.cs (2)
18
=>
TrayAppHostPath
.Comparer.Equals(AppHostPath, other.AppHostPath)
25
hash.Add(AppHostPath,
TrayAppHostPath
.Comparer);
src\Aspire.Tray\Common\TrayConfiguration.cs (2)
38
return
TrayAppHostPath
.Normalize(home);
46
settingsPath =
TrayAppHostPath
.Normalize(settingsPath);
src\Aspire.Tray\Common\TrayController.cs (22)
18
private readonly Dictionary<string, StartOperation> _starts = new(
TrayAppHostPath
.Comparer);
140
var path =
TrayAppHostPath
.Normalize(appHostPath);
148
var path =
TrayAppHostPath
.Normalize(appHostPath);
198
var path =
TrayAppHostPath
.Normalize(appHostPath);
214
TrayAppHostPath
.RequireExistingFile(path);
242
if (_snapshot.AppHosts.Any(host =>
TrayAppHostPath
.Comparer.Equals(
TrayAppHostPath
.Normalize(host.AppHostPath), path)))
324
.Select(host =>
TrayAppHostPath
.Normalize(host.AppHostPath))
325
.Distinct(
TrayAppHostPath
.Comparer).ToArray();
333
var path =
TrayAppHostPath
.Normalize(host.AppHostPath);
411
TrayAppHostPath
.RequireExistingFile(path);
451
&& !_savedState.AppHosts.Any(host =>
TrayAppHostPath
.Comparer.Equals(host.AppHostPath, path)))
478
if (!_savedState.AppHosts.Any(host =>
TrayAppHostPath
.Comparer.Equals(host.AppHostPath, path)))
489
var missing = new HashSet<string>(
TrayAppHostPath
.Comparer);
496
var protectedPaths = _snapshot.AppHosts.Select(host =>
TrayAppHostPath
.Normalize(host.AppHostPath))
497
.ToHashSet(
TrayAppHostPath
.Comparer);
504
if (
TrayAppHostPath
.IsMissing(host.AppHostPath))
571
.Select(host => host.AppHostPath).ToHashSet(
TrayAppHostPath
.Comparer);
588
IsPinned = pins.Contains(
TrayAppHostPath
.Normalize(host.AppHostPath)),
593
var listedPaths = _snapshot.AppHosts.Select(host =>
TrayAppHostPath
.Normalize(host.AppHostPath))
594
.ToHashSet(
TrayAppHostPath
.Comparer);
660
return
TrayAppHostPath
.IsMissing(path) ? "AppHost source file not found" : "Stopped";
src\Aspire.Tray\Common\TraySavedState.cs (4)
31
var existing = AppHosts.SingleOrDefault(host =>
TrayAppHostPath
.Comparer.Equals(host.AppHostPath, appHostPath));
35
.. AppHosts.Where(host => !
TrayAppHostPath
.Comparer.Equals(host.AppHostPath, appHostPath))]
41
var existing = AppHosts.SingleOrDefault(host =>
TrayAppHostPath
.Comparer.Equals(host.AppHostPath, appHostPath));
59
AppHosts = AppHosts.Select(host =>
TrayAppHostPath
.Comparer.Equals(host.AppHostPath, appHostPath)
TrayApplication.Actions.cs (4)
124
if (!
TrayAppHostPath
.IsMissing(path))
126
TrayAppHostPath
.RequireExistingFile(path);
129
if (controller.State.AppHosts.Any(host => host.IsPinned && !host.IsRunning &&
TrayAppHostPath
.Comparer.Equals(host.Id.AppHostPath, path)))
133
else if (controller.State.RecentAppHosts.FirstOrDefault(host =>
TrayAppHostPath
.Comparer.Equals(host.Id.AppHostPath, path)) is { } recent