/// <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; }
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; }
public HomeController(IUserRepositories userRepositories)//使用构造函数注入 { _userRepositories = userRepositories; }
public AuthenticationController(IUserRepositories userService, IAuthenticationHelper authService) { _userService = userService; _authenticationHelper = authService; }
public UserService(IUserRepositories userRepositories) { _userRepositories = userRepositories; }
public AuthService(IUserRepositories userRepository, IPassword password, IMapper mapper) { _userRepository = userRepository; _password = password; _mapper = mapper; }
public UserLogicHandler(IUserRepositories userRepositories) { _userRepositories = userRepositories; }
public UserService(IUserRepositories _userRepositories, Notiy notiy) { this.userRepositories = _userRepositories; this.notiy = notiy; }
public LoginController(IConfiguration _config, IUserRepositories _userRepositories) { configuration = _config; userRepositories = _userRepositories; }
public UserService(IUserRepositories userRepositories, IUnitOfWork unitOfWork) { _userRepositories = userRepositories; _unitOfWork = unitOfWork; }
public AdminController(ApplicationDbContext applicationDbContext, IUserRepositories userRepositories, IUserUniversityRepositories userUniversityRepositories) { this.applicationDbContext = applicationDbContext; this.userRepositories = userRepositories; this.userUniversityRepositories = userUniversityRepositories; }
public UserController(IUserRepositories userRepositories) { _userRepositories = userRepositories; }
public UsersController(IUserRepositories <UserToDoItem> repos) { repository = repos; }
public LoginService(IUserRepositories _userRepositories) { userRepositories = _userRepositories; }
public UserService(IUserRepositories userRepositories, IUnitOfWork unitOfWork, ILogger <UserService> logger) { _userRepositories = userRepositories; _unitOfWork = unitOfWork; _ILogger = logger; }
public BusinessLayerUser(IUserRepositories userRepositories) { UserRepository = userRepositories; }
public UserTokenController(IUserRepositories <User> repos) { repository = repos; }
public UserController(IUserRepositories userRepositories, IMapper mapper) { _userRepositories = userRepositories; _mapper = mapper; }
public UserService(IUserRepositories _userRepositories) { this.userRepositories = _userRepositories; }