private string SerializeItem(IQueueItem item) { if (item == null) { return(null); } return(item.Serialize()); }
public string Dequeue() { IQueueItem item = QueueManager[m_QueueName].Dequeue(); if (item == null) { return(null); } return(item.Serialize()); }
//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()); }