/// <summary> /// Creates a new configuration section handler. /// </summary> /// <param name="parent"> The parent object.</param> /// <param name="configContext"> The configuration context.</param> /// <param name="section"> The section handler.</param> /// <returns> An object with the configuration.</returns> public object Create(object parent, object configContext, System.Xml.XmlNode section) { HttpClientConfiguration config = new HttpClientConfiguration((HttpClientConfiguration)parent); config.LoadValuesFromConfiguration(section); return config; }
internal HttpClientConfiguration(HttpClientConfiguration config) { if ( config != null ) { this._userAgent = config.UserAgent; this._keepAlive = config.KeepAlive; this._securityProtocol = config.SecurityProtocol; } }