void GetEndpointSettings(IEndpointSpecification specification, out string queueName, out int consumerLimit)
        {
            var prefix = GetSettingsPrefix(specification.GetType());

            queueName = specification.QueueName;
            consumerLimit = specification.ConsumerLimit;

            EndpointSettings endpointSettings;
            if (_settingsProvider.TryGetSettings(prefix, out endpointSettings))
            {
                if (!string.IsNullOrWhiteSpace(endpointSettings.QueueName))
                    queueName = endpointSettings.QueueName;

                if (endpointSettings.ConsumerLimit.HasValue)
                    consumerLimit = endpointSettings.ConsumerLimit.Value;
            }
        }
        void GetEndpointSettings(IEndpointSpecification specification, out string queueName, out int consumerLimit)
        {
            var prefix = GetSettingsPrefix(specification.GetType());

            queueName     = specification.QueueName;
            consumerLimit = specification.ConsumerLimit;

            EndpointSettings endpointSettings;

            if (_settingsProvider.TryGetSettings(prefix, out endpointSettings))
            {
                if (!string.IsNullOrWhiteSpace(endpointSettings.QueueName))
                {
                    queueName = endpointSettings.QueueName;
                }

                if (endpointSettings.ConsumerLimit.HasValue)
                {
                    consumerLimit = endpointSettings.ConsumerLimit.Value;
                }
            }
        }