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