Skip to content
DocsTry Aspire
DocsTry

subscribeBeforePublish

Method
📦 Aspire.Hosting v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
subscribeBeforePublish(callback: callback): DistributedApplicationEventSubscription;
}

Signature

methodsubscribeBeforePublish
Subscribes to the BeforePublish event, which fires before the application is published.
subscribeBeforePublish(callback: (arg: BeforePublishEvent) => Promise<void>): DistributedApplicationEventSubscription
callback(arg: BeforePublishEvent) => Promise<void>
DistributedApplicationEventSubscription

Applies to

This method applies to the following types: