jonsequitur / Its.Cqrs

A set of libraries for CQRS and Event Sourcing, with a Domain-Driven Design flavor.
Other
76 stars 21 forks source link

Fix issue 182 #185

Closed jonsequitur closed 7 years ago

jonsequitur commented 7 years ago

This fixes issue #182 by enforcing that TargetId or AggregateId are passed to the constructor of ConstructorCommand<T>, and then enforcing in the constructor of ScheduledCommand<T> that ScheduledCommand<T>.TargetId / AggregateId matches ScheduledCommand<T>.TargetId / AggregateId.

This isn't ideal but a cleaner approach will have to wait until strings become the default for identifiers for event sourced aggregates (#26).