Exemplo n.º 1
0
        IAuthenticationResult IApplicationSync.AuthenticateAccount(IAuthenticationRequest request, Action <IRetrievalOptions <IAuthenticationResult> > responseOptions)
        {
            var options = new DefaultRetrievalOptions <IAuthenticationResult>();

            responseOptions(options);

            var dispatcher = new AuthenticationRequestDispatcher();

            return(dispatcher.Authenticate(this.GetInternalSyncDataStore(), this, request, options));
        }
        Task <IAuthenticationResult> IApplication.AuthenticateAccountAsync(IAuthenticationRequest request, Action <IRetrievalOptions <IAuthenticationResult> > responseOptions, CancellationToken cancellationToken)
        {
            var options = new DefaultRetrievalOptions <IAuthenticationResult>();

            responseOptions(options);

            var dispatcher = new AuthenticationRequestDispatcher();

            return(dispatcher.AuthenticateAsync(this.GetInternalAsyncDataStore(), this, request, options, cancellationToken));
        }
Exemplo n.º 3
0
        IAuthenticationResult IApplicationSync.AuthenticateAccount(IAuthenticationRequest request)
        {
            var dispatcher = new AuthenticationRequestDispatcher();

            return(dispatcher.Authenticate(this.GetInternalSyncDataStore(), this, request, null));
        }
        Task <IAuthenticationResult> IApplication.AuthenticateAccountAsync(IAuthenticationRequest request, CancellationToken cancellationToken)
        {
            var dispatcher = new AuthenticationRequestDispatcher();

            return(dispatcher.AuthenticateAsync(this.GetInternalAsyncDataStore(), this, request, null, cancellationToken));
        }