Пример #1
0
 /// <summary>
 /// this.DirectCommandBus.Publish(command);
 /// this.DirectCommandBus.Commit();
 /// </summary>
 /// <param name="command"></param>
 public void Handle(IAnycmdCommand command)
 {
     this.CommandBus.Publish(command);
     this.CommandBus.Commit();
 }
Пример #2
0
 /// <summary>
 /// 处理命令,发布并提交命令。
 /// </summary>
 /// <param name="acDomain"></param>
 /// <param name="command"></param>
 public static void Handle(this IAcDomain acDomain, IAnycmdCommand command)
 {
     acDomain.CommandBus.Publish(command);
     acDomain.CommandBus.Commit();
 }