示例#1
0
 public UserService(
     IUserRepository userRepository,
     IPasswordHasher passwordHasher,
     IJsonWebTokenGenerator jsonWebTokenGenerator,
     IMapper mapper
     )
     : base(userRepository, mapper)
 {
     this.userRepository        = userRepository;
     this.passwordHasher        = passwordHasher;
     this.jsonWebTokenGenerator = jsonWebTokenGenerator;
 }
示例#2
0
 public LoginController(IUserService userService, IJsonWebTokenGenerator tokenGenerator)
 {
     this.userService    = userService;
     this.tokenGenerator = tokenGenerator;
 }