MongoDBSettings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the client configuration settings for connecting to a MongoDB database using MongoDB driver.
public sealed class MongoDBSettings
type MongoDBSettings = class
Public NotInheritable Class MongoDBSettings
- Inheritance
-
MongoDBSettings
Constructors
MongoDBSettings() |
Properties
ConnectionString |
Gets or sets the connection string of the MongoDB database to connect to. |
DisableHealthChecks |
Gets or sets a boolean value that indicates whether the MongoDB health check is disabled or not. |
DisableTracing |
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not. |
HealthCheckTimeout |
Gets or sets a integer value that indicates the MongoDB health check timeout in milliseconds. |