public void RemoveRollbackEvent(RollbackTransitionEvent rte) { if (m_rollbackHandlers.ContainsValue(rte)) { m_rollbackHandlers.Remove(m_commitHandlers.GetKey(m_commitHandlers.IndexOfValue(rte))); } }
public void AddRollbackEvent(RollbackTransitionEvent rte, double priority) { if (!m_rollbackHandlers.ContainsValue(rte)) { m_rollbackHandlers.Add(priority, rte); } }
public void DoRollback(IModel model, object userData, IList failureReasons) { for (int i = 0; i < m_rollbackHandlers.Count; i++) { RollbackTransitionEvent rte = (RollbackTransitionEvent)m_rollbackHandlers.GetByIndex(i); rte(model, userData, failureReasons); } }
public new void RemoveRollbackEvent(RollbackTransitionEvent rte) { Puke(); }
public new void AddRollbackEvent(RollbackTransitionEvent rte, double priority) { Puke(); }