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