Exemple #1
0
        public AuthController(StreetContext xjpContext, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions, IUserService userService, IMemoryCache cache)
        {
            _jwtFactory  = jwtFactory;
            _jwtOptions  = jwtOptions.Value;
            _userService = userService;
            _cache       = cache;

            _repository = new XjpRepository(xjpContext);
        }
Exemple #2
0
 public PersonController(StreetContext xjpContext) //StreetContext context
 {
     _context    = xjpContext;                     // new StreetContext();
     _repository = new XjpRepository(_context);
 }