public bool CreateQueue(string queueName, out bool alreadyExists)
        {
            alreadyExists = false;
            MessageQueue q = QueueStorageType.GetQueue(queueName);

            return(q.CreateQueue(out alreadyExists));
        }
        public MessageQueue GetQueue(string queueName)
        {
            bool alreadyExists;

            CreateQueue(queueName, out alreadyExists);

            return(QueueStorageType.GetQueue(queueName));
        }
        public bool ClearMessages(string queueName)
        {
            MessageQueue q = QueueStorageType.GetQueue(queueName);

            return(q.Clear());
        }
        public bool DeleteMessage(string queueName, Message queueMessage)
        {
            MessageQueue q = QueueStorageType.GetQueue(queueName);

            return(q.DeleteMessage(queueMessage));
        }
        public Message PeekMessage(string queueName)
        {
            MessageQueue q = QueueStorageType.GetQueue(queueName);

            return(q.PeekMessage());
        }
        public IEnumerable <Message> PeekMessages(string queueName, int numberofMessages)
        {
            MessageQueue q = QueueStorageType.GetQueue(queueName);

            return(q.PeekMessages(numberofMessages));
        }
        public IEnumerable <Message> GetMessages(string queueName, int numberofMessages, int visibilityTimeoutInSecs)
        {
            MessageQueue q = QueueStorageType.GetQueue(queueName);

            return(q.GetMessages(numberofMessages, visibilityTimeoutInSecs));
        }
        public bool PutMessage(string queueName, Message queueMessage, int timeToLiveInSecs)
        {
            MessageQueue q = QueueStorageType.GetQueue(queueName);

            return(q.PutMessage(queueMessage, timeToLiveInSecs));
        }
        public bool SetQueueProperties(string queueName, QueueProperties queueProps)
        {
            MessageQueue q = QueueStorageType.GetQueue(queueName);

            return(q.SetProperties(queueProps));
        }
        public QueueProperties GetQueueProperties(string queueName)
        {
            MessageQueue q = QueueStorageType.GetQueue(queueName);

            return(q.GetProperties());
        }