public MethodEventListener FindMethodEventListener(string @name, bool createListener)
 {
     if (!methodEventListeners.Contains(name) && createListener)
     {
         methodEventListeners.Add(name, new MethodEventListener(name));
         return((MethodEventListener)methodEventListeners[name]);
     }
     else
     {
         return((MethodEventListener)methodEventListeners[name]);
     }
 }
Ejemplo n.º 2
0
        public IDictionary Merge(Flow flow)
        {
            var dictionary = new AotDictionary();

            for (var i = 0; i < inputCount; i++)
            {
                var inputDictionary = flow.GetValue <IDictionary>(multiInputs[i]);

                var enumerator = inputDictionary.GetEnumerator();

                while (enumerator.MoveNext())
                {
                    if (!dictionary.Contains(enumerator.Key))
                    {
                        dictionary.Add(enumerator.Key, enumerator.Value);
                    }
                }
            }

            return(dictionary);
        }