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++; }