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; }
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; }
public void SetJwtCurrentUser(JwtCurrentUserFactory jwtCurrentUsertFactory) => this._jwtCurrentUsertFactory = jwtCurrentUsertFactory;