示例#1
0
        internal void AddToConfigCache(ConfBot config)
        {
            var name = config.Name;

            if (!string.IsNullOrEmpty(name) && !botConfCache.ContainsKey(name))
            {
                botConfCache[name] = config;
            }
        }
示例#2
0
 private void InitializeBotConfig(ConfBot config)
 {
     Bot.Derive(config);
     config.Parent = this;
 }
示例#3
0
 private ConfBot InitializeBotConfig(ConfBot config)
 {
     Bot.Derive(config);
     config.Parent = this;
     return(config);
 }