/// <summary>
        /// Sends a collection of messages inside a batch transaction
        /// </summary>
        /// <param name="messages"></param>
        public void SendBatch(IEnumerable <Envelope <Stream> > messages)
        {
            List <BrokeredMessage> msg = new List <BrokeredMessage>();

            foreach (var message in messages)
            {
                msg.Add(WindowsServiceBusMessageConverter.ConstructMessage(message));
            }

            _client.SendBatch(msg);
        }
 /// <summary>
 /// Sends a message using the metadata in the envelope if applicable
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="message"></param>
 public void Send(Envelope <Stream> message)
 {
     _client.Send(WindowsServiceBusMessageConverter.ConstructMessage(message));
 }