コード例 #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);
        }