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
Uh oh!
There was an error while loading. Please reload this page.
-
IPipelineBehaviorcannot be used withIRequest(notIRequest<out TResponse>), becauseIPipelineBehaviorrequiresTResponceas well asTRequest, butIRequestdoes not have a return value. Is it possible to add a pipeline behavior forIRequest?https://github.com/jbogard/MediatR/blob/c295291c4e8105d11a453004b42609cbf490c1cf/src/MediatR/IPipelineBehavior.cs#L20-L30
https://github.com/jbogard/MediatR/blob/c295291c4e8105d11a453004b42609cbf490c1cf/src/MediatR.Contracts/IRequest.cs#L6-L17
Beta Was this translation helpful? Give feedback.
All reactions