2 instantiations of AppHostMenuItem
aspire-tray (2)
src\Aspire.Tray\Common\TrayController.cs (2)
581
return new
AppHostMenuItem
(host.Id, AppHostPresentation.GetTitle(host), subtitle,
643
return
new
(host.Id, AppHostPresentation.GetTitle(host), subtitle, AppHostPresentation.GetDisplayName(host),
27 references to AppHostMenuItem
aspire-tray (27)
NativeSmokeHarness.cs (3)
37
private
AppHostMenuItem
? _staleHost;
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));
src\Aspire.Tray\Common\IAppHostClient.cs (2)
86
IReadOnlyList<
AppHostMenuItem
> AppHosts,
89
public IReadOnlyList<
AppHostMenuItem
> RecentAppHosts { get; init; } = [];
src\Aspire.Tray\Common\TrayController.cs (1)
635
private
AppHostMenuItem
CreateSavedMenuItem(SavedAppHost saved, bool live)
src\Aspire.Tray\Common\TrayPanel.cs (16)
255
public PanelResponse ConfirmRemoveMissing(
AppHostMenuItem
host)
653
var
host = target.Host;
777
void Add(ListItemKind kind, double height, PanelSection section,
AppHostMenuItem
? host, PanelTargetKind target = default)
783
void AddSection(PanelSection section, IReadOnlyList<
AppHostMenuItem
> hosts, bool expanded)
803
foreach (
var
host in hosts)
1170
private void AddRow(List<PanelCommand> commands, List<PanelHitTarget> targets,
AppHostMenuItem
host, PanelSection section,
1257
private List<(PanelTargetKind Kind, int Item, PanelIcon Icon, string Label, string Name)> GetRowActions(
AppHostMenuItem
host, PanelSection section)
1288
private void AddActions(List<PanelCommand> commands, List<PanelHitTarget> targets,
AppHostMenuItem
host, PanelSection section,
1340
var
current = confirm.Kind switch
1360
private void AddConfirm(List<PanelCommand> commands, List<PanelHitTarget> targets, PanelConfirm confirm,
AppHostMenuItem
? host,
1512
private void AddTarget(List<PanelHitTarget> targets, PanelTargetKey key, PanelRect bounds, string name, bool enabled,
AppHostMenuItem
? host,
1543
internal static PanelStatusGlyph GetStatusGlyph(
AppHostMenuItem
host, bool live) => host switch
1559
internal static (string Text, bool IsError) GetRowDetail(
AppHostMenuItem
host, bool live, bool showPid)
1581
private static string GetRowAccessibleName(
AppHostMenuItem
host, string detail) => $"{host.DisplayName}, {detail}";
1629
private readonly record struct ListItem(ListItemKind Kind, double Y, double Height, PanelSection Section,
AppHostMenuItem
? Host,
1633
private sealed record PanelConfirm(PanelConfirmKind Kind, PanelSection Section,
AppHostMenuItem
? Host);
src\Aspire.Tray\Common\TrayPanelScene.cs (2)
193
AppHostMenuItem
? Host,
313
internal sealed record PanelAction(PanelActionKind Kind,
AppHostMenuItem
? Host = null, PanelRect Anchor = default)
TrayApplication.Actions.cs (2)
48
var
row = RequireCurrentRow(target.Id);
111
private
AppHostMenuItem
RequireCurrentRow(AppHostId id)
TrayApplication.NativeSmoke.cs (1)
439
var
host = state.AppHosts.Single(host => host.Id == row.Host!.Id);