Beispiel #1
0
        public virtual void DisconnectClient(AuthClient Server)
        {
            Clients.Model.Remove(Server);

            UpdateClient(Server);

            Server.Dispose();

            WriteConsole.WriteLine($"[CLIENT_DISCONNECTED]: <{Server?.Data.Name}>", ConsoleColor.Red);

            Console.Title = string.Format("Pangya Fresh Up! AuthServer - LOGIN: {0}, GAMES: {1}, MESSENGER: {2}", Clients.Count, Clients.Model.Where(c => c.Data.Type == AuthClientTypeEnum.LoginServer).ToList().Count, Clients.Model.Where(c => c.Data.Type == AuthClientTypeEnum.GameServer).ToList().Count, Clients.Model.Where(c => c.Data.Type == AuthClientTypeEnum.MessengerServer).ToList().Count);
            UpdateServer();
        }
Beispiel #2
0
        public virtual void DisconnectClient(AuthClient client)
        {
            client.Dispose();

            Console.WriteLine(DateTime.Now.ToString() + $" Server Disconnected: <{client.Name}>");
        }