public static RabbitMqConfiguration Default()
        {
            var configuration = new RabbitMqConfiguration();

            if (RabbitMqSection != null && _rabbitMqSection.Queues != null)
            {
                foreach (RabbitMqQueueElement queue in _rabbitMqSection.Queues)
                {
                    configuration
                    .DeclareQueue(queue.Uri)
                    .IsDurable(queue.IsDurable)
                    .IsTransactional(queue.IsTransactional)
                    .UseExchange(queue.Exchange)
                    .RoutingKey(queue.RoutingKey)
                    .AutoDelete(queue.AutoDelete)
                    .IsExclusive(queue.IsExclusive);
                }
            }

            return(configuration);
        }
 public RabbitMqQueueFactory()
     : this(RabbitMqConfiguration.Default())
 {
 }