protected override IQueueItem Receive() { QueueRequest request = new QueueRequest()//_QueueName, QueueCmd.Dequeue, null); { Host = _api.QueueName, QCommand = QueueCmd.Dequeue, DuplexType = DuplexTypes.WaitOne }; return(_api.Dequeue(request)); }
public static void DoGet(QueueHost host) { QueueApi q = new QueueApi(host); q.ConnectTimeout = 500000000; //q.ReadTimeout = -1; var item = q.Dequeue();// DuplexTypes.WaitOne); if (item != null) { Console.WriteLine(item.Print()); } else { Console.WriteLine("Get nothing!"); } }