public RabbitMqConfiguration()
 {
     PublishConfirmTimeout  = TimeSpan.FromSeconds(1);
     PersistentDeliveryMode = true;
     AutoCloseConnection    = true;
     AutomaticRecovery      = true;
     TopologyRecovery       = true;
     RecoveryInterval       = TimeSpan.FromSeconds(10);
     GracefulShutdown       = TimeSpan.FromSeconds(10);
     Ssl = new SslOption {
         Enabled = false
     };
     Hostnames = new List <string>();
     Exchange  = new GeneralExchangeConfiguration
     {
         AutoDelete = false,
         Durable    = true,
         Type       = ExchangeType.Topic
     };
     Queue = new GeneralQueueConfiguration
     {
         Exclusive  = false,
         AutoDelete = false,
         Durable    = true
     };
     VirtualHost = "/";
     Username    = "******";
     Password    = "******";
     Port        = 5672;
 }
 public QueueConfiguration(GeneralQueueConfiguration cfg) : this()
 {
     Durable    = cfg.Durable;
     AutoDelete = cfg.AutoDelete;
     Exclusive  = cfg.Exclusive;
 }