IDistributedApplicationEventing
Interface net10.0
Supports publishing and subscribing to events which are executed during the AppHost lifecycle.
namespace Aspire.Hosting.Eventing;
public interface IDistributedApplicationEventing{ // ...} 5 members
Methods5
Section titled MethodsPublishAsync(T, CancellationToken)abstractTask Publishes an event to all subscribes of the specific event type.
PublishAsync(T, EventDispatchBehavior, CancellationToken)abstractTask Publishes an event to all subscribes of the specific event type.
Subscribe(Func<T, CancellationToken, Task>)abstract Subscribes a callback to a specific event type within the AppHost.
Subscribe(IResource, Func<T, CancellationToken, Task>)abstract Subscribes a callback to a specific event type
Unsubscribe(DistributedApplicationEventSubscription)abstract Unsubscribe from an event.