Beispiel #1
0
 public AuthService(IUserRepository userRepository, IJwtUtil jwtUtil)
 {
     this.jwtUtil        = jwtUtil;
     this.userRepository = userRepository;
 }
 public AuthService(IJwtUtil jwtUtil, IUserRepository userRepository, IAdministratorRepository administratorRepository)
 {
     this.jwtUtil                 = jwtUtil;
     this.userRepository          = userRepository;
     this.administratorRepository = administratorRepository;
 }
Beispiel #3
0
 // initialize middleware and inject interfaces
 public TokenActiveMiddleware(IJwtUtil jwtUtil, IHttpContextAccessor httpContextAccessor)
 {
     this.jwtUtil             = jwtUtil;
     this.httpContextAccessor = httpContextAccessor;
 }