コード例 #1
0
ファイル: StreamOperation.cs プロジェクト: radtek/ravendb
        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);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        public IEnumerator<BlittableJsonReaderObject> SetResult(StreamResult response)
        {
            var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isTimeSeriesStream: false, isAsync: false, _statistics);
            enumerator.Initialize();

            return enumerator;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        internal YieldStreamResults SetResultForTimeSeries(StreamResult response)
        {
            var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isTimeSeriesStream: true, isAsync: false, _statistics);
            enumerator.Initialize();

            return enumerator;
        }
コード例 #6
0
 protected StreamEnumerator(HttpJsonRequest request, Stream stream)
 {
     this.enumerator = new YieldStreamResults(request, stream);
 }