コード例 #1
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));
        }
コード例 #2
0
        Task <IAuthenticationResult> IApplication.AuthenticateAccountAsync(IAuthenticationRequest request, CancellationToken cancellationToken)
        {
            var dispatcher = new AuthenticationRequestDispatcher();

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