Пример #1
0
 public AuthService(IMapper mapper, UserManager <UserDbEntity> userManager, SignInManager <UserDbEntity> signInManager, IOptions <MyJwtBearerOptions> options, AmsDbContext dbContext)
 {
     _mapper        = mapper;
     _userManager   = userManager;
     _signInManager = signInManager;
     _jwtOptions    = options.Value;
     _dbContext     = dbContext;
 }
Пример #2
0
 public AuthService(UserManager <UserDbEntity> userManager, SignInManager <UserDbEntity> signInManager,
                    IOptions <MyJwtBearerOptions> options, ApplicationDbContext dbContext)
 {
     _userManager       = userManager;
     _signInManager     = signInManager;
     _jwtOptions        = options.Value;
     _dbContext         = dbContext;
     _notFoundException = new EntityNotFoundException("User");
 }