예제 #1
0
 public UserService(IValidationDictionary validationDictionary, IUserRespository respository,
     ICategoryRespository categoryRespository, IEventRespository eventRespository,
     INotificationRespository notificationRespository)
 {
     _respository = respository;
     _categoryRespository = categoryRespository;
     _validationDictionary = validationDictionary;
     _eventRespository = eventRespository;
     _notificationRespository = notificationRespository;
 }
예제 #2
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="userRepository">用户仓储</param>
 public LoginController(IUserRespository userRepository)
 {
     //用户仓储
     _userRepository = userRepository;
 }
예제 #3
0
 public UserService(IUserRespository userRespository, IOptions <AuthenticationSettings> authenticationSettings)
 {
     _userRespository        = userRespository;
     _authenticationSettings = authenticationSettings.Value;
 }
 public UserQueryHandler(IUserRespository userRepository, IMapper mapper, NotificationContext notificationContext) : base(mapper, notificationContext)
 {
     _userRepository = userRepository;
 }
예제 #5
0
 public ElectionController(IUserRespository user, IElectionRespository election)
 {
     _user     = user;
     _election = election;
 }
예제 #6
0
 public UserAppService(IUserRespository userRespository,
                       IMapper mapper)
 {
     _userRespository = userRespository;
     _mapper          = mapper;
 }
 public CustomUserAppService()
 {
     _userRepository = new UserRepository();
 }
 public UserService(IUserRespository user)
 {
     _user = user;
 }
예제 #9
0
 public AdministratorController(IUserRespository userRespository, ILogRespository log)
 {
     user = userRespository;
     logs = log;
 }
예제 #10
0
 public BaseService(DbContextFactory contextFactory)
 {
     _userRepo = new UserRepository(contextFactory);
     _userExperienceRepository = new UserExperienceRepository(contextFactory);
     _hardCodeRepository       = new HardCodeRepository(contextFactory);
 }
예제 #11
0
 public UserController(IUserRespository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
 public UserService()
 {
     _userRespository = _unitOfWork.UserRespository;
     _repository      = _userRespository;
 }
예제 #13
0
 public ExamBackController(IUserRespository userRespository)
 {
     user = userRespository;
 }
예제 #14
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="permissionRepository">权限</param>
 /// <param name="userRepository">用户</param>
 /// <param name="roleRespository">角色</param>
 public PermissionController(IPermissionRepository permissionRepository, IUserRespository userRepository, IRoleRespository roleRespository)
 {
     _permissionRepository = permissionRepository;
     _userRepository       = userRepository;
     _roleRespository      = roleRespository;
 }
예제 #15
0
 public UserManager(IUserRespository repository)
 {
     this.repository = repository ?? throw new ArgumentException("Cannot init UserManager with null repository.", "repository");
 }
 public UserService(IUserRespository userRespository)
 {
     _userRespository = userRespository;
 }
예제 #17
0
 public UserService(IUserRespository userRespository, ITokenHelper tokenHelper)
 {
     _userRespository = userRespository;
     _tokenHelper     = tokenHelper;
 }
예제 #18
0
 public UserController(IUserRespository repo)
 {
     respository = repo;
 }