Method With
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
MongoDB.Driver.Core.Configuration
Assembly
MongoDB.Driver.dll
With(Optional, Optional, Optional<TimeSpan?>, Optional, Optional, Optional<Action>, Optional<TimeSpan?>)
Returns a new TcpStreamSettings instance with some settings changed.
public TcpStreamSettings With(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)
Parameters
addressFamily
Optional<AddressFamily>
The address family.
connectTimeout
Optional<TimeSpan>
The connect timeout.
readTimeout
Optional<TimeSpan?>
The read timeout.
receiveBufferSize
Optional<int>
Size of the receive buffer.
Size of the send buffer.
socketConfigurator
Optional<Action<Socket>>
The socket configurator.
writeTimeout
Optional<TimeSpan?>
The write timeout.
Returns
A new TcpStreamSettings instance.