Example #1
0
 public UserManager(IUserRepository <IdentityUser> userRepository, ICustomPasswordHasher hasher, IPersonalInformationRepository <PersonalInfo, Guid> personalInformationRepository)
 {
     this._userRepository         = userRepository;
     this._hasher                 = hasher;
     this._personalInfoRepository = personalInformationRepository;
 }
Example #2
0
        private readonly IPersonalInformationRepository <PersonalInfo, Guid> _personalInformationRepository;//TODO: remove repos and use some method in UserManager

        public LoginService(ICustomPasswordHasher hasher, IUserManager <IdentityUser, Guid> userManager, IPersonalInformationRepository <PersonalInfo, Guid> personalInformationRepository)
        {
            this._hasher      = hasher;
            this._userManager = userManager;
            this._personalInformationRepository = personalInformationRepository;
        }