我正在使用CqrsLite作为CQRS风格的项目。具体Repository实现的Save方法看起来像这样(省略了不相关的行)。 public void Save<T>(T aggregate, int? expectedVersion = null) where T : AggregateRoot
{
if (expectedVersion != null && _event
我是CQRS的新成员,想学习模式的工作顺序。我的命令处理程序和命令是这样的: public interface ICommandHandler<in TCommand> where TCommand : ICommand
{
void Handle(TCommand command);
}
当我cerate一个工作一个命令处理程序工作。 public class CreateWo
我的命令类如下: public class RegisterToConference : ICommand
{
public RegisterToConference()
{
this.Id = Guid.NewGuid();
this.Seats = new Collection<SeatQuantity>();
}