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).
This fixes issue #182 by enforcing that
TargetId
orAggregateId
are passed to the constructor ofConstructorCommand<T>
, and then enforcing in the constructor ofScheduledCommand<T>
thatScheduledCommand<T>.TargetId
/AggregateId
matchesScheduledCommand<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).