Class ResponseMessage
- Namespace
- MongoDB.Driver.Core.WireProtocol.Messages
- Assembly
- MongoDB.Driver.Core.dll
Represents a base class for response messages.
public abstract class ResponseMessage : MongoDBMessage, IEncodableMessage
- Inheritance
-
ResponseMessage
- Implements
- Derived
- Inherited Members
Constructors
ResponseMessage(int, int)
Initializes a new instance of the ResponseMessage class.
protected ResponseMessage(int requestId, int responseTo)
Parameters
requestId
intThe request identifier.
responseTo
intThe identifier of the message this is a response to.
Properties
MessageType
Gets the type of the message.
public override MongoDBMessageType MessageType { get; }
Property Value
RequestId
Gets the request identifier.
public int RequestId { get; }
Property Value
ResponseTo
Gets the identifier of the message this is a response to.
public int ResponseTo { get; }