Esempio n. 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);
     }
 }
Esempio n. 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);
            }
        }
Esempio n. 3
0
 public static void ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args)
 {
     //Console.WriteLine(string.Format("配置项 EnableNewEditionSearch 值更改,最新值为:{0}"));
 }
Esempio n. 4
0
 public static void EnableNewEditionSearch_ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args)
 {
     bool enableNewEditionSearch = _configService.GetConfigItemValue("TradingConfig", "SearchConfig", "EnableNewEditionSearch", false);
     Console.WriteLine(string.Format("配置项 EnableNewEditionSearch 值更改,最新值为:{0}", enableNewEditionSearch));
 }
Esempio n. 5
0
 public static void BizOfferPromotionConfig_ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args)
 {
     LocalLoggingService.Debug("BizOfferPromotionConfig changed");
 }