private static void QueueListner() { while (true)//index < count) { IQueueItem item = queue.Dequeue(); OnMessageReceived(item); Thread.Sleep(10); } }
public string Dequeue(string queueName, Guid ptr) { McQueue Q = QueueManager[queueName]; if (Q == null) { return(null); } IQueueItem item = Q.Dequeue(ptr); return(SerializeItem(item)); }
public string Dequeue(string queueName) { McQueue Q = QueueManager[queueName]; if (Q == null) { return(null); } IQueueItem item = Q.Dequeue(); //Netlog.InfoFormat("Dequeue:{0} item:{1}", DateTime.Now, item.MessageId); return(SerializeItem(item)); }