You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the error I get if I try to setOrder of pipeline behaviors in mediator:
Type 'typeof ValidationBehaviour' is not assignable to type 'PipelineBehaviorClass'.
Types of construct signatures are incompatible.
Type 'new (validationController: ValidationController) => ValidationBehaviour' is not assignable to type 'new (...args: unknown[]) => PipelineBehavior'.
Types of parameters 'validationController' and 'args' are incompatible.
Type 'unknown' is not assignable to type 'ValidationController'.ts(2322)
I belive this is very possible in c# Mediatr implementation.
The text was updated successfully, but these errors were encountered:
@m4ss1m0g it would be great if we could do this. In my opinion it's must have feature because you will definitely need to inject something into pipeline behavior (validation, logger, some other controller, etc.).
Hi,
I want to DI something into my pipeline behavior but I am not able to since pipeline behavior constructor takes "...args: unknown[]" as arguments.
this is what I want to do:
This is the error I get if I try to setOrder of pipeline behaviors in mediator:
I belive this is very possible in c# Mediatr implementation.
The text was updated successfully, but these errors were encountered: