Esempio n. 1
0
 private void OnAuthenticationCompleted(object sender, AuthenticatorCompletedEventArgs e)
 {
     if (e.IsAuthenticated)
     {
         m_AuthenticationDelegate.OnAuthenticationCompleted(e.Account);
     }
     else
     {
         m_AuthenticationDelegate.OnAuthenticationCanceled();
     }
 }
 private void OnAuthenticationCompleted(object sender, AuthenticatorCompletedEventArgs e)
 {
     if (e.IsAuthenticated)
     {
         var token = new  OAuthToken
         {
             AccessToken = e.Account.Properties["access_token"]
         };
         _authenticationDelegate.OnAuthenticationCompleted(token);
     }
     else
     {
         _authenticationDelegate.OnAuthenticationCanceled();
     }
 }