19 references to AppHostPresentation
aspire-tray (19)
src\Aspire.Tray\Common\TrayController.cs (5)
600: stopped ? "Stopped; waiting for discovery." : AppHostPresentation.GetSubtitle(host)); 601return new AppHostMenuItem(host.Id, AppHostPresentation.GetTitle(host), subtitle, 602AppHostPresentation.GetDisplayName(host), 659return new(host.Id, AppHostPresentation.GetTitle(host), subtitle, AppHostPresentation.GetDisplayName(host),
TrayApplication.Menus.cs (8)
99var title = AppHostPresentation.GetCompactMenuLabel(host); 104DetailsText = AppHostPresentation.GetMenuDetailsText(host.Id.AppHostPath, host.Subtitle) 136Append(submenu, NativeMethods.MfGrayed, 0, AppHostPresentation.GetMenuDetailsLabel(GetMenuStatusText(host, discoveryAvailable))); 138Append(submenu, NativeMethods.MfGrayed, 0, AppHostPresentation.GetPathLabel(host.Id.AppHostPath)); 153host is null ? row.Title : AppHostPresentation.GetCompactMenuLabel(host), 157row.DetailsText = AppHostPresentation.GetMenuDetailsText(row.Id.AppHostPath, host?.Subtitle ?? "AppHost no longer available"); 159AppHostPresentation.GetMenuDetailsLabel(GetMenuStatusText(host, state.Discovery == DiscoveryState.Live)), false); 160UpdateItem(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)), 287NativeSmokeHarness.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"