Contour.Configurator.AppConfigConfigurator.GetEndPointByName C# (CSharp) Method

GetEndPointByName() private method

The get end point by name.
///
private GetEndPointByName ( string endpointName ) : EndpointElement
endpointName string /// The endpoint name. ///
return EndpointElement
        private EndpointElement GetEndPointByName(string endpointName)
        {
            EndpointElement endpoint = this.endpointsConfig.Endpoints[endpointName];

            if (endpoint == null)
            {
                throw new ArgumentException(string.Format("Попытка найти конфигурацию для endpoint {0} закончилось провалом, пожалуйста укажите необходимую информацию в конфигурации {1}", endpointName, ServiceBusSectionName));
            }

            return endpoint;
        }