예제 #1
0
        /*
         *      Disque API gateway
         */
        public DisquuunInput AddJob(string queueName, byte[] data, int timeout = 0, params object[] args)
        {
            var bytes = DisquuunAPI.AddJob(queueName, data, timeout, args);

            var socket = ChooseAvailableSocket();

            return(new DisquuunInput(DisqueCommand.ADDJOB, bytes, socket));
        }