Hello,
It’s easy to put a command handler on the constructor of the aggregate to create new instances of your aggregate.
@CommandHandler
public AggregateXXX(CreateCommand command)
{ … }
But how to prevent the same aggregate is created twice (e.g. createcommand with same ID) ?
Kind regards,
Koen