From 5ef76ed7c140d22891f2ce8399f91a990698bebf Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Mon, 30 Mar 2026 09:28:38 +0100 Subject: [PATCH] Remove default value for cancellationToken in interceptor The ReaderExecutedAsync method in QueryTimingInterceptor no longer provides a default value for the cancellationToken parameter. Callers must now explicitly supply a CancellationToken when invoking this method. --- EstateReportingAPI.BusinessLogic/QueryTimingInterceptor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EstateReportingAPI.BusinessLogic/QueryTimingInterceptor.cs b/EstateReportingAPI.BusinessLogic/QueryTimingInterceptor.cs index fc76599..7c8835a 100644 --- a/EstateReportingAPI.BusinessLogic/QueryTimingInterceptor.cs +++ b/EstateReportingAPI.BusinessLogic/QueryTimingInterceptor.cs @@ -37,7 +37,7 @@ public override DbDataReader ReaderExecuted(DbCommand command, public override async ValueTask ReaderExecutedAsync(DbCommand command, CommandExecutedEventData eventData, DbDataReader result, - CancellationToken cancellationToken = new CancellationToken()) { + CancellationToken cancellationToken) { LogIfRequired(command, eventData); return result;