From 690dcea7a8a4e8786e3585c6bbc0e1bb6ab71a65 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 24 Mar 2026 14:41:41 +0100 Subject: [PATCH] Add PostprocessingBehavior to MediatR pipeline Registered PostprocessingBehavior for InvokeRecActionViewCommand (with bool result) in the MediatR pipeline via DependencyInjection. This ensures both preprocessing and postprocessing behaviors are executed for this command. --- src/ReC.Application/DependencyInjection.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ReC.Application/DependencyInjection.cs b/src/ReC.Application/DependencyInjection.cs index 9212b2e..b311589 100644 --- a/src/ReC.Application/DependencyInjection.cs +++ b/src/ReC.Application/DependencyInjection.cs @@ -35,6 +35,7 @@ public static class DependencyInjection cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly()); cfg.AddOpenBehaviors([typeof(BodyQueryBehavior<,>), typeof(HeaderQueryBehavior<,>)]); cfg.AddBehavior(typeof(IPipelineBehavior<,>), typeof(ValidationBehavior<,>)); + cfg.AddBehavior(typeof(IPipelineBehavior), typeof(PostprocessingBehavior)); cfg.AddBehavior(typeof(IPipelineBehavior), typeof(PreprocessingBehavior)); cfg.LicenseKey = configOpt.LuckyPennySoftwareLicenseKey; });