Table of Contents

Class CommandRequestMessage

Namespace
MongoDB.Driver.Core.WireProtocol.Messages
Assembly
MongoDB.Driver.Core.dll

Represents a command request message.

public class CommandRequestMessage : RequestMessage, IEncodableMessage
Inheritance
CommandRequestMessage
Implements
Inherited Members

Constructors

CommandRequestMessage(CommandMessage, Func<bool>)

Initializes a new instance of the CommandRequestMessage class.

public CommandRequestMessage(CommandMessage wrappedMessage, Func<bool> shouldBeSent)

Parameters

wrappedMessage CommandMessage

The wrapped message.

shouldBeSent Func<bool>

The should be sent.

See Also

Properties

MayBeCompressed

Gets the flag whether the message may be compressed or not.

public override bool MayBeCompressed { get; }

Property Value

bool
See Also

MessageType

Gets the type of the message.

public override MongoDBMessageType MessageType { get; }

Property Value

MongoDBMessageType
See Also

WrappedMessage

Gets the wrapped message.

public CommandMessage WrappedMessage { get; }

Property Value

CommandMessage

The wrapped message.

See Also

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.

See Also

See Also