subscribeBeforeStart

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

Signature

methodsubscribeBeforeStart
Subscribes to the BeforeStart event, which fires before the application starts.
subscribeBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscription
callback(arg: BeforeStartEvent) => Promise<void>A callback that receives the exported event when the event fires.
DistributedApplicationEventSubscription

Applies to

This method applies to the following types: