public MyAggregate Apply(BEvent @event, MyAggregate aggregate)
 {
     return(new MyAggregate
     {
         ACount = aggregate.ACount,
         BCount = aggregate.BCount + 1,
         CCount = aggregate.CCount,
         DCount = aggregate.DCount,
         Id = aggregate.Id
     });
 }
 public void Apply(BEvent @event, MyAggregate aggregate)
 {
     aggregate.BCount++;
 }
예제 #3
0
 public void Apply(BEvent e) => B++;