Esempio n. 1
0
 public override void Dispose()
 {
     if (_jwtCurrentUsertFactory != null)
     {
         this._jwtCurrentUsertFactory.Dispose();
         this._jwtCurrentUsertFactory = null;
     }
     base.Dispose();
 }
        public CommonAreaController(
            ICommonAreaBusinessService commonAreaBusinessService,
            ICommonAreaScheduleBusinessService commonAreaScheduleBusinessService,
            JwtCurrentUserFactory jwtCurrentUserFactory,
            JwtFactory jwtFactory)
        {
            _commonAreaBusinessService = commonAreaBusinessService;
            _scheduleBusinessService   = commonAreaScheduleBusinessService;

            _jwtCurrentUserFactory = jwtCurrentUserFactory;
            _jwtFactory            = jwtFactory;
        }
Esempio n. 3
0
        public AuthController(
            IOptions <JwtIssuerOptions> jwtOptions,
            JwtCurrentUserFactory jwtCurrentUserFactory,
            JwtFactory jwtFactory,
            IEmployeeRepository employeeRepository,
            IEmployeeBusinessService employeeBusinessService,
            IResidentRepository residentRepository,
            IResidentBusinessService residentBusinessService)
        {
            _jwtOptions = jwtOptions.Value;
            _jwtFactory = jwtFactory;

            _employeeRepository      = employeeRepository;
            _employeeBusinessService = employeeBusinessService;

            _residentRepository      = residentRepository;
            _residentBusinessService = residentBusinessService;
        }
Esempio n. 4
0
 public void SetJwtCurrentUser(JwtCurrentUserFactory jwtCurrentUsertFactory) => this._jwtCurrentUsertFactory = jwtCurrentUsertFactory;