Skip to content

It is not possible to use the same events between two aggregates. #149

@unixslayer

Description

@unixslayer

Consider following scenario: The Cycle aggregate has the certificate issuing logic. Certificate is an aggregate with functionalities independent of Cycle, such as suspension.

It is not possible to use the same events between aggregates when the Certificate aggregate factory method is an EventHandler returning the event originally returned by Cycle. Both aggregates are saved correctly, but after saving the Certificate, the published CertificateIssued event causes a loop and triggers the factory method again for the same parameters.

Proper PR with test case will be introduced.

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