Class CompressedMessage
- Namespace
- MongoDB.Driver.Core.WireProtocol.Messages
- Assembly
- MongoDB.Driver.Core.dll
Represents a compressed message.
public class CompressedMessage : MongoDBMessage, IEncodableMessage
- Inheritance
-
CompressedMessage
- Implements
- Inherited Members
Constructors
CompressedMessage(MongoDBMessage, BsonStream, CompressorType)
Initializes a new instance of the CompressedMessage class.
public CompressedMessage(MongoDBMessage originalMessage, BsonStream originalMessageStream, CompressorType compressorType)
Parameters
originalMessage
MongoDBMessageThe original message.
originalMessageStream
BsonStreamThe original message stream.
compressorType
CompressorTypeThe compressor type.
Properties
CompressorType
The compressor type.
public CompressorType CompressorType { get; }
Property Value
MessageType
Gets the type of the message.
public override MongoDBMessageType MessageType { get; }
Property Value
OriginalMessage
The original message.
public MongoDBMessage OriginalMessage { get; }
Property Value
OriginalMessageStream
The uncompressed original message stream.
public BsonStream OriginalMessageStream { get; }
Property Value
Methods
GetEncoder(IMessageEncoderFactory)
Gets an encoder for the message from an encoder factory.
public override IMessageEncoder GetEncoder(IMessageEncoderFactory encoderFactory)
Parameters
encoderFactory
IMessageEncoderFactoryThe encoder factory.
Returns
- IMessageEncoder
A message encoder.