danielcirket / OpenEventSourcing

MIT License
3 stars 0 forks source link

IEventStore should allow saving non aggregate events #22

Closed danielcirket closed 4 years ago

danielcirket commented 4 years ago

Previously the IEventStore interface SaveAsync would take in an aggregate to save the events. In reality the logic for aggregates should have been part of the aggregate repository itself and just pass the events through the store rather than passing the aggregate itself. This prevented non aggregate events from being saved through the IEventStore abstraction when a consumer may not have been using the aggregate implementations (e.g. non event-sourced behaviour)

danielcirket commented 4 years ago

/cc @AtLeastITry