DistributedApplicationEventing Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |