public object GetConsumeConnection()
 {
     //note: The purpose is there so that we/users can add more advanced connection managers in the future
     lock (connectionFactory)
     {
         return(connectionConsume ?? (connectionConsume = new PersistentConnection(connectionFactory, connectionConfiguration.RetryDelay, "Consume")));
     }
 }
 public object GetConsumeConnection()
 {
     //note: The purpose is there so that we/users can add more advanced connection managers in the future
     lock (connectionFactory)
     {
         return connectionConsume ?? (connectionConsume = new PersistentConnection(connectionFactory, connectionConfiguration.RetryDelay,"Consume"));
     }
 }