/// <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(); }
/// <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(); }