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