/// <summary> /// Creates a configuration section handler. /// </summary> /// <param name="parent"></param> /// <param name="configContext">Configuration context object.</param> /// <param name="section"></param> /// <returns>The created section handler object.</returns> public object Create(object parent, object configContext, System.Xml.XmlNode section) { var configer = new ContainerConfiger { ClassName = section.SelectSingleNode("ClassName").InnerText ?? string.Empty, ConfigFile = section.SelectSingleNode("ConfigFile") == null ? string.Empty : section.SelectSingleNode("ConfigFile").InnerText }; return configer; }
/// <summary> /// Creates a configuration section handler. /// </summary> /// <param name="parent"></param> /// <param name="configContext">Configuration context object.</param> /// <param name="section"></param> /// <returns>The created section handler object.</returns> public object Create(object parent, object configContext, System.Xml.XmlNode section) { var configer = new ContainerConfiger { ClassName = section.SelectSingleNode("ClassName").InnerText ?? string.Empty, ConfigFile = section.SelectSingleNode("ConfigFile") == null ? string.Empty : section.SelectSingleNode("ConfigFile").InnerText }; return(configer); }