Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

TryAddEventingSubscriber

Method
📦 Aspire.Hosting v17.0.0
func (DistributedApplicationBuilder) 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.

Applies to

This method applies to the following types: