Exemple #1
0
 public static SlackSocket AddEventHandlerFromAssembly(this SlackSocket socket, Assembly assy)
 {
     if (assy.GlobalAssemblyCache)
     {
         return(socket);
     }
     foreach (var t in assy.GetTypes())
     {
         socket.AddEventHandler(t);
     }
     return(socket);
 }
Exemple #2
0
 public static SlackSocket AddEventHandler <T>(this SlackSocket socket)
 {
     return(socket.AddEventHandler(typeof(T)));
 }