You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most uses of Eventing.Subscribe<T> in code snippets / other docs
The signature of the calls is the same, so it should be as simple as a find and replace of Eventing.Subscribe<BeforeStartEvent> with builder.Eventing.OnBeforeStart, although there may be a few examples that need to remain calling the .Subscribe<T> method directly.
Cover the full set of helpers (Before/After × Start/Stop/etc.) — confirm exact names by reading src/Aspire.Hosting/Eventing/ on the merged commit.
Acceptance
All eventing snippets in the docs use the new typed helpers where one exists; Eventing.Subscribe<T> is kept only where there's no helper or where the prose specifically discusses the generic path.
The "AppHost eventing" section explains the helper methods and links to the API reference.
Activity
IEvangelist commentedon Jun 2, 2026
Triage → @Copilot
Upstream: microsoft/aspire#14119 — adds typed helper events such as
builder.Eventing.OnBeforeStart(...).Page: https://aspire.dev/app-host/eventing/#apphost-eventing →
src/frontend/src/content/docs/app-host/eventing.mdx(plus any other MDX files that containEventing.Subscribe<…Event>(...)snippets).Scope: Mechanical find/replace — every snippet of the form
becomes the typed helper:
Cover the full set of helpers (Before/After × Start/Stop/etc.) — confirm exact names by reading
src/Aspire.Hosting/Eventing/on the merged commit.Acceptance
Eventing.Subscribe<T>is kept only where there's no helper or where the prose specifically discusses the generic path.[docs] Fix Subscribe syntax bug and adopt OnConnectionStringAvailable…