Class MessageReaderConfig
The configuration for the driver's underlying message reading from the network.
public sealed class MessageReaderConfig
- Inheritance
-
MessageReaderConfig
- Inherited Members
- Extension Methods
Constructors
- MessageReaderConfig(MemoryPool<byte>, int, int)
Constructs a new instance of MessageReaderConfig.
The configuration for the driver's underlying message reading from the network.
Using this constructor overrides the DefaultReadBufferSize and MaxReadBufferSize.
Properties
- MemoryPool
The memory pool for creating buffers when reading messages. The PipeReader will borrow memory from the pool of at least MinBufferSize size. The message reader can request larger memory blocks to host an entire message. User code can provide an implementation for monitoring; by default, the driver will allocate a new array pool that does not take advantage of shared memory pools.
- MinBufferSize
The minimum buffer size to use when renting memory from the pool. The default value is 65,539.