public AccountController( IApplicationUserManager usersService, ITokenStoreService tokenStoreService, ITokenFactoryService tokenFactoryService, IApplicationSignInManager signInManager, IUnitOfWork uow ) { _usersService = usersService; _usersService.CheckArgumentIsNull(nameof(usersService)); _tokenStoreService = tokenStoreService; _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService)); _uow = uow; _uow.CheckArgumentIsNull(nameof(_uow)); _signInManager = signInManager; _signInManager.CheckArgumentIsNull(nameof(_signInManager)); _tokenFactoryService = tokenFactoryService; _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService)); }
public AccountController( IUsersService usersService, ITokenStoreService tokenStoreService, ITokenFactoryService tokenFactoryService, IUnitOfWork uow, IAntiForgeryCookieService antiforgery, ITagServices tagServices, IZirReshtehServices zirReshteh ) { _zirreshteh = zirReshteh; _Tags = tagServices; _usersService = usersService; _usersService.CheckArgumentIsNull(nameof(usersService)); _tokenStoreService = tokenStoreService; _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService)); _uow = uow; _uow.CheckArgumentIsNull(nameof(_uow)); _antiforgery = antiforgery; _antiforgery.CheckArgumentIsNull(nameof(antiforgery)); _tokenFactoryService = tokenFactoryService; _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService)); }
public AccountService(ITokenFactoryService tokenFactoryService, ITokenStoreService tokenStoreService, IUnitOfWork uow, IAntiForgeryCookieService antiforgery) { _tokenFactoryService = tokenFactoryService; _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService)); _uow = uow; _antiforgery = antiforgery; _antiforgery.CheckArgumentIsNull(nameof(antiforgery)); _tokenStoreService = tokenStoreService; _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService)); }
public TokenStoreService( IUserTokenRepository userTokenRepository, IOptionsSnapshot <BearerTokensOptions> configuration, ITokenFactoryService tokenFactoryService) { _userTokenRepository = userTokenRepository; _configuration = configuration; _configuration.CheckArgumentIsNull(nameof(configuration)); _tokenFactoryService = tokenFactoryService; _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService)); }
public TokenStoreService(IUnitOfWork uow, ISecurityService securityService, IOptionsSnapshot <BearerTokensOptions> configuration, ITokenFactoryService tokenFactoryService) { _uow = uow; _uow.CheckArgumentIsNull(nameof(_uow)); _securityService = securityService; _securityService.CheckArgumentIsNull(nameof(_securityService)); _tokens = _uow.Set <UserToken>(); _configuration = configuration; _configuration.CheckArgumentIsNull(nameof(configuration)); _tokenFactoryService = tokenFactoryService; _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService)); }
public SecurityController( IUserService userService, ITokenStoreService tokenStoreService, ITokenFactoryService tokenFactoryService, IAntiForgeryCookieService antiforgery) { _userService = userService; _userService.CheckArgumentIsNull(nameof(userService)); _tokenStoreService = tokenStoreService; _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService)); _antiforgery = antiforgery; _antiforgery.CheckArgumentIsNull(nameof(antiforgery)); _tokenFactoryService = tokenFactoryService; _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService)); }
public AuthController(IUsersService usersService, ITokenStoreService tokenStoreService, ITokenFactoryService tokenFactoryService, IUnitOfWork uow, IAntiForgeryCookieService antiforgery, ILogger <AuthController> logger) { _usersService = usersService; _usersService.CheckArgumentIsNull(nameof(usersService)); _tokenStoreService = tokenStoreService; _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService)); _uow = uow; _uow.CheckArgumentIsNull(nameof(_uow)); _antiforgery = antiforgery; _antiforgery.CheckArgumentIsNull(nameof(antiforgery)); _tokenFactoryService = tokenFactoryService; _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService)); _logger = logger; }
public AccountsController( IUserService usersService, ITokenStoreService tokenStoreService, ITokenFactoryService tokenFactoryService, IAuthenticationUnitOfWork 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)); _tokenFactoryService = tokenFactoryService; _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService)); }