private void SocketServer_OnClientDisConnected(ClientSocket client)
 {
     if (!ChatClientManager.ReadOnlyChatClients.ContainsKey(client.IPAddress))
     {
         ChatClientManager.RemoveClient(client);
     }
     OnClientDisConnected?.Invoke(client);
 }
Beispiel #2
0
 private void ClientSocketManager_AsyncOnClientDisConnected(ClientSocket client) =>
 ActionsConcurrentQueue.Enqueue(() => OnClientDisConnected.Invoke(client));