Class MongoDbConnectionOptions
Connection options for MongoDB CDC processor.
public sealed class MongoDbConnectionOptions
- Inheritance
-
MongoDbConnectionOptions
- Inherited Members
Remarks
Follows the MongoClientSettings pattern of separating connection properties from change stream configuration.
Properties
ConnectTimeout
Gets or sets the connection timeout.
public TimeSpan ConnectTimeout { get; set; }
Property Value
ConnectionString
Gets or sets the MongoDB connection string.
[Required]
public string ConnectionString { get; set; }
Property Value
Remarks
For Change Streams, the MongoDB deployment must be a replica set or sharded cluster.
MaxPoolSize
Gets or sets the maximum connection pool size.
[Range(1, 2147483647)]
public int MaxPoolSize { get; set; }
Property Value
ServerSelectionTimeout
Gets or sets the server selection timeout.
public TimeSpan ServerSelectionTimeout { get; set; }
Property Value
UseSsl
Gets or sets whether to use SSL/TLS.
public bool UseSsl { get; set; }