From 804ff9e5512fb3a9d82ef3a6fce69a949e8f06f9 Mon Sep 17 00:00:00 2001 From: Smit Patel Date: Wed, 8 Sep 2021 11:55:07 -0700 Subject: [PATCH] Query: Use cancellationToken appropriately (#25918) --- ...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,