DistributedApplicationEventSubscription Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a subscription to an event that is published during the lifecycle of the AppHost.
public DistributedApplicationEventSubscription (Func<Aspire.Hosting.Eventing.IDistributedApplicationEvent,System.Threading.CancellationToken,System.Threading.Tasks.Task> callback);
new Aspire.Hosting.Eventing.DistributedApplicationEventSubscription : Func<Aspire.Hosting.Eventing.IDistributedApplicationEvent, System.Threading.CancellationToken, System.Threading.Tasks.Task> -> Aspire.Hosting.Eventing.DistributedApplicationEventSubscription
Public Sub New (callback As Func(Of IDistributedApplicationEvent, CancellationToken, Task))
Parameters
Callback to invoke when the event is published.