IDistributedApplicationBuilder.subscribeBeforePublish

Method
📦 Aspire.Hosting v17.0.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>A callback that receives the exported event when the event fires.
DistributedApplicationEventSubscription

Defined on

This method is defined on the following type: