Class CommandResponseMessage
- Namespace
- MongoDB.Driver.Core.WireProtocol.Messages
- Assembly
- MongoDB.Driver.Core.dll
Represents a command response message.
public class CommandResponseMessage : ResponseMessage, IEncodableMessage
- Inheritance
-
CommandResponseMessage
- Implements
- Inherited Members
Constructors
CommandResponseMessage(CommandMessage)
Initializes a new instance of the CommandRequestMessage class.
public CommandResponseMessage(CommandMessage wrappedMessage)
Parameters
wrappedMessage
CommandMessageThe wrapped message.
- See Also
Properties
MessageType
Gets the type of the message.
public override MongoDBMessageType MessageType { get; }
Property Value
- 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
IMessageEncoderFactoryThe encoder factory.
Returns
- IMessageEncoder
A message encoder.
- See Also