Exemplo n.º 1
0
 public AuthenticateQueryHandler(IAccountRepository accountRepository, IGenerateToken tokenGenerator, Settings settings, IGetIPAddress ipAddressGetter)
 {
     _accountRepository = accountRepository;
     _tokenGenerator    = tokenGenerator;
     _settings          = settings;
     _ipAddressGetter   = ipAddressGetter;
 }
 public RegisterUser(UserManager <AppIdentityUser> userManager, SignInManager <AppIdentityUser> signInManager, IGenerateToken generateToken, MangaContext mangaContext)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.generateToken = generateToken;
     this.mangaContext  = mangaContext;
 }
Exemplo n.º 3
0
 public PasswordResetCommandHandler(IAccountRepository accountRepository,
                                    Settings settings,
                                    IGenerateToken tokenGenerator, IEmailService emailService)
 {
     _accountRepository = accountRepository;
     _settings          = settings;
     _tokenGenerator    = tokenGenerator;
     _emailService      = emailService;
 }
Exemplo n.º 4
0
 public RefreshTokenCommandHandler(IAccountRepository accountRepository,
                                   Settings settings,
                                   IGenerateToken tokenGenerator,
                                   IGetIPAddress ipAddressGetter,
                                   ILogger <RefreshTokenCommandHandler> logger)
 {
     _accountRepository = accountRepository;
     _settings          = settings;
     _tokenGenerator    = tokenGenerator;
     _ipAddressGetter   = ipAddressGetter;
     _logger            = logger;
 }
Exemplo n.º 5
0
 public LoginUser(SignInManager <IdentityUser> signInManager, UserManager <IdentityUser> userManager, IGenerateToken generateToken)
 {
     this.signInManager = signInManager;
     this.userManager   = userManager;
     this.generateToken = generateToken;
 }
Exemplo n.º 6
0
 public UserController(UserManager <IdentityUser> userManager,
                       IGenerateToken generateToken)
 {
     _userManager   = userManager;
     _generateToken = generateToken;
 }
Exemplo n.º 7
0
 public RegisterUser(UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IGenerateToken generateToken)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.generateToken = generateToken;
 }