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