Skip to content

[13.2] Update App Host Events #315

Closed

Description

@afscrome

Update any eventing docs to account for new helper events added #14119 (e.g. builder.Eventing.OnBeforeStart(...))

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.

Activity

  1. IEvangelist commented on Jun 2, 2026

    @IEvangelist
    Member

    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 contain Eventing.Subscribe<…Event>(...) snippets).

    Scope: Mechanical find/replace — every snippet of the form

    builder.Eventing.Subscribe<BeforeStartEvent>((evt, ct) => …);

    becomes the typed helper:

    builder.Eventing.OnBeforeStart((evt, ct) => …);

    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.
    • No unrelated edits.
  2. added a commit that references this issue on Jul 27, 2026
    ecea57a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions