public override void Add(ClientInfoBase clientInfo) { base.ClientInfos.Add(clientInfo); }
public override bool Remove(ClientInfoBase clientInfo) { for (int i = 0; i < base.ClientInfos.Count; i++) { if (base.ClientInfos[i].SessionID == clientInfo.SessionID) { Console.WriteLine("client socket closed by comunityid" + ((ClientInfo)base.ClientInfos[i]).CommunityId + "and userid " + ((ClientInfo)base.ClientInfos[i]).UserId + " and sessionid" + clientInfo.SessionID); base.ClientInfos.Remove(base.ClientInfos[i]); return true; } } return false; }