Example #1
0
 public static void Switches_ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args)
 {
     Console.WriteLine("配置项 Switches 值更改,最新值为:");
     Dictionary<string, bool> switches = _configService.GetConfigItemValue("TradingConfig", "SearchConfig", "Switches", new Dictionary<string, bool> { { "Equipment", true }, { "Card", false } }, Switches_ConfigItemValueUpdateCallback);
     Console.WriteLine("全局配置 > TradingConfig > SearchConfig > Switches:");
     foreach (var de in switches)
     {
         Console.WriteLine("物品类型:{0},是否开启该业务:{1}", de.Key, de.Value);
     }
 }
Example #2
0
        public static void Games_ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args)
        {
            Console.WriteLine("配置项 Games 值更改,最新值为:");
            List<string> games = _configService.GetConfigItemValue("TradingConfig", "SearchConfig", "Games", new List<string> { "魔兽世界", "冒险岛" });
            Console.WriteLine("全局配置 > TradingConfig > SearchConfig > Games:");
            foreach (var game in games)
            {

                Console.WriteLine(game);
            }
        }
Example #3
0
 public static void ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args)
 {
     //Console.WriteLine(string.Format("配置项 EnableNewEditionSearch 值更改,最新值为:{0}"));
 }
Example #4
0
 public static void EnableNewEditionSearch_ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args)
 {
     bool enableNewEditionSearch = _configService.GetConfigItemValue("TradingConfig", "SearchConfig", "EnableNewEditionSearch", false);
     Console.WriteLine(string.Format("配置项 EnableNewEditionSearch 值更改,最新值为:{0}", enableNewEditionSearch));
 }
Example #5
0
 public static void BizOfferPromotionConfig_ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args)
 {
     LocalLoggingService.Debug("BizOfferPromotionConfig changed");
 }