/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="userService">service to get user info (include region)</param>
 /// <param name="defaultRole">default role to ensure (active in DEBUG mode only)</param>
 public GesJwtSecurityTokenValidator(ILogger <GesJwtSecurityTokenValidator> logger, IUserRepositories userService, string defaultRole = null)
 {
     _userService  = userService;
     _appendRole   = defaultRole;
     _tokenHandler = new JwtSecurityTokenHandler();
     _logger       = logger;
 }
예제 #2
0
 public UserAPIController(ApplicationDbContext applicationDbContext, IUserRepositories userRepositories, IInterpersonalSkillRepositoroes interpersonalSkillRepositoroes, IUserUniversityRepositories universityRepositories, ITechnicalSkillRepositories technicalSkillRepositories, IProjectRepositories projectRepositories, IDegreeRepositories degreeRepositories, IProjectRepositories projectRepositories1)
 {
     this.applicationDbContext           = applicationDbContext;
     this.userRepositories               = userRepositories;
     this.degreeRepositories             = degreeRepositories;
     this.interpersonalSkillRepositoroes = interpersonalSkillRepositoroes;
     this.technicalSkillRepositories     = technicalSkillRepositories;
     this.degreeRepositories             = degreeRepositories;
     this.universityRepositories         = universityRepositories;
     this.projectRepositories            = projectRepositories;
 }
예제 #3
0
 public HomeController(IUserRepositories userRepositories)//使用构造函数注入
 {
     _userRepositories = userRepositories;
 }
 public AuthenticationController(IUserRepositories userService,
                                 IAuthenticationHelper authService)
 {
     _userService          = userService;
     _authenticationHelper = authService;
 }
예제 #5
0
 public UserService(IUserRepositories userRepositories)
 {
     _userRepositories = userRepositories;
 }
예제 #6
0
 public AuthService(IUserRepositories userRepository, IPassword password, IMapper mapper)
 {
     _userRepository = userRepository;
     _password       = password;
     _mapper         = mapper;
 }
예제 #7
0
 public UserLogicHandler(IUserRepositories userRepositories)
 {
     _userRepositories = userRepositories;
 }
예제 #8
0
 public UserService(IUserRepositories _userRepositories, Notiy notiy)
 {
     this.userRepositories = _userRepositories;
     this.notiy            = notiy;
 }
예제 #9
0
 public LoginController(IConfiguration _config, IUserRepositories _userRepositories)
 {
     configuration    = _config;
     userRepositories = _userRepositories;
 }
예제 #10
0
 public UserService(IUserRepositories userRepositories, IUnitOfWork unitOfWork)
 {
     _userRepositories = userRepositories;
     _unitOfWork       = unitOfWork;
 }
예제 #11
0
 public AdminController(ApplicationDbContext applicationDbContext, IUserRepositories userRepositories, IUserUniversityRepositories userUniversityRepositories)
 {
     this.applicationDbContext       = applicationDbContext;
     this.userRepositories           = userRepositories;
     this.userUniversityRepositories = userUniversityRepositories;
 }
예제 #12
0
 public UserController(IUserRepositories userRepositories)
 {
     _userRepositories = userRepositories;
 }
예제 #13
0
 public UsersController(IUserRepositories <UserToDoItem> repos)
 {
     repository = repos;
 }
예제 #14
0
 public LoginService(IUserRepositories _userRepositories)
 {
     userRepositories = _userRepositories;
 }
예제 #15
0
 public UserService(IUserRepositories userRepositories, IUnitOfWork unitOfWork, ILogger <UserService> logger)
 {
     _userRepositories = userRepositories;
     _unitOfWork       = unitOfWork;
     _ILogger          = logger;
 }
 public BusinessLayerUser(IUserRepositories userRepositories)
 {
     UserRepository = userRepositories;
 }
예제 #17
0
 public UserTokenController(IUserRepositories <User> repos)
 {
     repository = repos;
 }
예제 #18
0
 public UserController(IUserRepositories userRepositories, IMapper mapper)
 {
     _userRepositories = userRepositories;
     _mapper           = mapper;
 }
예제 #19
0
 public UserService(IUserRepositories _userRepositories)
 {
     this.userRepositories = _userRepositories;
 }