Skip to content
DocsTry Aspire
DocsTry

IResourceWithEnvironment.withHttpsCertificateConfiguration

Method
📦 Aspire.Hosting v13.5.3
interface IResourceWithEnvironment {
// ... omitted for brevity
withHttpsCertificateConfiguration(callback: (arg: HttpsCertificateConfigurationCallbackAnnotationContext) => Promise<void>): IResourceWithEnvironment;
}

Signature

methodwithHttpsCertificateConfigurationbuilder
Adds a callback that allows configuring the resource to use a specific HTTPS/TLS certificate key pair for server authentication.
withHttpsCertificateConfiguration(callback: (arg: HttpsCertificateConfigurationCallbackAnnotationContext) => Promise<void>): IResourceWithEnvironment
callback(arg: HttpsCertificateConfigurationCallbackAnnotationContext) => Promise<void>
IResourceWithEnvironment

Defined on

This method is defined on the following type: