示例#1
0
 private string SerializeItem(IQueueItem item)
 {
     if (item == null)
     {
         return(null);
     }
     return(item.Serialize());
 }
示例#2
0
        public string Dequeue()
        {
            IQueueItem item = QueueManager[m_QueueName].Dequeue();

            if (item == null)
            {
                return(null);
            }
            return(item.Serialize());
        }
示例#3
0
        //private McQueue this[string queueName]
        //{
        //    get
        //    {
        //        if (!_QueueHandler.ContainsKey(queueName))
        //        {
        //            throw new ArgumentException(queueName + " Not exists");
        //        }
        //        return _QueueHandler[queueName];
        //    }
        //}

        public string Dequeue(string queueName)
        {
            IQueueItem item = RemoteQueueManager.Queue(queueName).Dequeue();

            if (item == null)
            {
                return(null);
            }
            return(item.Serialize());
        }