Skip to content

[Messenger] Add middleware that throws exception if the handler returned data #27839

Closed
@Nyholm

Description

@Nyholm

To enforce that my command bus handlers do not return any data I would like a middleware that throws an exception.

Sure this could be solved with "Just write your handlers correctly", but I want to be sure that my CQRS rules are enforced.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions