internal void Configure(ProxySection section)
 {
     if (section.ElementInformation.IsPresent)
     {
         Host = section.Host;
         Port = section.Port;
         Username = section.Username;
         Password = section.Password;
     }
 }
Beispiel #2
0
 internal void Configure(ProxySection section)
 {
     if (section.ElementInformation.IsPresent)
     {
         Host     = section.Host;
         Port     = section.Port;
         Username = section.Username;
         Password = section.Password;
     }
 }
 internal void Configure(ProxySection section)
 {
     if (section.ElementInformation.IsPresent)
     {
         Host = section.Host;
         Port = section.Port;
         Username = section.Username;
         Password = section.Password;
         BypassList = new List<string>(section.BypassList);
         BypassOnLocal = section.BypassOnLocal.GetValueOrDefault();
     }
 }
Beispiel #4
0
 internal void Configure(ProxySection section)
 {
     if (section.ElementInformation.IsPresent)
     {
         Host          = section.Host;
         Port          = section.Port;
         Username      = section.Username;
         Password      = section.Password;
         BypassList    = new List <string>(section.BypassList);
         BypassOnLocal = section.BypassOnLocal.GetValueOrDefault();
     }
 }
Beispiel #5
0
        public static ProxySection Proxy(this CustomConfiguration config)
        {
            lock (_lockObjectProxy)
            {
                if (_proxySection == null)
                {
                    _proxySection = ConfigurationManager.GetSection(ProxySection.SectionName) as ProxySection;

                    if (_proxySection == null)
                    {
                        throw new ConfigurationErrorsException(String.Format(ConfigurationMessages.SectionNotFound, ProxySection.SectionName));
                    }
                }
            }

            return(_proxySection);
        }
Beispiel #6
0
 internal void Configure(ProxySection section)
 {
 }
        internal void Configure(ProxySection section)
        {

        }