Table of Contents

Method WithUseOperatingSystemBufferSizes

Namespace
MongoDB.Driver.Core.Configuration
Assembly
MongoDB.Driver.dll

WithUseOperatingSystemBufferSizes(bool)

Returns a new TcpStreamSettings instance with UseOperatingSystemBufferSizes changed.

[Obsolete("Will be removed in the next major version, where ReceiveBufferSize and SendBufferSize become nullable and null leaves the operating system default.")]
public TcpStreamSettings WithUseOperatingSystemBufferSizes(bool useOperatingSystemBufferSizes)

Parameters

useOperatingSystemBufferSizes bool

Whether to leave the socket buffer sizes at the operating system defaults.

Returns

TcpStreamSettings

A new TcpStreamSettings instance.