Skip to content

Update AppHost eventing docs to use typed helper APIs#1168

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/132-update-app-host-events
Draft

Update AppHost eventing docs to use typed helper APIs#1168
Copilot wants to merge 3 commits into
mainfrom
copilot/132-update-app-host-events

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 2, 2026

AppHost eventing docs still showed older Eventing.Subscribe<T> patterns in places where typed helper APIs now exist. This updates the eventing guidance and related snippets to prefer the named helpers while keeping generic subscription examples only where the lower-level API is the point.

  • AppHost eventing page

    • Clarified the builder-level helper methods available for AppHost lifecycle events.
    • Added API reference links for the helper surface.
    • Updated the resource stopped example to use the typed helper pattern.
  • Related doc snippets

    • Replaced legacy subscription examples with helper methods where a direct helper exists:
      • OnBeforeStart
      • OnAfterResourcesCreated
      • OnInitializeResource
      • OnConnectionStringAvailable
  • Release notes and examples

    • Updated existing release-note and architecture snippets so they align with the current eventing guidance and preferred API shape.
// Before
builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) =>
{
    return Task.CompletedTask;
});

// After
builder.OnBeforeStart((e, ct) =>
{
    return Task.CompletedTask;
});

Copilot AI linked an issue Jun 2, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits June 2, 2026 03:10
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot AI changed the title [WIP] Update eventing documentation for new helper events Update AppHost eventing docs to use typed helper APIs Jun 2, 2026
Copilot AI requested a review from IEvangelist June 2, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[13.2] Update App Host Events

2 participants