public async Task <IAsyncEnumerator <BlittableJsonReaderObject> > SetResultAsync(StreamResult response) { var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isAsync: true, _statistics); await enumerator.InitializeAsync().ConfigureAwait(false); return(enumerator); }
public async Task<YieldStreamResults> SetResultAsync(StreamResult response, CancellationToken token = default) { var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isTimeSeriesStream: false, isAsync: true, _statistics, token); await enumerator.InitializeAsync().ConfigureAwait(false); return enumerator; }
public IEnumerator<BlittableJsonReaderObject> SetResult(StreamResult response) { var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isTimeSeriesStream: false, isAsync: false, _statistics); enumerator.Initialize(); return enumerator; }
internal async Task<YieldStreamResults> SetResultForTimeSeriesAsync(StreamResult response) { var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isTimeSeriesStream: true, isAsync: true, _statistics); await enumerator.InitializeAsync().ConfigureAwait(false); return enumerator; }
internal YieldStreamResults SetResultForTimeSeries(StreamResult response) { var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isTimeSeriesStream: true, isAsync: false, _statistics); enumerator.Initialize(); return enumerator; }
protected StreamEnumerator(HttpJsonRequest request, Stream stream) { this.enumerator = new YieldStreamResults(request, stream); }