Closed snowchenlei closed 3 months ago
I know.The problem lies in the definition of ValidationBehavior.The problem is with the generic constraints of the ValidationBehavior parameter. A common definition should be as follows:
public class ValidationBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> where TRequest : notnull
Implement IRequest, how to enter Behavior
The above code does not execute
ValidationBehavior.Handle