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)); }
Task <IAuthenticationResult> IApplication.AuthenticateAccountAsync(IAuthenticationRequest request, CancellationToken cancellationToken) { var dispatcher = new AuthenticationRequestDispatcher(); return(dispatcher.AuthenticateAsync(this.GetInternalAsyncDataStore(), this, request, null, cancellationToken)); }