Skip to content
DocsTry Aspire
DocsTry

onBeforePublish

Method
📦 Aspire.Hosting v13.4.0
interface EventingSubscriberRegistrationContext {
// ... omitted for brevity
onBeforePublish(callback: callback): 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>
DistributedApplicationEventSubscription

Applies to

This method applies to the following types: