Example #1
0
        public ClientResult PutToQueue <T>(T item)
        {
            var res = new ClientResult();

            res.Type = "queue";
            var sitem = SharedUtils.SerializeToBytes(item);

            sitem = SharedUtils.Compress(sitem);
            if (sitem.Length > 1000000)
            {
                throw new LinqDbException("Linqdb: item too big for a queue");
            }
            res.QueueData = sitem;
            return(res);
        }