启动项配置节对应的配置类
 public CustomMefBootstrapper(BootstrapperConfiguration configuration)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration为空");
     }
     _configuration = configuration;
 }
        public object Create(object parent, object configContext, XmlNode section)
        {
            BootstrapperConfiguration bootstapperConfiguration = new BootstrapperConfiguration();
            foreach(XmlElement element in section.ChildNodes)
            {
                switch(element.Name)
                {
                    case "log":
                        bootstapperConfiguration.LogName = element.GetAttribute("logName");
                        bootstapperConfiguration.LogConfig = element.GetAttribute("logConfig");
                        break;
                    case "dbConfigFile":
                        bootstapperConfiguration.DbConfigFile = element.GetAttribute("fileName");
                        break;
                }
            }

            return bootstapperConfiguration;
        }
        public object Create(object parent, object configContext, XmlNode section)
        {
            BootstrapperConfiguration bootstapperConfiguration = new BootstrapperConfiguration();

            foreach (XmlElement element in section.ChildNodes)
            {
                switch (element.Name)
                {
                case "log":
                    bootstapperConfiguration.LogName   = element.GetAttribute("logName");
                    bootstapperConfiguration.LogConfig = element.GetAttribute("logConfig");
                    break;

                case "dbConfigFile":
                    bootstapperConfiguration.DbConfigFile = element.GetAttribute("fileName");
                    break;
                }
            }

            return(bootstapperConfiguration);
        }