public void GetComponentConfigTest()
        {
            ConfigServiceClient ci = new ConfigServiceClient();

            ci.RunInAppStartInit();
            var r = ci.GetComponentConfig(1001);

            Assert.IsTrue(r != null);
            Assert.IsTrue(r.ComponentId == 1001);
        }
 static ConfigHelper()
 {
     _configService  = ConfigClientFactory.Instance.GetConfigClient();
     _compoentConfig = _configService.GetComponentConfig(DefineTable.ComponentID);                         //不进行null检查保证配置初始化出现问题时爆出异常
     _config         = XmlConfigSerializer.Instance.FromXml <ConfigServerConfig>(_compoentConfig.Content); //不进行null检查保证配置初始化出现问题时爆出异常
 }