Ejemplo n.º 1
0
 public Partitions(IPartitionKeyGenerator partitionKeyGenerator, IStringHasher <THashOutput> hasher, IPartitioner <THashOutput> partitioner, int partitionCount)
 {
     _partitionCount        = partitionCount;
     _partitionKeyGenerator = partitionKeyGenerator;
     _partitions            = new Partition[_partitionCount];
     _partitioner           = partitioner;
     _hasher = hasher;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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;
 }
Ejemplo n.º 5
0
        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);
 }
Ejemplo n.º 7
0
 public HelloWorldCommandHandler(IStringHasher stringHasher)
 {
     _stringHasher = stringHasher;
 }
Ejemplo n.º 8
0
 public UserAccountService()
 {
     _hasher          = new StringHasher();
     _hasher.SaltSize = 10;
     _unitOfWork      = UnitOfWork;
 }
 public OrchestrateDbInitializer(OrchestrateContext ctx, IStringHasher stringHasher)
 {
     _ctx          = ctx;
     _stringHasher = stringHasher;
 }
Ejemplo n.º 10
0
 public UsersRepository(OrchestrateContext context,
                        IMapper mapper,
                        IStringHasher stringHasher) : base(context, mapper)
 {
     _stringHasher = stringHasher;
 }
 public UpgradeContextTelemetry(IStringHasher hasher)
 {
     _hasher = hasher;
 }