public Partitions(IPartitionKeyGenerator partitionKeyGenerator, IStringHasher <THashOutput> hasher, IPartitioner <THashOutput> partitioner, int partitionCount) { _partitionCount = partitionCount; _partitionKeyGenerator = partitionKeyGenerator; _partitions = new Partition[_partitionCount]; _partitioner = partitioner; _hasher = hasher; }
public PersonManager(IPersonRepository personRepository, IWebContext webContext, IStringHasher stringHasher, IConfig config, IVoteRepository voteRepository, IPeselValidator peselValidator) { this._personRepository = personRepository; this._webContext = webContext; this._stringHasher = stringHasher; this._config = config; this._peselValidator = peselValidator; this._voteRepository = voteRepository; }
public SecurityService(IUserRepository userRepository, IStringHasher passwordHasher) { if (userRepository == null) throw new ArgumentNullException("userRepository"); if (passwordHasher == null) throw new ArgumentNullException("passwordHasher"); UserRepository = userRepository; PasswordHasher = passwordHasher; }
public TelemetryCommonProperties( IOptions <TelemetryOptions> options, IDockerContainerDetector dockerContainerDetector, IStringHasher hasher, IMacAddressProvider macAddressProvider, IUserLevelCacheWriter userLevelCacheWriter) { _options = options; _hasher = hasher; _macAddressProvider = macAddressProvider; _dockerContainerDetector = dockerContainerDetector; _userLevelCacheWriter = userLevelCacheWriter; }
public SolutionInfo(IStringHasher hasher, string slnFile) { _mappings = GetProjectMappings(slnFile); _hasher = hasher; if (TryGetSolutionId(slnFile, out var slnId)) { SolutionId = slnId; } else { SolutionId = hasher.Hash(slnFile); } }
public void AddHasher(IStringHasher <THashOutput> hasher) { _hashers.Add(hasher); }
public HelloWorldCommandHandler(IStringHasher stringHasher) { _stringHasher = stringHasher; }
public UserAccountService() { _hasher = new StringHasher(); _hasher.SaltSize = 10; _unitOfWork = UnitOfWork; }
public OrchestrateDbInitializer(OrchestrateContext ctx, IStringHasher stringHasher) { _ctx = ctx; _stringHasher = stringHasher; }
public UsersRepository(OrchestrateContext context, IMapper mapper, IStringHasher stringHasher) : base(context, mapper) { _stringHasher = stringHasher; }
public UpgradeContextTelemetry(IStringHasher hasher) { _hasher = hasher; }