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(); }
public virtual void DisconnectClient(AuthClient client) { client.Dispose(); Console.WriteLine(DateTime.Now.ToString() + $" Server Disconnected: <{client.Name}>"); }