/// <summary>
        /// 从配置项初始化
        /// </summary>
        /// <param name="element"></param>
        public void FromConfigurationElement(WfServiceAddressDefinitionConfigurationElement element)
        {
            element.NullCheck("element");

            this.Key           = element.Name;
            this.RequestMethod = element.RequestMethod;
            this.ContentType   = element.ContentType;
            this.ServiceNS     = element.ServiceNS;

            this.Address = element.Uri.ToUriString();

            if (element.Identity != null)
            {
                this.Credential = new WfNetworkCredential(element.Identity.LogOnNameWithoutDomain, element.Identity.Password, element.Identity.Domain);
            }
        }
 /// <summary>
 /// 从配置项初始化
 /// </summary>
 /// <param name="element"></param>
 public WfServiceAddressDefinition(WfServiceAddressDefinitionConfigurationElement element)
 {
     this.FromConfigurationElement(element);
 }
        public WfServiceOperationDefinition SetAddress(WfServiceAddressDefinitionConfigurationElement element)
        {
            this.AddressDef = new WfServiceAddressDefinition(element);

            return(this);
        }