Exemplo n.º 1
0
        private void OnLoginStateChanged(LoginStateChangedMessage message)
        {
            if (message.IsLoggedIn)
            {
                //PushHelper.Start();

                //InitializeLongPoll();
                LoadCurrentUser();

                try
                {
                    ServiceLocator.Vkontakte.Stats.TrackVisitor();
                }
                catch { }
            }
            else
            {
                ServiceLocator.LongPollHandler.Stop();
                PushHelper.Stop();
                AppSettings.AccessToken = null;
                ServiceLocator.Vkontakte.AccessToken = null;
                CurrentUser = null;
            }
        }