예제 #1
0
 public void action_request_to <T>(T business_case) where T : IBusinessRequest
 {
     _command_handler_registery.find_handler_for(business_case).Invoke(business_case);
 }
예제 #2
0
 public void send <TCommand>(TCommand command) where TCommand : ICommand
 {
     _command_handler_registry.find_handler_for(command).handle(command);
 }