Update BodyQueryBehavior to use two-type parameters

Modified the `AddOpenBehaviors` method in the `DependencyInjection` class to update `BodyQueryBehavior<>` to its two-type parameter version, `BodyQueryBehavior<,>`. The `HeaderQueryBehavior<>` remains unchanged.
This commit is contained in:
tekh 2025-12-03 10:12:56 +01:00
parent 3998c9ce0b
commit 0e62011f92

View File

@ -26,7 +26,7 @@ public static class DependencyInjection
services.AddMediatR(cfg =>
{
cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly());
cfg.AddOpenBehaviors([typeof(BodyQueryBehavior<>), typeof(HeaderQueryBehavior<>)]);
cfg.AddOpenBehaviors([typeof(BodyQueryBehavior<,>), typeof(HeaderQueryBehavior<>)]);
cfg.LicenseKey = configOpt.LuckyPennySoftwareLicenseKey;
});