// methods private Task <CursorBatch <TDocument> > ExecuteGetMoreProtocolAsync(IChannelHandle channel, CancellationToken cancellationToken) { return(channel.GetMoreAsync <TDocument>( _collectionNamespace, _query, _cursorId, _batchSize, _serializer, _messageEncoderSettings, cancellationToken)); }
// methods private Task <CursorBatch <TDocument> > ExecuteGetMoreProtocolAsync(IChannelHandle channel, CancellationToken cancellationToken) { var numberToReturn = _batchSize; if (_limit != 0) { numberToReturn = Math.Abs(_limit) - _count; if (_batchSize != 0 && numberToReturn > _batchSize) { numberToReturn = _batchSize; } } return(channel.GetMoreAsync <TDocument>( _collectionNamespace, _query, _cursorId, numberToReturn, _serializer, _messageEncoderSettings, cancellationToken)); }