From 2883cf9be42062b9531958e127989eaf5a5853ca Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 24 Mar 2026 14:15:01 +0100 Subject: [PATCH] Add PreprocessingBehavior for InvokeRecActionViewCommand Register PreprocessingBehavior in the MediatR pipeline specifically for InvokeRecActionViewCommand. Update using directives to reflect the shift from Procedures to Commands and from Common.Behaviors to Common.Behaviors.Action. --- src/ReC.Application/DependencyInjection.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ReC.Application/DependencyInjection.cs b/src/ReC.Application/DependencyInjection.cs index dae3761..9212b2e 100644 --- a/src/ReC.Application/DependencyInjection.cs +++ b/src/ReC.Application/DependencyInjection.cs @@ -2,11 +2,11 @@ using MediatR; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; using ReC.Application.Common.Behaviors; +using ReC.Application.Common.Behaviors.Action; using ReC.Application.Common.Constants; using ReC.Application.Common.Options; -using ReC.Application.Common.Procedures; +using ReC.Application.RecActions.Commands; using System.Reflection; namespace ReC.Application; @@ -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(PreprocessingBehavior)); cfg.LicenseKey = configOpt.LuckyPennySoftwareLicenseKey; });