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.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public ConnectionPoolSettings With(
	Optional<TimeSpan> maintenanceInterval = null,
	Optional<int> maxConnections = null,
	Optional<int> minConnections = null,
	Optional<int> waitQueueSize = null,
	Optional<TimeSpan> waitQueueTimeout = null,
	Optional<int> maxConnecting = 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.
maxConnecting (Optional)
Type: MongoDB.DriverOptionalInt32
The maximum concurrently connecting connections.

Return Value

Type: ConnectionPoolSettings
A new ConnectionPoolSettings instance.
See Also