Exemple #1
0
 public void Remove(MyServerConnection connection)
 {
     lock (ClientListLock)
     {
         ClientList.Remove(connection);
     }
 }
Exemple #2
0
        protected override SDKConnection OnIncomingConnection(SDKAddress address)
        {
            MyServerConnection connection = new MyServerConnection(this);

            lock (ClientListLock)
            {
                ClientList.Add(connection);
            }
            return(connection);
        }