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); }
public static SlackSocket AddEventHandler <T>(this SlackSocket socket) { return(socket.AddEventHandler(typeof(T))); }