Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTlsMode

Method
📦 Aspire.Hosting.MongoDB v17.0.0
func (MongoDBServerResource) 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().

Applies to

This method applies to the following types: