예제 #1
0
 public PasswordService(IUserRepository userRepository,
                        IOneTimeSecuredOperationService oneTimeSecuredOperationService,
                        IEncrypter encrypter)
 {
     _userRepository = userRepository.CheckIfNotEmpty();
     _oneTimeSecuredOperationService = oneTimeSecuredOperationService.CheckIfNotEmpty();
     _encrypter = encrypter.CheckIfNotEmpty();
 }
 public UserService(IUserRepository userRepository,
                    IEncrypter encrypter,
                    IOneTimeSecuredOperationService securedOperationService)
 {
     _userRepository          = userRepository.CheckIfNotEmpty();
     _encrypter               = encrypter.CheckIfNotEmpty();
     _securedOperationService = securedOperationService.CheckIfNotEmpty();
 }
 public AuthenticationService(ILogger <AuthenticationService> logger,
                              IUserRepository userRepository, IUserSessionRepository userSessionRepository,
                              IJwtTokenHandler jwtTokenHandler, IEncrypter encrypter)
 {
     _logger                = logger.CheckIfNotEmpty();
     _userRepository        = userRepository.CheckIfNotEmpty();
     _userSessionRepository = userSessionRepository.CheckIfNotEmpty();
     _encrypter             = encrypter.CheckIfNotEmpty();
     _jwtTokenHandler       = jwtTokenHandler.CheckIfNotEmpty();
 }
 public OneTimeSecuredOperationService(IOneTimeSecuredOperationRepository oneTimeSecuredOperationRepository,
                                       IEncrypter encrypter)
 {
     _oneTimeSecuredOperationRepository = oneTimeSecuredOperationRepository.CheckIfNotEmpty();
     _encrypter = encrypter.CheckIfNotEmpty();
 }