Beispiel #1
0
        public TokenValidatorService(IUsersUserIdentityServiceJwt usersService, ITokenStoreService tokenStoreService)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(_tokenStoreService));
        }
        public AccountController(
            IUsersUserIdentityServiceJwt usersService,
            ITokenStoreService tokenStoreService,
            IUnitOfWork uow,
            IAntiForgeryCookieService antiforgery)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _antiforgery = antiforgery;
            _antiforgery.CheckArgumentIsNull(nameof(antiforgery));
        }
Beispiel #3
0
 public MyProtectedAdminApiController(IUsersUserIdentityServiceJwt usersService)
 {
     _usersService = usersService;
     _usersService.CheckArgumentIsNull(nameof(usersService));
 }
Beispiel #4
0
 public ChangePasswordController(IUsersUserIdentityServiceJwt usersService)
 {
     _usersService = usersService;
     _usersService.CheckArgumentIsNull(nameof(usersService));
 }