Skip to content
Discussion options

You must be logged in to vote

We've updated https://github.com/dotnet/aspire/blob/main/docs/specs/appmodel.md to be a more complete guide for building resources.

To enable your custom resource to be waited on you need to implement a lifecycle. You are not subscribing to events; you are publishing events (https://learn.microsoft.com/en-us/dotnet/aspire/app-host/eventing#resource-eventing)

https://github.com/dotnet/aspire/blob/main/docs/specs/appmodel.md#example-custom-resource---talking-clock (ps there's no lifecycle hook anymore, just events).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@markphillips100
Comment options

Answer selected by markphillips100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants