Esempio n. 1
0
 public static void AddEvent(string name, PubSubRouterEventHandler <T> handler)
 {
     if (!events.ContainsKey(name))
     {
         events.Add(name, handler);
     }
 }
Esempio n. 2
0
 public static void RegisterEvent(string name, PubSubRouterEventHandler <T> handler)
 {
     if (events.ContainsKey(name))
     {
         events[name] += handler;
     }
 }