public JWTAuthenticationService(IOptions <TokenManagement> tokenManagement, UserRepository userRepo, RoleMapper roleMapper, PasswordCryptoService cryptoService)
 {
     _tokenManagement = tokenManagement.Value;
     _userRepo        = userRepo;
     _roleMapper      = roleMapper;
     _cryptoService   = cryptoService;
 }
示例#2
0
 public UserMapper(RoleMapper roleMapper, PasswordCryptoService cryptoService)
 {
     _roleMapper    = roleMapper;
     _crytpoService = cryptoService;
 }