Router

Space.eventSourcing.Router

Receives commands, initializes new aggregates or loads them from the repository, then passes the command in for handling

Space.eventSourcing.Router.define('CustomerRouter',{
  
  Aggregate: Customer,
  
  InitializingCommand: CreateCustomer
  
  RouteCommands: []
  
});