AcceptAllMobileConfirmations.Program.Main C# (CSharp) Method

Main() private static method

private static Main ( ) : void
return void
        private static void Main()
        {
            Console.Title = "Confirmer by sne4kyFox";
            Console.WriteLine("This program will accept any and ALL mobile auth confirmations, use with extreme caution.");
            Console.WriteLine(
                "By using this software you agree to the terms in \"license.txt\".");

            _config = ConfigHandler.Reload(_config);

            Console.WriteLine("Attempting web login...");

            _account = Web.RetryDoLogin(TimeSpan.FromSeconds(5), 10, _config.Username, _config.Password, _config.SteamMachineAuth);

            if (!string.IsNullOrEmpty(_account.SteamMachineAuth))
            {
                _config.SteamMachineAuth = _account.SteamMachineAuth;
                ConfigHandler.WriteChanges(_config);
            }

            Console.WriteLine("Login was successful!");
            while (!File.Exists("account.maFile"))
                SteamAuthLogin();
            var sgAccount = JsonConvert.DeserializeObject<SteamGuardAccount>(File.ReadAllText("account.maFile"));

            AcceptConfirmationsLoop(sgAccount);
        }