private void LoadSnapShotIfExists(Guid id, IOrginator aggregateRoot) { var snapShot = _domainEventStorage.GetSnapShot(id); if (snapShot == null) { return; } aggregateRoot.SetMemento(snapShot.Memento); }
public Caretaker(IOrginator originator) { _originator = originator; }