Repository navigation
[docs] Clarify ResourceStoppedEvent fires once per stop, not per restart - #1705
Conversation
Documents microsoft/aspire#20279 Co-authored-by: Copilot <[email protected]>
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
|
Copilot Move content into "Resource stopped event" text rather than being a seperate aside |
Co-authored-by: JamesNK <[email protected]>
There was a problem hiding this comment.
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.
Documents changes from microsoft/aspire#20279
@JamesNKTargeting
release/13.6based on the source PR milestone13.6.Why this doc is needed
The source PR (microsoft/aspire#20279) fixes a bug where
OnResourceStoppedhandlers 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-triggeringOnResourceStoppedhandler no longer gets invoked twice for the same stop.ResourceStoppedEventis documented inapp-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 thatResourceStoppedEventfires 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.