public void AddActionHook(string actionName, IActionHook hook) { if (!_actionHooks.ContainsKey(actionName)) { _actionHooks[actionName] = new List <IActionHook>(); } _actionHooks[actionName].Add(hook); }
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); } } } } }
public void AddActionHook(string actionName, IActionHook hook) { if(!_actionHooks.ContainsKey(actionName)) { _actionHooks[actionName] = new List<IActionHook>(); } _actionHooks[actionName].Add(hook); }