public void Restore(TimeoutMemento memento) { if (memento != null) { memento.CopyTo(this.timeouts); } }
public static TimeoutHydratable Restore(string key, TimeoutMemento memento) { var hydratable = new TimeoutHydratable(); hydratable.aggregate.Restore(memento); return(hydratable); }