示例#1
0
 public override void Add(ClientInfoBase clientInfo)
 {
     base.ClientInfos.Add(clientInfo);
 }
示例#2
0
 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;
 }