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
cancellationTokencancellationTokengetThe cancellation token associated with the subscriber registration.
property
executionContextDistributedApplicationExecutionContextgetThe execution context for the AppHost invocation.
Methods
method
onAfterPublishSubscribes to the AfterPublish event from an eventing subscriber registration context.
onAfterPublish(callback: (arg: AfterPublishEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback(arg: AfterPublishEvent) => Promise<void>Returns
DistributedApplicationEventSubscriptionmethod
onAfterResourcesCreatedSubscribes to the AfterResourcesCreated event from an eventing subscriber registration context.
onAfterResourcesCreated(callback: (arg: AfterResourcesCreatedEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback(arg: AfterResourcesCreatedEvent) => Promise<void>Returns
DistributedApplicationEventSubscriptionmethod
onBeforePublishSubscribes to the BeforePublish event from an eventing subscriber registration context.
onBeforePublish(callback: (arg: BeforePublishEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback(arg: BeforePublishEvent) => Promise<void>Returns
DistributedApplicationEventSubscriptionmethod
onBeforeStartSubscribes to the BeforeStart event from an eventing subscriber registration context.
onBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback(arg: BeforeStartEvent) => Promise<void>Returns
DistributedApplicationEventSubscription