Table of Contents

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 MongoDBMessage

The original message.

originalMessageStream BsonStream

The original message stream.

compressorType CompressorType

The compressor type.

Properties

CompressorType

The compressor type.

public CompressorType CompressorType { get; }

Property Value

CompressorType

MessageType

Gets the type of the message.

public override MongoDBMessageType MessageType { get; }

Property Value

MongoDBMessageType

OriginalMessage

The original message.

public MongoDBMessage OriginalMessage { get; }

Property Value

MongoDBMessage

OriginalMessageStream

The uncompressed original message stream.

public BsonStream OriginalMessageStream { get; }

Property Value

BsonStream

Methods

GetEncoder(IMessageEncoderFactory)

Gets an encoder for the message from an encoder factory.

public override IMessageEncoder GetEncoder(IMessageEncoderFactory encoderFactory)

Parameters

encoderFactory IMessageEncoderFactory

The encoder factory.

Returns

IMessageEncoder

A message encoder.