Class ReplyMessageEncoderSelector<TDocument>
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
IMessageEncoderFactoryThe encoder factory.
Returns
- IMessageEncoder
A message encoder.