Constructor ReplyMessage
- Namespace
- MongoDB.Driver.Core.WireProtocol.Messages
- Assembly
- MongoDB.Driver.Core.dll
ReplyMessage(bool, long, bool, List<TDocument>, int, bool, BsonDocument, int, int, IBsonSerializer<TDocument>, int)
Initializes a new instance of the ReplyMessage<TDocument> class.
public ReplyMessage(bool awaitCapable, long cursorId, bool cursorNotFound, List<TDocument> documents, int numberReturned, bool queryFailure, BsonDocument queryFailureDocument, int requestId, int responseTo, IBsonSerializer<TDocument> serializer, int startingFrom)Parameters
- awaitCapablebool
- if set to - truethe server is await capable.
- cursorIdlong
- The cursor identifier. 
- cursorNotFoundbool
- if set to - truethe cursor was not found.
- documentsList<TDocument>
- The documents. 
- numberReturnedint
- The number of documents returned. 
- queryFailurebool
- if set to - truethe query failed.
- queryFailureDocumentBsonDocument
- The query failure document. 
- requestIdint
- The request identifier. 
- responseToint
- The identifier of the message this is a response to. 
- serializerIBsonSerializer<TDocument>
- The serializer. 
- startingFromint
- The position of the first document in this batch in the overall result.