public void CreateQueue() { ActiveMQWriter w = new ActiveMQWriter(this._queueUrl, this._queueName); w.WriteMessageToQueue("DEL", "__DEL__", false); ActiveMQReader r = new ActiveMQReader(this._queueUrl, this._queueName); r.ReadMessage("__DEL__"); }
private void WriteResponseToQueue(string id) { //Task.Factory.StartNew(() => // { ActiveMQWriter w = new ActiveMQWriter(System.Configuration.ConfigurationManager.AppSettings["ActiveMQURL"], System.Configuration.ConfigurationManager.AppSettings["ActiveMQRS"]); w.WriteMessageToQueue(ResponseMessage, id, false); // }); }