EventingSubscriberRegistrationContext.onBeforePublish

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

Signature

methodonBeforePublish
Subscribes to the BeforePublish event from an eventing subscriber registration context.
onBeforePublish(callback: (arg: BeforePublishEvent) => Promise<void>): DistributedApplicationEventSubscription
callback(arg: BeforePublishEvent) => Promise<void>The callback to invoke when the event fires.
DistributedApplicationEventSubscription

Defined on

This method is defined on the following type: