Esempio n. 1
0
 // Hydrating
 internal void Hydrate(IEnumerable <Event> events)
 {
     foreach (var @event in events)
     {
         aggregate.ApplyEvent(@event.Replay());
     }
     aggregate.ClearPendingEvents();
     LastCommittedVersion = CurrentVersion;
 }