EventingSubscriberRegistrationContext
Handle
interface EventingSubscriberRegistrationContext { readonly cancellationToken: cancellationToken; readonly executionContext: DistributedApplicationExecutionContext; onAfterPublish(callback: (arg: AfterPublishEvent) => Promise<void>): DistributedApplicationEventSubscription; onAfterResourcesCreated(callback: (arg: AfterResourcesCreatedEvent) => Promise<void>): DistributedApplicationEventSubscription; onBeforePublish(callback: (arg: BeforePublishEvent) => Promise<void>): DistributedApplicationEventSubscription; onBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscription;}6 members
Properties
property
cancellationToken cancellationToken getThe cancellation token associated with the subscriber registration.
property
executionContext DistributedApplicationExecutionContext getThe execution context for the AppHost invocation.
Methods
method
onAfterPublish Subscribes to the AfterPublish event from an eventing subscriber registration context.
onAfterPublish(callback: (arg: AfterPublishEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback(arg: AfterPublishEvent) => Promise<void> The callback to invoke when the event fires.Returns
DistributedApplicationEventSubscription method
onAfterResourcesCreated Subscribes to the AfterResourcesCreated event from an eventing subscriber registration context.
onAfterResourcesCreated(callback: (arg: AfterResourcesCreatedEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback(arg: AfterResourcesCreatedEvent) => Promise<void> The callback to invoke when the event fires.Returns
DistributedApplicationEventSubscription method
onBeforePublish Subscribes to the BeforePublish event from an eventing subscriber registration context.
onBeforePublish(callback: (arg: BeforePublishEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback(arg: BeforePublishEvent) => Promise<void> The callback to invoke when the event fires.Returns
DistributedApplicationEventSubscription method
onBeforeStart Subscribes to the BeforeStart event from an eventing subscriber registration context.
onBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback(arg: BeforeStartEvent) => Promise<void> The callback to invoke when the event fires.Returns
DistributedApplicationEventSubscription