예제 #1
0
 public AccountService(UserManager <AppUser> userManager, IUnitOfWork uow, IJwtService jwtService, IOptions <JwtIssuerOptions> jwtOptions, CASContext context)
 {
     _context     = context;
     _uow         = uow;
     _userManager = userManager;
     _jwtService  = jwtService;
     _jwtOptions  = jwtOptions.Value;
     ThrowIfInvalidOptions(_jwtOptions);
 }
예제 #2
0
 public UnitOfWork(CASContext context)
 {
     _context = context;
 }
예제 #3
0
 public RepositoryBase(CASContext context)
 {
     this._context = context;
     _dbSet        = _context.Set <TEntity>();
 }