Пример #1
0
 public StatementResult Build()
 {
     return(new StatementResult(
                _keys,
                new RecordSet(NextRecord),
                () => _summaryBuilder.Build()));
 }
Пример #2
0
 /// <summary>
 /// Buffer all records left unread into memory and return the summary
 /// </summary>
 /// <returns>The final summary</returns>
 private IResultSummary Summary()
 {
     // read all records into memory
     while (_hasMoreRecords)
     {
         _receiveOneAction.Invoke();
     }
     // return the summary
     return(_summaryBuilder.Build());
 }
        public async Task <IResultSummary> SummaryAsync()
        {
            while (CurrentState < State.Completed)
            {
                await _advanceFunction().ConfigureAwait(false);
            }

            _pendingError?.EnsureThrown();

            return(_summaryBuilder.Build());
        }
Пример #4
0
 public IResultSummary Build()
 {
     return(_summaryBuilder.Build());
 }
Пример #5
0
 public StatementResult Build()
 {
     return(new StatementResult(
                _keys,
                new RecordSet(_records, () => !HasMoreRecords), () => _summaryBuilder.Build()));
 }