internal HashRepository(IHashProvider hashAlgorithm, ISaltCache saltCache, bool hashEnabled) { _hashAlgorithm = hashAlgorithm; _saltCache = saltCache; _hashEnabled = hashEnabled; }
/// <summary> /// This can be cleaner if I create separate read and write repos /// </summary> /// <param name="saltCache"></param> /// <param name="hashRepository"></param> public WordsRepository(ISaltCache saltCache = null, IHashRepository hashRepository = null) { _hashRepository = hashRepository; _saltCache = saltCache; }
public HashRepository(IHashProvider hashAlgorithm, ISaltCache saltCache) : this(hashAlgorithm, saltCache, AppSettings.Get <bool>("HashingEnabled")) { }