public StatementResult Build() { return(new StatementResult( _keys, new RecordSet(NextRecord), () => _summaryBuilder.Build())); }
/// <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()); }
public IResultSummary Build() { return(_summaryBuilder.Build()); }
public StatementResult Build() { return(new StatementResult( _keys, new RecordSet(_records, () => !HasMoreRecords), () => _summaryBuilder.Build())); }