private void ClearQueue(Queue q) { try { q.Clear(); } catch { //TODO: This is here because of a bug in the Endpoint where clearing an empty queue results in a 500 internal server error. } }
public IronMQOperations(string queueName, Token credentials) { _client = new Client(credentials.Key, credentials.Secret, proto:"http", port:80); _queue = _client.Queue(queueName); }
public Communicate(Queue firstUserMessages, Queue secondUserMessages, string senderName) { this.firstUserMessages = firstUserMessages; this.secondUserMessages = secondUserMessages; this.senderName = senderName; }
private void ClearQueue(Queue q) { Message msg = null; while ((msg = q.get()) != null) { q.deleteMessage(msg.Id); } }