Exemple #1
0
        public void DeleteQueue(QueueRequestOperationParams queue)
        {
            Delete(string.Format("api/queues/{0}/{1}", queue.VirtualHostName.SanitizeVirtualHostName(), queue.QueueName));
            //var request =
            //    BuildHttpDeleteRequest(
            //        string.Format("queues/{0}/{1}", queue.VirtualHostName.SanitizeVirtualHostName(), queue.QueueName));

            //var response = request.GetResponse() as HttpWebResponse;
            //if (response.StatusCode != HttpStatusCode.NoContent)
            //{

            //}
        }
Exemple #2
0
 public void CreateQueue(QueueRequestOperationParams queue)
 {
     Put(string.Format("api/queues/{0}/{1}", queue.VirtualHostName.SanitizeVirtualHostName(), queue.QueueName), queue);
 }