Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

SubscribeAfterPublish

Method
📦 Aspire.Hosting v17.0.0
func (DistributedApplicationBuilder) SubscribeAfterPublish(callback func(arg AfterPublishEvent)) DistributedApplicationEventSubscription

Signature

methodSubscribeAfterPublish
Subscribes to the AfterPublish event, which fires after the application is published.
SubscribeAfterPublish(callback func(arg AfterPublishEvent)) DistributedApplicationEventSubscription
callbackfunc(arg AfterPublishEvent)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: