Skip to content

[docs] Clarify ResourceStoppedEvent fires once per stop, not per restart - #1705

Merged
James Newton-King (JamesNK) merged 2 commits into
release/13.6from
docs/pr-20279-35634735421-1-e8b1ce1d66e76a98
Sep 23, 2026
Merged

James Newton-King (JamesNK) merged 2 commits into
release/13.6from
docs/pr-20279-35634735421-1-e8b1ce1d66e76a98

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#20279

@JamesNK

Targeting release/13.6 based on the source PR milestone 13.6.

Why this doc is needed

The source PR (microsoft/aspire#20279) fixes a bug where OnResourceStopped handlers could receive duplicate callbacks when the handler itself triggered a restart. The PR body's "User-facing scenario" section explicitly calls out the fixed, user-observable behavior: a restart-triggering OnResourceStopped handler no longer gets invoked twice for the same stop.

ResourceStoppedEvent is documented in app-host/eventing.mdx, but the docs previously didn't clarify the once-per-stop semantics, which could otherwise read as ambiguous to a reader relying on the event to gate restart logic.

What changed

  • src/frontend/src/content/docs/app-host/eventing.mdx: Added a note under the "Resource stopped event" section clarifying that ResourceStoppedEvent fires once per stop, and that a restart triggered from within a handler does not cause a duplicate firing for the same stop.

Files modified

  • src/frontend/src/content/docs/app-host/eventing.mdx (updated existing page)

No new pages were created; this is a targeted clarification to an existing page.

Generated by PR Documentation Check for #20279 · copilot · auto · 67.4 AIC · ⌖ 10.2 AIC · ⊞ 18.5K · ◷

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Sep 21, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1705. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1705 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@JamesNK

Copy link
Copy Markdown
Member

Copilot Move content into "Resource stopped event" text rather than being a seperate aside

Copilot AI commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Copilot Move content into "Resource stopped event" text rather than being a seperate aside

Moved the once-per-stop clarification into the Resource stopped event text and removed the separate aside in be4742c.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Wording coverage and browser-based documentation verification remain unresolved.

Review effort: Lite
Findings: None

What changed in this PR

This documentation PR clarifies ResourceStoppedEvent firing behavior during stops and handler-triggered restarts.

Changes:

  • Documents one event per stop.
  • Clarifies that handler-triggered restarts do not duplicate the event.
File Review summary
src/​frontend/​src/​content/​docs/​app-host/​eventing.mdx Clarifies stop/restart semantics. Nit: wording should cover terminal-state transitions, including FailedToStart.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@JamesNK
James Newton-King (JamesNK) merged commit 887d584 into release/13.6 Sep 23, 2026
12 checks passed
@JamesNK
James Newton-King (JamesNK) deleted the docs/pr-20279-35634735421-1-e8b1ce1d66e76a98 branch September 23, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants