public void Remove(MyServerConnection connection) { lock (ClientListLock) { ClientList.Remove(connection); } }
protected override SDKConnection OnIncomingConnection(SDKAddress address) { MyServerConnection connection = new MyServerConnection(this); lock (ClientListLock) { ClientList.Add(connection); } return(connection); }