Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

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().

Applies to

This method applies to the following types: