コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
 /// <summary>
 /// 从配置项初始化
 /// </summary>
 /// <param name="element"></param>
 public WfServiceAddressDefinition(WfServiceAddressDefinitionConfigurationElement element)
 {
     this.FromConfigurationElement(element);
 }
コード例 #3
0
        public WfServiceOperationDefinition SetAddress(WfServiceAddressDefinitionConfigurationElement element)
        {
            this.AddressDef = new WfServiceAddressDefinition(element);

            return(this);
        }