IDistributedApplicationEventing Interface
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 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. |