Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceWithEnvironment.WithDeveloperCertificateTrust

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEnvironment) WithDeveloperCertificateTrust(trust bool) ResourceWithEnvironment

Signature

methodWithDeveloperCertificateTrustbuilder
Indicates whether developer certificates should be treated as trusted certificate authorities for the resource at run time. Currently this indicates trust for the ASP.NET Core developer certificate. The developer certificate will only be trusted when running in local development scenarios; in publish mode resources will use their default certificate trust.
WithDeveloperCertificateTrust(trust bool) ResourceWithEnvironment
trustboolIndicates whether the developer certificate should be treated as trusted.
ResourceWithEnvironment

The 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: