Example #1
0
 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
     });
 }
Example #2
0
 public SpecialUsages(BEvent @event)
 {
     B = 1;
 }
Example #3
0
 public void Apply(BEvent _)
 {
     BCount++;
 }
Example #4
0
 public AEvent Create(BEvent travel, IEvent e)
 {
     return(new AEvent());
 }
 public void Apply(BEvent @event, MyAggregate aggregate)
 {
     aggregate.BCount++;
 }