EventingSubscriberRegistrationContext.onBeforeStart

Method
📦 Aspire.Hosting v17.0.0
interface EventingSubscriberRegistrationContext {
// ... omitted for brevity
onBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscription;
}

Signature

methodonBeforeStart
Subscribes to the BeforeStart event from an eventing subscriber registration context.
onBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscription
callback(arg: BeforeStartEvent) => Promise<void>The callback to invoke when the event fires.
DistributedApplicationEventSubscription

Defined on

This method is defined on the following type: