Replies: 1 comment
-
Stream requests don't use the request pre/post processor stuff. That's only regular requests. Stream requests only have the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I've found a bit strange (from my point of view) behaviour of MediatR: for StreamRequests the IRequestPreProcessor is called only on stream iteration begin, not before its creation (is it called PREprocessor?)
Is that meant to be this way? Here it is stated to be
runs before handler
. But streaming case is a bit special because it consists of two calls - stream creation and iteration. So current realisation makes impossible to do command validation behaviour for stream commands with async processing.btw: IStreamPipelineBehavior acts exactly same - it is invoked only on iteration start, not before.
Beta Was this translation helpful? Give feedback.
All reactions