Click or drag to resize
ConnectionPoolSettingsWith Method
Returns a new ConnectionPoolSettings instance with some settings changed.

Namespace: MongoDB.Driver.Core.Configuration
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.0.1
Syntax
public ConnectionPoolSettings With(
	Optional<TimeSpan> maintenanceInterval = null,
	Optional<int> maxConnections = null,
	Optional<int> minConnections = null,
	Optional<int> waitQueueSize = null,
	Optional<TimeSpan> waitQueueTimeout = null
)

Parameters

maintenanceInterval (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The maintenance interval.
maxConnections (Optional)
Type: MongoDB.DriverOptionalInt32
The maximum connections.
minConnections (Optional)
Type: MongoDB.DriverOptionalInt32
The minimum connections.
waitQueueSize (Optional)
Type: MongoDB.DriverOptionalInt32
Size of the wait queue.
waitQueueTimeout (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The wait queue timeout.

Return Value

Type: ConnectionPoolSettings
A new ConnectionPoolSettings instance.
See Also