19 references to AppHostPresentation
aspire-tray (19)
src\Aspire.Tray\Common\TrayController.cs (5)
600
: stopped ? "Stopped; waiting for discovery." :
AppHostPresentation
.GetSubtitle(host));
601
return new AppHostMenuItem(host.Id,
AppHostPresentation
.GetTitle(host), subtitle,
602
AppHostPresentation
.GetDisplayName(host),
659
return new(host.Id,
AppHostPresentation
.GetTitle(host), subtitle,
AppHostPresentation
.GetDisplayName(host),
TrayApplication.Menus.cs (8)
99
var title =
AppHostPresentation
.GetCompactMenuLabel(host);
104
DetailsText =
AppHostPresentation
.GetMenuDetailsText(host.Id.AppHostPath, host.Subtitle)
136
Append(submenu, NativeMethods.MfGrayed, 0,
AppHostPresentation
.GetMenuDetailsLabel(GetMenuStatusText(host, discoveryAvailable)));
138
Append(submenu, NativeMethods.MfGrayed, 0,
AppHostPresentation
.GetPathLabel(host.Id.AppHostPath));
153
host is null ? row.Title :
AppHostPresentation
.GetCompactMenuLabel(host),
157
row.DetailsText =
AppHostPresentation
.GetMenuDetailsText(row.Id.AppHostPath, host?.Subtitle ?? "AppHost no longer available");
159
AppHostPresentation
.GetMenuDetailsLabel(GetMenuStatusText(host, state.Discovery == DiscoveryState.Live)), false);
160
UpdateItem(row.Submenu, row.DetailsPosition, true,
AppHostPresentation
.GetPathLabel(row.Id.AppHostPath), false);
TrayApplication.NativeSmoke.cs (5)
145
&& ReadText(row.Submenu, last, true) == Literal(
AppHostPresentation
.GetPathLabel(row.Id.AppHostPath)),
278
&& titles[^2] == Literal(
AppHostPresentation
.GetMenuDetailsLabel(
285
== Literal(host is null ? row.Title :
AppHostPresentation
.GetCompactMenuLabel(host)),
287
NativeSmokeHarness.Require(row.DetailsText ==
AppHostPresentation
.GetMenuDetailsText(row.Id.AppHostPath,
289
&& titles[^1] == Literal(
AppHostPresentation
.GetPathLabel(row.Id.AppHostPath)),
TrayApplication.StopConfirmation.cs (1)
26
_stopDetail = $"Stop {
AppHostPresentation
.GetTitle(host)} (PID {host.AppHostPid})?\r\n\r\n"