Share via


DistributedApplicationEventSubscription Constructor

Definition

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
Func<IDistributedApplicationEvent,CancellationToken,Task>

Callback to invoke when the event is published.

Applies to