Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/frontend/src/content/docs/app-host/eventing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@ builder.Eventing.Subscribe<AfterResourcesCreatedEvent>(
callbacks like `onResourceReady`.
</Aside>

<Aside type="caution">
`Eventing.Subscribe<T>()` requires `T` to be a concrete event type.
Subscribing to an interface or abstract class throws an `ArgumentException`.
For `IDistributedApplicationEvent`, the exception message is
`Cannot subscribe to interface or abstract type 'IDistributedApplicationEvent'. Subscribe to a concrete event type instead.`
Use a concrete event type such as `BeforeStartEvent` or
`AfterResourcesCreatedEvent`.
</Aside>

When the AppHost is run, by the time the Aspire dashboard is displayed, you should see the following log output in the console:

```plaintext {2,12} data-disable-copy
Expand Down
Loading