Skip to content
DocsTry Aspire
DocsTry

IDistributedApplicationBuilder.tryAddEventingSubscriber

Method
📦 Aspire.Hosting v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
tryAddEventingSubscriber(subscribe: (arg: EventingSubscriberRegistrationContext) => Promise<void>): void;
}

Signature

methodtryAddEventingSubscriber
Attempts to add an ATS-friendly eventing subscriber callback to the distributed-application builder.
tryAddEventingSubscriber(subscribe: (arg: EventingSubscriberRegistrationContext) => Promise<void>): void
subscribe(arg: EventingSubscriberRegistrationContext) => Promise<void>

Defined on

This method is defined on the following type: