public PersistentConnection(RabbitMqConnectionFactory connectionFactory, TimeSpan retryDelay,string purpose)
        {
            this.connectionFactory = connectionFactory;
            this.retryDelay = retryDelay;
            this.purpose = purpose;

            TryToConnect(null);
        }
 public RabbitMqConnectionManager(RabbitMqConnectionFactory connectionFactory, ConnectionConfiguration connectionConfiguration)
 {
     this.connectionFactory = connectionFactory;
     this.connectionConfiguration = connectionConfiguration;
 }
 static RabbitMqConnectionManager SetupRabbitMqConnectionManager(string connectionString)
 {
     var config = new ConnectionStringParser(new SettingsHolder()).Parse(connectionString);
     //            config.OverrideClientProperties();
     var connectionFactory = new RabbitMqConnectionFactory(config);
     var newConnectionManager = new RabbitMqConnectionManager(connectionFactory, config);
     return newConnectionManager;
 }