Deserialize() public méthode

Deserializes the specified smtp section.
public Deserialize ( XmlNode section ) : void
section System.Xml.XmlNode The smtp section.
Résultat void
		private SmtpConfig DeserializeSmtpConfigFromXml(string configXml)
		{
			var doc = new XmlDocument();
			doc.LoadXml(configXml);
			var config = new SmtpConfig();
			config.Deserialize(doc.DocumentElement);
			return config;
		}
Exemple #2
0
        /// <summary>
        /// Deserializes the specified node.
        /// </summary>
        /// <param name="node">The node.</param>
        public void Deserialize(XmlNode node)
        {
            viewEngineConfig.Deserialize(node);
            smtpConfig.Deserialize(node);
            controllersConfig.Deserialize(node);
            viewComponentsConfig.Deserialize(node);
            scaffoldConfig.Deserialize(node);
            urlConfig.Deserialize(node);

            extensions.Deserialize(node);
            routingRules.Deserialize(node);
            defaultUrls.Deserialize(node);

            ProcessFilterFactoryNode(node.SelectSingleNode("customFilterFactory"));
            ProcessMatchHostNameAndPath(node.SelectSingleNode("routing"));
            ProcessExcludeAppPath(node.SelectSingleNode("routing"));

            var services = node.SelectSingleNode("services");

            if (services != null)
            {
                servicesConfig = XmlConfigurationDeserializer.GetDeserializedNode(services);
            }
        }