Skip to content
DocsTry Aspire
DocsTry

IDistributedApplicationBuilder.subscribeBeforePublish

Method
📦 Aspire.Hosting v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
subscribeBeforePublish(callback: (arg: BeforePublishEvent) => Promise<void>): 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

Defined on

This method is defined on the following type: