Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceWithEnvironment.WithHttpsCertificateConfiguration

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEnvironment) WithHttpsCertificateConfiguration(callback func(arg HttpsCertificateConfigurationCallbackAnnotationContext)) ResourceWithEnvironment

Signature

methodWithHttpsCertificateConfigurationbuilder
Adds a callback that allows configuring the resource to use a specific HTTPS/TLS certificate key pair for server authentication.
WithHttpsCertificateConfiguration(callback func(arg HttpsCertificateConfigurationCallbackAnnotationContext)) ResourceWithEnvironment
callbackfunc(arg HttpsCertificateConfigurationCallbackAnnotationContext)callbackThe callback to configure the resource to use a certificate key pair.
ResourceWithEnvironment

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: