Skip to content
DocsTry Aspire
DocsTry

DistributedApplicationEventSubscription Properties

ClassProperties1 member
Represents a subscription to an event that is published during the lifecycle of the AppHost.
CallbackSection titled CallbackFunc<IDistributedApplicationEvent, CancellationToken, Task>
The callback to be executed when the event is published.
public Func<IDistributedApplicationEvent, CancellationToken, Task> Callback { get; }