Esempio n. 1
0
 static EventHub()
 {
     handlers = new EhEventHandler[
         (int)EhHandlerType.NumberOfHandlerTypes] {
         EhSentinel, EhSentinel, EhSentinel, EhSentinel, EhSentinel
     };
 }
Esempio n. 2
0
 public static void AddHandler(EhHandlerType handlerType,
                               EhEventHandler handler)
 {
     handlers[(int)handlerType] = handler;
 }