ConnectionSettings Constructor |
Namespace:
MongoDB.Driver.Core.Configuration
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public ConnectionSettings(
Optional<IEnumerable<IAuthenticatorFactory>> authenticatorFactories = default,
Optional<IEnumerable<CompressorConfiguration>> compressors = default,
Optional<bool> loadBalanced = default,
Optional<TimeSpan> maxIdleTime = default,
Optional<TimeSpan> maxLifeTime = default,
Optional<string> applicationName = default
)
Public Sub New (
Optional authenticatorFactories As Optional(Of IEnumerable(Of IAuthenticatorFactory)) = Nothing,
Optional compressors As Optional(Of IEnumerable(Of CompressorConfiguration)) = Nothing,
Optional loadBalanced As Optional(Of Boolean) = Nothing,
Optional maxIdleTime As Optional(Of TimeSpan) = Nothing,
Optional maxLifeTime As Optional(Of TimeSpan) = Nothing,
Optional applicationName As Optional(Of String) = Nothing
)
new :
?authenticatorFactories : Optional<IEnumerable<IAuthenticatorFactory>> *
?compressors : Optional<IEnumerable<CompressorConfiguration>> *
?loadBalanced : Optional<bool> *
?maxIdleTime : Optional<TimeSpan> *
?maxLifeTime : Optional<TimeSpan> *
?applicationName : Optional<string>
(* Defaults:
let _authenticatorFactories = defaultArg authenticatorFactories new Optional<IEnumerable<IAuthenticatorFactory>>()
let _compressors = defaultArg compressors new Optional<IEnumerable<CompressorConfiguration>>()
let _loadBalanced = defaultArg loadBalanced new Optional<bool>()
let _maxIdleTime = defaultArg maxIdleTime new Optional<TimeSpan>()
let _maxLifeTime = defaultArg maxLifeTime new Optional<TimeSpan>()
let _applicationName = defaultArg applicationName new Optional<string>()
*)
-> ConnectionSettings
Parameters
- authenticatorFactories (Optional)
- Type: MongoDB.DriverOptionalIEnumerableIAuthenticatorFactory
The authenticator factories. - compressors (Optional)
- Type: MongoDB.DriverOptionalIEnumerableCompressorConfiguration
The compressors. - loadBalanced (Optional)
- Type: MongoDB.DriverOptionalBoolean
Whether the load balanced mode is enabled. - maxIdleTime (Optional)
- Type: MongoDB.DriverOptionalTimeSpan
The maximum idle time. - maxLifeTime (Optional)
- Type: MongoDB.DriverOptionalTimeSpan
The maximum life time. - applicationName (Optional)
- Type: MongoDB.DriverOptionalString
The application name.
See Also