Skip to content

AggregateRoots now take constructor parameters

Pre-release
Pre-release
Compare
Choose a tag to compare
@BlairAllegroTech BlairAllegroTech released this 27 Mar 22:56
· 67 commits to main since this release

AggregateRoots now take a payload as a set of constructor parameters having at least an id and more parameters as needed.
AggregateRoot creation cannot happen now until the first event is processed assumed to be a device creation event.

With the introduction of snapshots there are now 2 types of device creation events:

  • Normal AggregateRoot creation, from event
  • AggregateRoot creation from a snapshot event