public InternalAuthenticationProvider(IODispatcher ioDispatcher, PasswordHashAlgorithm passwordHashAlgorithm,
                                       int cacheSize)
 {
     _ioDispatcher          = ioDispatcher;
     _passwordHashAlgorithm = passwordHashAlgorithm;
     _userPasswordsCache    = new LRUCache <string, Tuple <string, IPrincipal> >(cacheSize);
 }
 public InternalAuthenticationProvider(IODispatcher ioDispatcher, PasswordHashAlgorithm passwordHashAlgorithm,
                                       int cacheSize, bool logFailedAuthenticationAttempts)
 {
     _ioDispatcher                    = ioDispatcher;
     _passwordHashAlgorithm           = passwordHashAlgorithm;
     _userPasswordsCache              = new LRUCache <string, Tuple <string, ClaimsPrincipal> >(cacheSize);
     _logFailedAuthenticationAttempts = logFailedAuthenticationAttempts;
 }