Share via


DistributedApplicationEventing Class

Definition

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

public class DistributedApplicationEventing : Aspire.Hosting.Eventing.IDistributedApplicationEventing
type DistributedApplicationEventing = class
    interface IDistributedApplicationEventing
Public Class DistributedApplicationEventing
Implements IDistributedApplicationEventing
Inheritance
DistributedApplicationEventing
Implements

Constructors

DistributedApplicationEventing()

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 within the AppHost.

Unsubscribe(DistributedApplicationEventSubscription)

Unsubscribe from an event.

Applies to