/// <summary> /// 修改原始配置属性 /// </summary> /// <param name="_userCmdCache"></param> /// <returns></returns> public ConfigSocketCache ModifyConfigSocketCache(ConfigSocketCache _configSocketCache) { int i = _configSocketCaches.FindIndex(delegate(ConfigSocketCache _s) { if (_s.ConfigSocketCache_Key == _configSocketCache.ConfigSocketCache_Key) { return(true); } else { return(false); } }); _configSocketCaches[i - 1] = _configSocketCache; return(_configSocketCaches[i - 1]); }
/// <summary> /// 添加配置SOCKET缓存 /// </summary> /// <param name="_configSocketCache"></param> public void AddConfigSocketCache(ConfigSocketCache _configSocketCache) { this._configSocketCaches.Add(_configSocketCache); }