Refactor query behaviors for execution tracking
Refactored `BodyQueryBehavior` and `HeaderQueryBehavior` to introduce explicit execution tracking with new properties (`BodyQueryExecuted` and `HeaderQueryExecuted`). Updated `RecActionDto` to include computed properties (`IsBodyQueryReturnedNoData` and `IsHeaderQueryReturnedNoData`) for clearer null-checking logic. Removed the `IsReturnedNoData` tuple for simplicity. Updated `InvokeRecActionCommandHandler` to use the new `IsBodyQueryReturnedNoData` property. Improved logging for better diagnostics and clarified handling of null results in query behaviors.
This commit is contained in:
@@ -45,7 +45,7 @@ public class InvokeRecActionCommandHandler(
|
||||
using var reqBody = new StringContent(request.Body);
|
||||
httpReq.Content = reqBody;
|
||||
}
|
||||
else if(request.BodyQuery is not null && !request.IsReturnedNoData.BodyQuery)
|
||||
else if(request.BodyQuery is not null && !request.IsBodyQueryReturnedNoData)
|
||||
{
|
||||
logger?.LogWarning(
|
||||
"Although BodyQuery returns null, the IsReturnedNoData variable has not been set to TRUE. " +
|
||||
|
||||
Reference in New Issue
Block a user