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 get The cancellation token associated with the subscriber registration.
property
executionContext DistributedApplicationExecutionContext get The 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> 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> 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> 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> Returns
DistributedApplicationEventSubscription