예제 #1
0
 public void GetConfig(ITlv tlv)
 {
     tlv.Add(TlvType.TransUrl, this.Url);
     tlv.Add(TlvType.TransCommTimeout, CommsTimeout);
     tlv.Add(TlvType.TransRetryTotal, RetryTotal);
     tlv.Add(TlvType.TransRetryWait, RetryWait);
 }
예제 #2
0
        public void GetConfig(ITlv tlv)
        {
            this.Config.GetConfig(tlv);
            if (!string.IsNullOrEmpty(this.UserAgent))
            {
                tlv.Add(TlvType.TransUa, this.UserAgent);
            }

            if (!string.IsNullOrEmpty(this.ProxyHost))
            {
                tlv.Add(TlvType.TransProxyHost, this.ProxyHost);
            }

            if (!string.IsNullOrEmpty(this.ProxyUser))
            {
                tlv.Add(TlvType.TransProxyUser, this.ProxyUser);
            }

            if (!string.IsNullOrEmpty(this.ProxyPass))
            {
                tlv.Add(TlvType.TransProxyPass, this.ProxyPass);
            }

            if (!string.IsNullOrEmpty(this.CustomHeaders))
            {
                tlv.Add(TlvType.TransHeaders, this.CustomHeaders);
            }

            if (this.CertHash != null)
            {
                tlv.Add(TlvType.TransCertHash, this.CertHash);
            }
        }
예제 #3
0
 public void GetConfig(ITlv tlv)
 {
     this.Config.GetConfig(tlv);
 }