Esempio n. 1
0
 public static SlackSocket AddAllEventHandlers(this SlackSocket socket)
 {
     foreach (var assy in AppDomain.CurrentDomain.GetAssemblies())
     {
         socket.AddEventHandlerFromAssembly(assy);
     }
     return(socket);
 }
Esempio n. 2
0
 public static SlackSocket AddBuiltinEventHandlers(this SlackSocket socket)
 {
     return(socket.AddEventHandlerFromAssembly(typeof(SlackSocket).Assembly));
 }
Esempio n. 3
0
 public static SlackSocket AddEventHandlersFromAssembly <T>(this SlackSocket socket)
 {
     return(socket.AddEventHandlerFromAssembly(typeof(T).Assembly));
 }