DomainBlocks / domain-blocks

A suite of libraries to assist with domain-driven design when using event sourcing
MIT License
4 stars 1 forks source link

Simplify command dispatching #58

Closed daniel-smith closed 2 years ago

daniel-smith commented 2 years ago

There isn't a need for commands to have the same routing wire up as events. This can be simplified with something like:

loadedAggregate.ExecuteCommand(agg => agg.Execute(command);