EventingSubscriberRegistrationContext.OnBeforeStart

Method
📦 Aspire.Hosting v17.0.0
type EventingSubscriberRegistrationContext interface {
// ... omitted for brevity
OnBeforeStart(callback func(arg BeforeStartEvent)) DistributedApplicationEventSubscription
}

Signature

methodOnBeforeStart
Subscribes to the BeforeStart event from an eventing subscriber registration context.
OnBeforeStart(callback func(arg BeforeStartEvent)) DistributedApplicationEventSubscription
callbackfunc(arg BeforeStartEvent)callbackThe callback to invoke when the event fires.
DistributedApplicationEventSubscription

The event subscription.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: