BattleNET_client.Program.BattlEyeDisconnected C# (CSharp) Méthode

BattlEyeDisconnected() private static méthode

private static BattlEyeDisconnected ( BattlEyeDisconnectEventArgs args ) : void
args BattleNET.BattlEyeDisconnectEventArgs
Résultat void
        private static void BattlEyeDisconnected(BattlEyeDisconnectEventArgs args)
        {
            //if (args.DisconnectionType == BattlEyeDisconnectionType.ConnectionLost) { /* Connection lost (timeout), if ReconnectOnPacketLoss is set to true it will reconnect */ }
            //if (args.DisconnectionType == BattlEyeDisconnectionType.SocketException) { /* Something went terribly wrong... */ }
            //if (args.DisconnectionType == BattlEyeDisconnectionType.Manual) { /* Disconnected by implementing application, that would be you */ }

            Console.WriteLine(args.Message);
        }