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.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
Syntax
public ConnectionPoolSettings With(
	Optional<TimeSpan> maintenanceInterval = default,
	Optional<int> maxConnections = default,
	Optional<int> minConnections = default,
	Optional<int> waitQueueSize = default,
	Optional<TimeSpan> waitQueueTimeout = default,
	Optional<int> maxConnecting = default
)

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.
maxConnecting (Optional)
Type: MongoDB.DriverOptionalInt32
The maximum concurrently connecting connections.

Return Value

Type: ConnectionPoolSettings
A new ConnectionPoolSettings instance.
See Also