public CustomerCreated(string aggregateId, string name, CreateCustomer previous)
     : base(typeof(Customer).Name, aggregateId, 0, previous)
 {
     Id   = aggregateId;
     Name = name;
 }
示例#2
0
 public async Task CreateCustomer(CreateCustomer command)
 {
     await RaiseEventAsync(new CustomerCreated(command.AggregateId, command.Name, command));
 }