Table of Contents

Class ReplyMessageEncoderSelector<TDocument>

Namespace
MongoDB.Driver.Core.WireProtocol.Messages.Encoders
Assembly
MongoDB.Driver.Core.dll

Represents a message encoder selector for ReplyMessages.

public class ReplyMessageEncoderSelector<TDocument> : IMessageEncoderSelector

Type Parameters

TDocument

The type of the document.

Inheritance
ReplyMessageEncoderSelector<TDocument>
Implements
Inherited Members

Constructors

ReplyMessageEncoderSelector(IBsonSerializer<TDocument>)

Initializes a new instance of the ReplyMessageEncoderSelector<TDocument> class.

public ReplyMessageEncoderSelector(IBsonSerializer<TDocument> documentSerializer)

Parameters

documentSerializer IBsonSerializer<TDocument>

The document serializer.

Methods

GetEncoder(IMessageEncoderFactory)

Get the appropriate encoder from an encoder factory.

public IMessageEncoder GetEncoder(IMessageEncoderFactory encoderFactory)

Parameters

encoderFactory IMessageEncoderFactory

The encoder factory.

Returns

IMessageEncoder

A message encoder.