示例#1
0
 public void Restore(TimeoutMemento memento)
 {
     if (memento != null)
     {
         memento.CopyTo(this.timeouts);
     }
 }
示例#2
0
        public static TimeoutHydratable Restore(string key, TimeoutMemento memento)
        {
            var hydratable = new TimeoutHydratable();

            hydratable.aggregate.Restore(memento);
            return(hydratable);
        }