public HashGetter(IHashingServiceProviderFactory hashingServiceProviderFactory, IHashEncodingTypeFactory hashEncodingTypeFactory) { if (hashEncodingTypeFactory == null) { throw new ArgumentNullException("hashEncodingTypeFactory"); } _hashingServiceProvider = hashingServiceProviderFactory.GetProvider(); _hashEncodingType = hashEncodingTypeFactory.GetEncodingType(); }
public HashGetter(IHashingServiceProvider hashingServiceProvider, HashEncodingType hashEncodingType) { if (hashEncodingType == null) { throw new ArgumentNullException("hashEncodingType"); } _hashingServiceProvider = hashingServiceProvider; _hashEncodingType = hashEncodingType; }
public HashEncodingType GetHashEncodingTypeToUse() { return(HashEncodingType.FromName(_configSettings.HashEncodingType)); }