Skip to content
Docs Try Aspire
Docs Try

IDistributedApplicationBuilder.subscribeBeforePublish

Method
📦 Aspire.Hosting v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
subscribeBeforePublish(callback: (arg: BeforePublishEvent) => Promise<void>): DistributedApplicationEventSubscription;
}

Signature

method subscribeBeforePublish
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: