EventingSubscriberRegistrationContext
Handle
interface EventingSubscriberRegistrationContext { readonly cancellationToken: cancellationToken; readonly executionContext: DistributedApplicationExecutionContext; onAfterResourcesCreated(callback: (arg: AfterResourcesCreatedEvent) => Promise<void>): DistributedApplicationEventSubscription; onBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscription;}Properties
property
cancellationToken cancellationToken get Gets the CancellationToken property
property
executionContext DistributedApplicationExecutionContext get Gets the ExecutionContext property
Methods
method
onAfterResourcesCreated Subscribes an eventing subscriber to the AfterResourcesCreated event
onAfterResourcesCreated(callback: (arg: AfterResourcesCreatedEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback (arg: AfterResourcesCreatedEvent) => Promise<void> Returns
DistributedApplicationEventSubscription method
onBeforeStart Subscribes an eventing subscriber to the BeforeStart event
onBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscriptionParameters
callback (arg: BeforeStartEvent) => Promise<void> Returns
DistributedApplicationEventSubscription