AuthenticationComplete() public method

public AuthenticationComplete ( WebAuthenticationResult result ) : void
result WebAuthenticationResult
return void
Exemplo n.º 1
0
        /// <summary>
        /// Finishes the login process initiated by the LoginAsync() call, should be called from the App OnActivated event
        /// when it is triggered due to the Web Authentication Broker
        /// </summary>
        /// <param name="client">
        /// The client.
        /// </param>
        /// <param name="result">
        /// Result from the Web Authentication Broker
        /// </param>
        /// <returns>
        /// Logged in mobile user
        /// </returns>
        public static void LoginComplete(this IMobileServiceClient client, WebAuthenticationBrokerContinuationEventArgs result)
        {
            AuthenticationBroker authBroker = new AuthenticationBroker();

            authBroker.AuthenticationComplete(result.WebAuthenticationResult);
        }
        /// <summary>
        /// Finishes the login process initiated by the LoginAsync() call, should be called from the App OnActivated event
        /// when it is triggered due to the Web Authentication Broker
        /// </summary>
        /// <param name="client">
        /// The client.
        /// </param> 
        /// <param name="result">
        /// Result from the Web Authentication Broker 
        /// </param>
        /// <returns>
        /// Logged in mobile user
        /// </returns>
        public static void LoginComplete(this IMobileServiceClient client, WebAuthenticationBrokerContinuationEventArgs result)
        {
            AuthenticationBroker authBroker = new AuthenticationBroker();

            authBroker.AuthenticationComplete(result.WebAuthenticationResult);
        }