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

            if (item == null)
            {
                return(null);
            }
            return(item.Serialize());
        }
Beispiel #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());
        }