コード例 #1
0
ファイル: Program.cs プロジェクト: tonykaralis/marten
 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
     });
 }
コード例 #2
0
 public SpecialUsages(BEvent @event)
 {
     B = 1;
 }
コード例 #3
0
 public void Apply(BEvent _)
 {
     BCount++;
 }
コード例 #4
0
 public AEvent Create(BEvent travel, IEvent e)
 {
     return(new AEvent());
 }
コード例 #5
0
 public void Apply(BEvent @event, MyAggregate aggregate)
 {
     aggregate.BCount++;
 }