/// <summary> /// Fill object data from xml node /// </summary> /// <param name="source">Source Xml</param> protected override void LoadFromXmlNode(XmlNode source) { base.LoadFromXmlNode(source); this.Name = GetAttribute(source, "name"); this.Url = GetUriAttribute(source, "url"); this.UserOrKeyAlias = GetAttribute(source, "user-or-key", null); this.password = GetPassword(source, "password"); this.KeyStore = GetAttribute(source, "keystore", null); this.LoginType = GetEnumAttribute <AdvanceLoginType>(source, "login-type", AdvanceLoginType.NONE); }
/// <summary> /// Fill object data from xml node /// </summary> /// <param name="source">Source Xml</param> protected override void LoadFromXmlNode(XmlNode source) { base.LoadFromXmlNode(source); this.Name = GetAttribute(source, "name"); this.Protocol = GetEnumAttribute <AdvanceFTPProtocols>(source, "protocol", AdvanceFTPProtocols.FTP); this.Address = GetAttribute(source, "address", null); this.RemoteDirectory = GetAttribute(source, "remote-directory", null); this.UserOrKey = GetAttribute(source, "user-or-key", null); this.password = GetPassword(source, "password"); this.Passive = GetBoolAttribute(source, "passive", false); this.KeyStore = GetAttribute(source, "keystore", null); this.LoginType = GetEnumAttribute <AdvanceLoginType>(source, "login-type", AdvanceLoginType.NONE); }
/// <summary> /// Fill object data from xml node /// </summary> /// <param name="source">Source Xml</param> protected override void LoadFromXmlNode(XmlNode source) { base.LoadFromXmlNode(source); this.Name = GetAttribute(source, "name"); this.SendProtocol = GetEnumAttribute <AdvanceEmailSendProtocols>(source, "send", AdvanceEmailSendProtocols.NONE); this.ReceiveProtocol = GetEnumAttribute <AdvanceEmailReceiveProtocols>(source, "receive", AdvanceEmailReceiveProtocols.NONE); this.SendAddress = GetAttribute(source, "send-address", null); this.ReceiveAddress = GetAttribute(source, "receive-address", null); this.Folder = GetAttribute(source, "folder", null); this.KeyStore = GetAttribute(source, "keystore", null); this.User = GetAttribute(source, "user", null); this.LoginType = GetEnumAttribute <AdvanceLoginType>(source, "login-type", AdvanceLoginType.NONE); this.Email = GetAttribute(source, "email", null); this.password = GetPassword(source, "password"); }
public HttpAuthentication(AdvanceLoginType type) { this.Type = type; ServicePointManager.ServerCertificateValidationCallback = ValidateCertificate; }