protected void Map <TCommand>(Expression <Func <TCommand, Guid> > idLocator, Func <TCommand, TAggregate> commandExecutor) where TCommand : ICommand { Map <TCommand>(AggregateCommandHandler <TAggregate> .New(idLocator, commandExecutor, _unityContainer)); }
private void Map <TCommand>(AggregateCommandHandler <TAggregate> handler) { _commandHandlers[typeof(TCommand)] = handler; }