示例#1
0
 public void RemoveRollbackEvent(RollbackTransitionEvent rte)
 {
     if (m_rollbackHandlers.ContainsValue(rte))
     {
         m_rollbackHandlers.Remove(m_commitHandlers.GetKey(m_commitHandlers.IndexOfValue(rte)));
     }
 }
示例#2
0
 public void AddRollbackEvent(RollbackTransitionEvent rte, double priority)
 {
     if (!m_rollbackHandlers.ContainsValue(rte))
     {
         m_rollbackHandlers.Add(priority, rte);
     }
 }
示例#3
0
 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);
     }
 }
示例#4
0
 public new void RemoveRollbackEvent(RollbackTransitionEvent rte)
 {
     Puke();
 }
示例#5
0
 public new void AddRollbackEvent(RollbackTransitionEvent rte, double priority)
 {
     Puke();
 }