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(); }
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(); } }