コード例 #1
0
ファイル: GraphQueryRunner.cs プロジェクト: yitaom2/ravendb
        public override async Task ExecuteStreamQuery(IndexQueryServerSide query, DocumentsOperationContext documentsContext, HttpResponse response, IStreamQueryResultWriter <Document> writer, OperationCancelToken token)
        {
            var result = new StreamDocumentQueryResult(response, writer, token)
            {
                IndexName = Constants.Documents.Indexing.DummyGraphIndexName
            };

            result = await ExecuteQuery(result, query, documentsContext, null, token);

            result.Flush();
        }
コード例 #2
0
        public override async Task ExecuteStreamQuery(IndexQueryServerSide query, QueryOperationContext queryContext, HttpResponse response, IStreamQueryResultWriter <Document> writer, OperationCancelToken token)
        {
            using (var context = QueryOperationContext.Allocate(Database, needsServerContext: false))
            {
                var result = new StreamDocumentQueryResult(response, writer, token)
                {
                    IndexName = Constants.Documents.Indexing.DummyGraphIndexName
                };
                result = await ExecuteQuery(result, query, context, null, token);

                result.Flush();
            }
        }