예제 #1
0
 public void AddActionHook(string actionName, IActionHook hook)
 {
     if (!_actionHooks.ContainsKey(actionName))
     {
         _actionHooks[actionName] = new List <IActionHook>();
     }
     _actionHooks[actionName].Add(hook);
 }
예제 #2
0
 private void OnCommandObjComplete(IActionHook obj)
 {
     if (!Complete)
     {
         var notComplete = Array.FindAll <IActionHook>(hooks, x => (x as IActionHook).QueueID == obj.QueueID && !x.Complete);
         if (notComplete.Length == 0)
         {
             if (!ExecuteAStep(isForceAuto))
             {
                 OnEndExecute();
                 if (!actionObj.Complete)
                 {
                     actionObj.OnEndExecute(false);
                 }
             }
         }
     }
 }
예제 #3
0
 public void AddActionHook(string actionName, IActionHook hook)
 {
     if(!_actionHooks.ContainsKey(actionName))
     {
         _actionHooks[actionName] = new List<IActionHook>();
     }
     _actionHooks[actionName].Add(hook);
 }