Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

SubscribeAfterResourcesCreated

Method
📦 Aspire.Hosting v17.0.0
func (DistributedApplicationBuilder) SubscribeAfterResourcesCreated(callback func(arg AfterResourcesCreatedEvent)) DistributedApplicationEventSubscription

Signature

methodSubscribeAfterResourcesCreated
Subscribes to the AfterResourcesCreated event, which fires after all resources are created.
SubscribeAfterResourcesCreated(callback func(arg AfterResourcesCreatedEvent)) DistributedApplicationEventSubscription
callbackfunc(arg AfterResourcesCreatedEvent)callbackA callback that receives the exported event when the event fires.
DistributedApplicationEventSubscription

A subscription handle that can be used to unsubscribe.

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

Applies to

This method applies to the following types: