Beispiel #1
0
        public PasswordHasher(ICommonHelpers commonHelpers, IValidationHelpers validationHelpers, IOptions <PasswordHasherOptions> optionsAccessor = null)
        {
            _commonHelpers     = commonHelpers;
            _validationHelpers = validationHelpers;
            var options = optionsAccessor?.Value ?? new PasswordHasherOptions();

            _iterCount = options.IterationCount;
            if (_iterCount < 1)
            {
                throw new InvalidOperationException();
            }

            _rng = RandomNumberGenerator.Create();
            _rsa = ReadRSA();
        }
        //private readonly IdentityClaimsProfileService _identityService;

        public PortfolioController(IEfRepository <Project> projectRepository
                                   , ILogger <PortfolioController> logger
                                   , IMapper mapper
                                   , ICommonHelpers commonHelpers
                                   , IFormFileProcessor formFileProcessor
                                   //, IdentityClaimsProfileService identityService
                                   )
        {
            _projectRepository = projectRepository;
            _logger            = logger;
            _mapper            = mapper;
            _commonHelpers     = commonHelpers;
            _formFileProcessor = formFileProcessor;
            //_identityService = identityService;
        }