public HookNode AddHook(Hook aHook, Function aFunction) { var aHookNode = new HookNode(aHook, aFunction); //var node = Nodes.FirstOrDefault(node1 => node1 .Equals(aHookNode)); //if (node != null) return (HookNode)node; Nodes.Add(aHookNode); return aHookNode; }
public HookNode AddHook(Hook aHook, Function aFunction) { var aHookNode = new HookNode(aHook, aFunction); //var node = Nodes.FirstOrDefault(node1 => node1 .Equals(aHookNode)); //if (node != null) return (HookNode)node; Nodes.Add(aHookNode); return(aHookNode); }
public bool Equals(HookNode other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Hook, Hook)); }
public void VisitHookNode(HookNode hookNode) { EnqueueNode(hookNode); }
public bool Equals(HookNode other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.Hook, Hook); }
public void VisitHookNode(HookNode hookNode) { CollectedHooks.Add(hookNode.Hook); }
public void VisitHookNode(HookNode hookNode) { _nodeWasHandled = _hookHandler(hookNode); }