Table of Contents

Class MongoDbConnectionOptions

Namespace
Excalibur.Cdc.MongoDB
Assembly
Excalibur.Cdc.MongoDB.dll

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

TimeSpan

ConnectionString

Gets or sets the MongoDB connection string.

[Required]
public string ConnectionString { get; set; }

Property Value

string

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

int

ServerSelectionTimeout

Gets or sets the server selection timeout.

public TimeSpan ServerSelectionTimeout { get; set; }

Property Value

TimeSpan

UseSsl

Gets or sets whether to use SSL/TLS.

public bool UseSsl { get; set; }

Property Value

bool