示例#1
0
 public ProfileService(IMapper mapper, IRepository <User> userRepository,
                       IHttpContextAccessor httpContextAccessor, IConfiguration configuration, IEmailService emailService,
                       IHashMd5 hashMd5Service)
 {
     _mapper              = mapper;
     _userRepository      = userRepository;
     _httpContextAccessor = httpContextAccessor;
     _configuration       = configuration;
     _emailService        = emailService;
     _hashMd5Service      = hashMd5Service;
 }
 public RegistrationService(IRepository <User> repositoryUser, IHashMd5 hashMd5Service,
                            ITokenService tokenService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration,
                            IRepository <Role> repositoryRole, IRepository <UserRoles> repositoryUserRoles, IMapper mapper)
 {
     _repositoryUser      = repositoryUser;
     _hashMd5Service      = hashMd5Service;
     _tokenService        = tokenService;
     _httpContextAccessor = httpContextAccessor;
     _configuration       = configuration;
     _repositoryRole      = repositoryRole;
     _repositoryUserRoles = repositoryUserRoles;
     _mapper = mapper;
 }
示例#3
0
 public TokenService(IRepository <User> repository, IHashMd5 hashMd5Service, IConfiguration configuration)
 {
     _repository     = repository;
     _hashMd5Service = hashMd5Service;
     _configuration  = configuration;
 }