private Task ConsumeAsync()
        {
            ServerInfo server = RabbitMQConfig.ServerInfoList[3];
            var        task   = EasyNetQHelper.ReceiveAsyn <IList <DataObj> >(server.Code, x => PrintList(x));

            return(task);
        }
        public void TestReceiveList()
        {
            ServerInfo server = RabbitMQConfig.ServerInfoList[1];

            EasyNetQHelper.ReceiveAsyn <IList <DataObj> >(server.Code, x => PrintList(x));

            Thread.Sleep(1000 * 60 * 10);
        }