/// <summary> /// 添加List新方法,查找IUserClient类型 /// </summary> /// <param name="other"></param> /// <returns></returns> public ClientToken Find(IClientToken other) { //if (other == null) //{ // throw new ArgumentNullException("不能传入空"); //} //var find = base.Find((item) => //{ // try // { // var b1 = item.Address.Equals(other.Address) ; // var b2 = item.ServicePort == other.ServicePort; // return b1 && b2; // } // catch (Exception e) // { // return false; // } //}); return(ClientTokenList.Find(this, other)); }
public ClientGroup(string groupName) { this.GroupName = groupName; _onlineClients = new ClientTokenList(); }