Partilhar via


IDistributedApplicationEventing Interface

Definition

Supports publishing and subscribing to events which are executed during the AppHost lifecycle.

public interface IDistributedApplicationEventing
type IDistributedApplicationEventing = interface
Public Interface IDistributedApplicationEventing
Derived

Methods

PublishAsync<T>(T, CancellationToken)

Publishes an event to all subscribes of the specific event type.

PublishAsync<T>(T, EventDispatchBehavior, CancellationToken)

Publishes an event to all subscribes of the specific event type.

Subscribe<T>(Func<T,CancellationToken,Task>)

Subscribes a callback to a specific event type within the AppHost.

Subscribe<T>(IResource, Func<T,CancellationToken,Task>)

Subscribes a callback to a specific event type

Unsubscribe(DistributedApplicationEventSubscription)

Unsubscribe from an event.

Applies to