Ejemplo n.º 1
0
 public static void Send(ICommand <IIdentity> command, Action <CommandResult> onSuccess)
 {
     aggregateFactory.Dispatch(command);
     onSuccess(new CommandResult {
         ResultType = CommandResultTypes.Success
     });
 }
 public void Handle(ScheduleNewTask command)
 {
     aggregateFactory.Dispatch(command);
 }