IPipelineBehavior doesn't work with IRequest #968
Replies: 1 comment 1 reply
-
Pipeline behaviors DO work with void requests, and my unit tests show it. I suspect you may not have adjusted your generic constraints on one of the recent releases, you may want to re-check that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
IPipelineBehavior
cannot be used withIRequest
(notIRequest<out TResponse>
), becauseIPipelineBehavior
requiresTResponce
as well asTRequest
, butIRequest
does not have a return value. Is it possible to add a pipeline behavior forIRequest
?MediatR/src/MediatR/IPipelineBehavior.cs
Lines 20 to 30 in c295291
MediatR/src/MediatR.Contracts/IRequest.cs
Lines 6 to 17 in c295291
Beta Was this translation helpful? Give feedback.
All reactions