From 5fd65e52a3d2f3df6bb541a68a507c7c64e2b0e8 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 24 Mar 2026 13:21:40 +0100 Subject: [PATCH] Pass CancellationToken to ExecuteDynamicSqlAsync Updated PreprocessingBehavior to include the CancellationToken when calling ExecuteDynamicSqlAsync, enabling query execution to be cancelled if the operation is aborted. --- .../Common/Behaviors/Action/PreprocessingBehavior.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReC.Application/Common/Behaviors/Action/PreprocessingBehavior.cs b/src/ReC.Application/Common/Behaviors/Action/PreprocessingBehavior.cs index 7a18a59..4a20230 100644 --- a/src/ReC.Application/Common/Behaviors/Action/PreprocessingBehavior.cs +++ b/src/ReC.Application/Common/Behaviors/Action/PreprocessingBehavior.cs @@ -13,7 +13,7 @@ public class PreprocessingBehavior(IRecDbContext context, ISender sender) : IPip try { if (request.Action.PreprocessingQuery is string query) - await context.ExecuteDynamicSqlAsync(query); + await context.ExecuteDynamicSqlAsync(query, cancel); } catch (Exception ex) {