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); } }
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); } }
private void ActionRetryTimeoutUpdateCallback(ConfigItemValueUpdateArguments arguments) { _actionRetryTimeout = GetConfigItemValue(true, this.GetType().FullName, "ActionRetryTimeout", DefaultActionRetryTimeout); }
private void ActionNumRetriesUpdateCallback(ConfigItemValueUpdateArguments arguments) { _actionNumRetries = GetConfigItemValue(true, this.GetType().FullName, "ActionNumRetries", DefaultActionNumRetries); }
private void SyncConfigCacheIntervalUpdateCallback(ConfigItemValueUpdateArguments arguments) { _syncConfigCacheInterval = GetConfigItemValue(true, this.GetType().FullName, "SyncConfigCacheInterval", DefaultSyncConfigCacheInterval); }
public static void ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args) { //Console.WriteLine(string.Format("配置项 EnableNewEditionSearch 值更改,最新值为:{0}")); }
public static void BizOfferPromotionConfig_ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args) { LocalLoggingService.Debug("BizOfferPromotionConfig changed"); }
public static void EnableNewEditionSearch_ConfigItemValueUpdateCallback(ConfigItemValueUpdateArguments args) { bool enableNewEditionSearch = _configService.GetConfigItemValue("TradingConfig", "SearchConfig", "EnableNewEditionSearch", false); Console.WriteLine(string.Format("配置项 EnableNewEditionSearch 值更改,最新值为:{0}", enableNewEditionSearch)); }