Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DistributedApplicationBuilder.TryAddEventingSubscriber

Method
📦 Aspire.Hosting v17.0.0
type DistributedApplicationBuilder interface {
// ... omitted for brevity
TryAddEventingSubscriber(subscribe func(arg EventingSubscriberRegistrationContext)) error
}

Signature

methodTryAddEventingSubscriber
Attempts to add an ATS-friendly eventing subscriber callback to the distributed-application builder.
TryAddEventingSubscriber(subscribe func(arg EventingSubscriberRegistrationContext)) error
subscribefunc(arg EventingSubscriberRegistrationContext)callbackThe callback that registers the event subscriptions.
error

Returns error.

Defined on

This method is defined on the following type: