Enhance query handling and diagnostics
Improved robustness and error handling in `BodyQueryBehavior` and `HeaderQueryBehavior` by adding null checks, logging, and introducing the `IsReturnedNoData` flag to track query results. Updated `RecActionDto` to include the new flag for better state management. Enhanced HTTP request construction in `InvokeRecActionCommand` to handle `Body` and `Headers` more reliably and log potential issues with unexecuted behaviors. These changes improve resilience, traceability, and diagnostics across the application.
This commit is contained in:
@@ -9,7 +9,7 @@ public class BodyQueryBehavior<TRecAction>(IRecDbContext dbContext) : IPipelineB
|
||||
where TRecAction : RecActionDto
|
||||
{
|
||||
public async Task<Unit> Handle(TRecAction action, RequestHandlerDelegate<Unit> next, CancellationToken cancel)
|
||||
{
|
||||
{
|
||||
if (action.BodyQuery is null)
|
||||
return await next(cancel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user