예제 #1
0
        private void OnKeyCallback(SteamUser.LoginKeyCallback obj)
        {
            var test       = new SteamWeb();
            var IsLoggedIn = false;

            do
            {
                IsLoggedIn = test.Authenticate(obj.UniqueID.ToString(), _client, _userNonce);

                if (!IsLoggedIn)
                {
                    //Log.Warn("Authentication failed, retrying in 2s...");
                    Thread.Sleep(2000);
                }
            } while (!IsLoggedIn);

            var c**k   = test.VerifyCookies();
            var steamh = new SteamHandler(test);

            Token = steamh.GetNextTocken();

            _client.Disconnect();
        }
예제 #2
0
 public SteamHandler(SteamWeb web)
 {
     _web = web;
 }