subscribeAfterPublish

Method
📦 Aspire.Hosting v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
subscribeAfterPublish(callback: callback): DistributedApplicationEventSubscription;
}

Signature

methodsubscribeAfterPublish
Subscribes to the AfterPublish event, which fires after the application is published.
subscribeAfterPublish(callback: (arg: AfterPublishEvent) => Promise<void>): DistributedApplicationEventSubscription
callback(arg: AfterPublishEvent) => Promise<void>A callback that receives the exported event when the event fires.
DistributedApplicationEventSubscription

Applies to

This method applies to the following types: