Replace command dispatch Payload with Pipeline to extend middleware behaviour
#587
slashdotdash
started this conversation in
Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
The
Commanded.Commands.Dispatcher.Payloadstruct includes fields such as the Commanded application, configured middleware, and dispatch timeout which aren't present (or cannot be modified) in theCommanded.Middleware.Pipelinestruct. However, middleware can only access and modify fields contained within theCommanded.Middleware.Pipeline.Due to the duplication of fields and to ensure that middleware can have full control over command dispatch the
Commanded.Commands.Dispatcher.Payloadstruct should be removed. Extending theCommanded.Middleware.Pipelinemodule with helper functions to build the struct would be useful for consumers (and internally).Beta Was this translation helpful? Give feedback.
All reactions