예제 #1
0
        public JObject GetMessagge(string QueueName)
        {
            string  Messagge = QueuManager.GetQueueManager().GetMessageInQueue(QueueName);
            JObject ToReturn = new JObject();

            ToReturn.Add(new JProperty("name", QueueName));
            ToReturn.Add(new JProperty("message", Messagge));

            return(new JObject(new JProperty("queue", ToReturn)));
        }
예제 #2
0
        public JObject AddMessage(string QueueName, string Message)
        {
            QueuManager.GetQueueManager().AddMessageInQueue(QueueName, Message);

            JObject ToReturn = new JObject();

            ToReturn.Add(new JProperty("name", QueueName));
            ToReturn.Add(new JProperty("message", Message));

            return(new JObject(new JProperty("added", ToReturn)));
        }
예제 #3
0
 public JObject GetQueue()
 {
     return(QueuManager.GetQueueManager().GetQueues());
 }