My command:
public class Command : IRequest { ... }
My handler:
public class CommandHandler : IAsyncRequestHandler<Command> { ... }
My pipeline registration (not using open generics):
services.AddTransient<IPipelineBehavior<Command>, MyBehavior<Command>>();
However this doesn't work: Using the generic type 'IPipelineBehavior<TRequest, TResponse>' requires 2 type arguments. And same error for MyBehavior.
The docs mention the Unit struct. How do I use it?