Click or drag to resize

MongoDBMessageGetEncoder Method

Gets an encoder for the message from an encoder factory.

Namespace:  MongoDB.Driver.Core.WireProtocol.Messages
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax
public abstract IMessageEncoder GetEncoder(
	IMessageEncoderFactory encoderFactory
)

Parameters

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

Return Value

Type: IMessageEncoder
A message encoder.

Implements

IEncodableMessageGetEncoder(IMessageEncoderFactory)
See Also