Ejemplo n.º 1
0
        public void Cleanup()
        {
            List <string> list = new List <string> ();

            foreach (KeyValuePair <string, Delegate> current in Routers)
            {
                bool flag = false;
                foreach (string current2 in PermanentEvents)
                {
                    if (current.Key == current2)
                    {
                        flag = true;
                        break;
                    }
                }
                if (!flag)
                {
                    list.Add(current.Key);
                }
            }
            foreach (string current2 in list)
            {
                Routers.Remove(current2);
            }
        }
Ejemplo n.º 2
0
 public void OnListenerRemoved(string eventType)
 {
     if (Routers[eventType] == null)
     {
         Routers.Remove(eventType);
     }
 }