Esempio n. 1
0
 public void AddEvent(EventInfo eventInfo)
 {
     try
     {
         bindingManager.CollectDelegate(eventInfo.EventHandlerType);
         events.Add(eventInfo.Name, new EventBindingInfo(type, eventInfo));
         bindingManager.Info("[AddEvent] {0}.{1}", type, eventInfo.Name);
     }
     catch (Exception exception)
     {
         bindingManager.Error("AddEvent failed {0} @ {1}: {2}", eventInfo, type, exception.Message);
     }
 }