コード例 #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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        IAuthenticationResult IApplicationSync.AuthenticateAccount(IAuthenticationRequest request)
        {
            var dispatcher = new AuthenticationRequestDispatcher();

            return(dispatcher.Authenticate(this.GetInternalSyncDataStore(), this, request, null));
        }
コード例 #4
0
        Task <IAuthenticationResult> IApplication.AuthenticateAccountAsync(IAuthenticationRequest request, CancellationToken cancellationToken)
        {
            var dispatcher = new AuthenticationRequestDispatcher();

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