Update HeaderQueryBehavior to use two generic parameters

Updated the `AddOpenBehaviors` method call in `DependencyInjection.cs` to reflect changes in the `HeaderQueryBehavior` class, which now requires two generic type parameters instead of one. This ensures compatibility with the updated class definition.
This commit is contained in:
tekh 2025-12-03 10:16:57 +01:00
parent 4b0208ca56
commit 047f8fc258

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;
});