Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Resource.SubscribeHttpsEndpointsUpdate

Method
📦 Aspire.Hosting v17.0.0
func (Resource) SubscribeHttpsEndpointsUpdate(callback func(obj HttpsEndpointUpdateCallbackContext)) Resource

Signature

methodSubscribeHttpsEndpointsUpdatebuilder
Subscribes to the BeforeStartEvent and invokes the specified callback when an HTTPS certificate is determined to be available for the resource. This is used to conditionally update endpoint URI schemes or perform other HTTPS-related configuration at startup.
SubscribeHttpsEndpointsUpdate(callback func(obj HttpsEndpointUpdateCallbackContext)) Resource
callbackfunc(obj HttpsEndpointUpdateCallbackContext)callbackThe callback to invoke when HTTPS is enabled. Receives an HttpsEndpointUpdateCallbackContext providing access to the service provider, resource, and application model.
Resource

The updated resource builder.

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

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: