TcpStreamSettings Constructor |
Namespace:
MongoDB.Driver.Core.Configuration
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntaxpublic TcpStreamSettings(
Optional<AddressFamily> addressFamily = default,
Optional<TimeSpan> connectTimeout = default,
Optional<TimeSpan?> readTimeout = default,
Optional<int> receiveBufferSize = default,
Optional<int> sendBufferSize = default,
Optional<Action<Socket>> socketConfigurator = default,
Optional<TimeSpan?> writeTimeout = default
)
Public Sub New (
Optional addressFamily As Optional(Of AddressFamily) = Nothing,
Optional connectTimeout As Optional(Of TimeSpan) = Nothing,
Optional readTimeout As Optional(Of TimeSpan?) = Nothing,
Optional receiveBufferSize As Optional(Of Integer) = Nothing,
Optional sendBufferSize As Optional(Of Integer) = Nothing,
Optional socketConfigurator As Optional(Of Action(Of Socket)) = Nothing,
Optional writeTimeout As Optional(Of TimeSpan?) = Nothing
)
new :
?addressFamily : Optional<AddressFamily> *
?connectTimeout : Optional<TimeSpan> *
?readTimeout : Optional<Nullable<TimeSpan>> *
?receiveBufferSize : Optional<int> *
?sendBufferSize : Optional<int> *
?socketConfigurator : Optional<Action<Socket>> *
?writeTimeout : Optional<Nullable<TimeSpan>>
(* Defaults:
let _addressFamily = defaultArg addressFamily new Optional<AddressFamily>()
let _connectTimeout = defaultArg connectTimeout new Optional<TimeSpan>()
let _readTimeout = defaultArg readTimeout new Optional<Nullable<TimeSpan>>()
let _receiveBufferSize = defaultArg receiveBufferSize new Optional<int>()
let _sendBufferSize = defaultArg sendBufferSize new Optional<int>()
let _socketConfigurator = defaultArg socketConfigurator new Optional<Action<Socket>>()
let _writeTimeout = defaultArg writeTimeout new Optional<Nullable<TimeSpan>>()
*)
-> TcpStreamSettings
Parameters
- addressFamily (Optional)
- Type: MongoDB.DriverOptionalAddressFamily
The address family. - connectTimeout (Optional)
- Type: MongoDB.DriverOptionalTimeSpan
The connect timeout. - readTimeout (Optional)
- Type: MongoDB.DriverOptionalNullableTimeSpan
The read timeout. - receiveBufferSize (Optional)
- Type: MongoDB.DriverOptionalInt32
Size of the receive buffer. - sendBufferSize (Optional)
- Type: MongoDB.DriverOptionalInt32
Size of the send buffer. - socketConfigurator (Optional)
- Type: MongoDB.DriverOptionalActionSocket
The socket configurator. - writeTimeout (Optional)
- Type: MongoDB.DriverOptionalNullableTimeSpan
The write timeout.
See Also