Interface IMessageEncoderFactory
Represents a message encoder factory.
public interface IMessageEncoderFactory
Methods
GetCommandMessageEncoder()
Gets an encoder for a Command message.
IMessageEncoder GetCommandMessageEncoder()
Returns
- IMessageEncoder
An encoder.
GetCommandRequestMessageEncoder()
Gets an encoder for a Command request message.
IMessageEncoder GetCommandRequestMessageEncoder()
Returns
- IMessageEncoder
An encoder.
GetCommandResponseMessageEncoder()
Gets an encoder for a Command response message.
IMessageEncoder GetCommandResponseMessageEncoder()
Returns
- IMessageEncoder
An encoder.
GetCompressedMessageEncoder(IMessageEncoderSelector)
Gets an encoder for a Compressed message.
IMessageEncoder GetCompressedMessageEncoder(IMessageEncoderSelector originalEncoderSelector)
Parameters
originalEncoderSelector
IMessageEncoderSelectorThe original encoder selector.
Returns
- IMessageEncoder
An encoder.
GetQueryMessageEncoder()
Gets an encoder for a Query message.
IMessageEncoder GetQueryMessageEncoder()
Returns
- IMessageEncoder
An encoder.
GetReplyMessageEncoder<TDocument>(IBsonSerializer<TDocument>)
Gets an encoder for a Reply message.
IMessageEncoder GetReplyMessageEncoder<TDocument>(IBsonSerializer<TDocument> serializer)
Parameters
serializer
IBsonSerializer<TDocument>The serializer.
Returns
- IMessageEncoder
An encoder.
Type Parameters
TDocument
The type of the document.