コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
        }
コード例 #4
0
 public TelemetryCommonProperties(
     IOptions <TelemetryOptions> options,
     IDockerContainerDetector dockerContainerDetector,
     IStringHasher hasher,
     IMacAddressProvider macAddressProvider,
     IUserLevelCacheWriter userLevelCacheWriter)
 {
     _options                 = options;
     _hasher                  = hasher;
     _macAddressProvider      = macAddressProvider;
     _dockerContainerDetector = dockerContainerDetector;
     _userLevelCacheWriter    = userLevelCacheWriter;
 }
コード例 #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);
            }
        }
コード例 #6
0
 public void AddHasher(IStringHasher <THashOutput> hasher)
 {
     _hashers.Add(hasher);
 }
コード例 #7
0
 public HelloWorldCommandHandler(IStringHasher stringHasher)
 {
     _stringHasher = stringHasher;
 }
コード例 #8
0
 public UserAccountService()
 {
     _hasher          = new StringHasher();
     _hasher.SaltSize = 10;
     _unitOfWork      = UnitOfWork;
 }
コード例 #9
0
 public OrchestrateDbInitializer(OrchestrateContext ctx, IStringHasher stringHasher)
 {
     _ctx          = ctx;
     _stringHasher = stringHasher;
 }
コード例 #10
0
 public UsersRepository(OrchestrateContext context,
                        IMapper mapper,
                        IStringHasher stringHasher) : base(context, mapper)
 {
     _stringHasher = stringHasher;
 }
コード例 #11
0
 public UpgradeContextTelemetry(IStringHasher hasher)
 {
     _hasher = hasher;
 }