Skip to content
Docs Try Aspire
Docs Try

EventingSubscriberRegistrationContext

Handle
📦 Aspire.Hosting v13.4.0
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;
}

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

Subscribes to the AfterPublish event from an eventing subscriber registration context.
onAfterPublish(callback: (arg: AfterPublishEvent) => Promise<void>): DistributedApplicationEventSubscription
callback (arg: AfterPublishEvent) => Promise<void>
DistributedApplicationEventSubscription
Subscribes to the AfterResourcesCreated event from an eventing subscriber registration context.
onAfterResourcesCreated(callback: (arg: AfterResourcesCreatedEvent) => Promise<void>): DistributedApplicationEventSubscription
callback (arg: AfterResourcesCreatedEvent) => Promise<void>
DistributedApplicationEventSubscription
Subscribes to the BeforePublish event from an eventing subscriber registration context.
onBeforePublish(callback: (arg: BeforePublishEvent) => Promise<void>): DistributedApplicationEventSubscription
callback (arg: BeforePublishEvent) => Promise<void>
DistributedApplicationEventSubscription
Subscribes to the BeforeStart event from an eventing subscriber registration context.
onBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscription
callback (arg: BeforeStartEvent) => Promise<void>
DistributedApplicationEventSubscription