コード例 #1
0
 public InternalAuthenticationProvider(IODispatcher ioDispatcher, PasswordHashAlgorithm passwordHashAlgorithm,
                                       int cacheSize)
 {
     _ioDispatcher          = ioDispatcher;
     _passwordHashAlgorithm = passwordHashAlgorithm;
     _userPasswordsCache    = new LRUCache <string, Tuple <string, IPrincipal> >(cacheSize);
 }
コード例 #2
0
 public InternalAuthenticationProvider(IODispatcher ioDispatcher, PasswordHashAlgorithm passwordHashAlgorithm,
                                       int cacheSize, bool logFailedAuthenticationAttempts)
 {
     _ioDispatcher                    = ioDispatcher;
     _passwordHashAlgorithm           = passwordHashAlgorithm;
     _userPasswordsCache              = new LRUCache <string, Tuple <string, ClaimsPrincipal> >(cacheSize);
     _logFailedAuthenticationAttempts = logFailedAuthenticationAttempts;
 }