コード例 #1
0
ファイル: Bus.cs プロジェクト: regme/cqrs-introduction
 public static void Send(ICommand <IIdentity> command, Action <CommandResult> onSuccess)
 {
     aggregateFactory.Dispatch(command);
     onSuccess(new CommandResult {
         ResultType = CommandResultTypes.Success
     });
 }
コード例 #2
0
 public void Handle(ScheduleNewTask command)
 {
     aggregateFactory.Dispatch(command);
 }