Beispiel #1
0
        private MongoReplyMessage <TDocument> GetReply(
            MongoConnection connection,
            MongoRequestMessage message
            )
        {
            connection.SendMessage(message, SafeMode.False); // safemode doesn't apply to queries
            var reply = connection.ReceiveMessage <TDocument>();

            openCursorId = reply.CursorId;
            return(reply);
        }
Beispiel #2
0
        private MongoReplyMessage <TDocument> GetReply(
            MongoRequestMessage message
            )
        {
            connection.SendMessage(message, SafeMode.False); // safemode doesn't apply to queries
            var reply = connection.ReceiveMessage <TDocument>(cursor.Server);

            openCursorId = reply.CursorId;
            if (openCursorId == 0)
            {
                ReleaseConnection();
            }
            return(reply);
        }