MongoDBServerResource.WithTlsMode

Method
📦 Aspire.Hosting.MongoDB v17.0.0
type MongoDBServerResource interface {
// ... omitted for brevity
WithTlsMode(options ...*WithTlsModeOptions) MongoDBServerResource
}

Signature

methodWithTlsModebuilder
Configures the --tlsMode the MongoDB server is started with when TLS is active.
WithTlsMode(options ...*WithTlsModeOptions) MongoDBServerResource
options...*WithTlsModeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithTlsModeOptions argument.

Mode*MongoDBTlsModeThe TLS mode to run the MongoDB server in.
MongoDBServerResource

The resource builder.

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

Defined on

This method is defined on the following type: