Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public bool Equals(HookNode other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Hook, Hook));
 }
Esempio n. 4
0
 public void VisitHookNode(HookNode hookNode)
 {
     EnqueueNode(hookNode);
 }
Esempio n. 5
0
 public bool Equals(HookNode other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Hook, Hook);
 }
Esempio n. 6
0
 public void VisitHookNode(HookNode hookNode)
 {
     CollectedHooks.Add(hookNode.Hook);
 }
Esempio n. 7
0
 public void VisitHookNode(HookNode hookNode)
 {
     _nodeWasHandled = _hookHandler(hookNode);
 }