Beispiel #1
0
 public void LoadFromHistory(IEnumerable <object> events)
 {
     foreach (var @event in events)
     {
         AggregateUpdater.Update(this, @event);
         Version++;
     }
 }
Beispiel #2
0
 protected void Apply(object @event)
 {
     _uncommittedEvents.Add(@event);
     AggregateUpdater.Update(this, @event);
     Version++;
 }