From 9e153782d59e20c6744e060953672a5f3be509e1 Mon Sep 17 00:00:00 2001 From: Smit Patel Date: Tue, 7 Sep 2021 17:42:39 -0700 Subject: [PATCH] Query: Use cancellationToken appropriately --- ...ressionVisitor.ShaperProcessingExpressionVisitor.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs b/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs index 314f2e75471..a67cdf1c8f2 100644 --- a/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs +++ b/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs @@ -1482,10 +1482,11 @@ private static async Task PopulateSplitIncludeCollectionAsync InitializeReaderAsync(tup.Item1, tup.Item2, tup.Item3, cancellationToken), - verifySucceeded: null) + verifySucceeded: null, + queryContext.CancellationToken) .ConfigureAwait(false); - async Task InitializeReaderAsync( + static async Task InitializeReaderAsync( RelationalQueryContext queryContext, RelationalCommandCache relationalCommandCache, bool detailedErrorsEnabled, @@ -1801,10 +1802,11 @@ private static async Task PopulateSplitCollectionAsync InitializeReaderAsync(tup.Item1, tup.Item2, tup.Item3, cancellationToken), - verifySucceeded: null) + verifySucceeded: null, + queryContext.CancellationToken) .ConfigureAwait(false); - async Task InitializeReaderAsync( + static async Task InitializeReaderAsync( RelationalQueryContext queryContext, RelationalCommandCache relationalCommandCache, bool detailedErrorsEnabled,