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