Skip to content

Can a command fire more than one event?  #139

@tommiii

Description

@tommiii

Can a command fire more than one event? Is that supported by the library? I've noticed a missmatch in the revision field when I fire 2 events from the same command, like if one revision is actually skipped.

e.g.:
command 'openTask' could fire two events 'taskOpened' and 'urgentTaskOpened' if the task is urgent.
If the aggregate 'task' has revision 'n' in this scenario, the 2 events will have revision 'n+2' into the eventstore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions