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.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
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