protected virtual void ConnectToBroker()
{
try
{
_connection = _connectionFactory.CreateConnection(_config.Hostnames);
SetupConnectionRecovery(_connection);
}
catch (BrokerUnreachableException e)
{
_logger.LogError("Unable to connect to broker", e);
throw e.InnerException;
}
}