private void SendNotification(ClientConnecting newClient)
        {
            new Thread(() => {
                if (listClients.Count > 0)
                {
                    foreach (ClientConnecting item in listClients)
                    {
                        if (item == newClient)
                        {
                            continue;
                        }
                        newClient.SendUser(item.User);

                        item.SendUser(newClient.User);
                    }
                }
                SendHistoryChatContent(newClient);
            }).Start();
        }
Ejemplo n.º 2
0
        private void SendNotification(ClientConnecting newClient)
        {
            new Thread(() => {
                if (listClients.Count > 0)
                {
                    foreach (ClientConnecting item in listClients)
                    {
                        //Send UserOnline to the new client
                        newClient.SendUser(item.User);

                        //Send new client to users online
                        item.SendUser(newClient.User);


                        Logger.Write(item.User.UserName);
                    }
                }
            }).Start();
        }