Ejemplo n.º 1
0
 public static void RegisterAppHandler(IAppHandler handler)
 {
     if (s_Handlers.ContainsKey(handler.HandlerName))
         s_Handlers[handler.HandlerName] = handler;
     else
     {
         ReflectedController reflected = new ReflectedController(handler.GetType());
         handler.ActionMethods = reflected.Parmses;
         s_Handlers.Add(handler.HandlerName, handler);
     }
 }
Ejemplo n.º 2
0
 public static void RegisterAppHandler(IAppHandler handler)
 {
     if (s_Handlers.ContainsKey(handler.HandlerName))
     {
         s_Handlers[handler.HandlerName] = handler;
     }
     else
     {
         ReflectedController reflected = new ReflectedController(handler.GetType());
         handler.ActionMethods = reflected.Parmses;
         s_Handlers.Add(handler.HandlerName, handler);
     }
 }