Method With
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.dll
With(Optional<TimeSpan>, Optional<int>, Optional<int>, Optional<int>, Optional<TimeSpan>, Optional<int>)
Returns a new ConnectionPoolSettings instance with some settings changed.
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<TimeSpan>The maintenance interval.
maxConnections
Optional<int>The maximum connections.
minConnections
Optional<int>The minimum connections.
waitQueueSize
Optional<int>Size of the wait queue.
waitQueueTimeout
Optional<TimeSpan>The wait queue timeout.
maxConnecting
Optional<int>The maximum concurrently connecting connections.
Returns
- ConnectionPoolSettings
A new ConnectionPoolSettings instance.