Ejemplo n.º 1
0
        /// <summary>
        /// Executes the actions in the rollback stack and does the same for the progenitor state
        /// </summary>
        public void Rollback()
        {
            foreach (Action rbAction in RollbackActions)
            {
                rbAction();
            }

            if (Progenitor != null)
            {
                Progenitor.Rollback();
            }
        }
Ejemplo n.º 2
0
 internal void Rollback()
 {
     _currentState.Rollback();
 }