docs-aspire
docs-aspire copied to clipboard
[New article]: Conceptual docs for new eventing API
Proposed topic or title
.NET Aspire eventing and orchestration
Location in table of contents.
Fundamentals
Reason for the article
In https://github.com/dotnet/aspire/issues/5234 (issue) and https://github.com/dotnet/aspire/pull/5223 (PR) we are introducing a new API that allows developers to subscribe to lifecycle events. The idea is that we have an extensible local eventing mechanism to support orchestration. We might use it to trigger an action once a database container is online so we can initialize the database.
Article abstract
The article will need to introduce IDistributedApplicationEventing and how to publish and subscribe to events. It should show how to subscribe to events globally, and how to subscribe to resource-specific events (which can also be subscribed globally).
Relevant searches
No response
@mitchdenny is this a release 8.2 request?
No. This work is building up for 9.0
This API will ship in 8.2, but we don't need to go out of our way to document it until 9.0 because its experimental.
I think this should be under AppHost not Fundamentals