Click or drag to resize
IMessageEncoderSelectorGetEncoder Method
Get the appropriate encoder from an encoder factory.

Namespace: MongoDB.Driver.Core.WireProtocol.Messages.Encoders
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.4.1
Syntax
IMessageEncoder GetEncoder(
	IMessageEncoderFactory encoderFactory
)

Parameters

encoderFactory
Type: MongoDB.Driver.Core.WireProtocol.Messages.EncodersIMessageEncoderFactory
The encoder factory.

Return Value

Type: IMessageEncoder
A message encoder.
See Also