Exemple #1
0
        public AppUserManager(
            IUserStore <AppUser> userStore,
            IServiceProvider service,
            IEnumerable <IUserValidator <AppUser> > userValidators,
            IEnumerable <IPasswordValidator <AppUser> > passwordValidators,
            ILogger <AppUserManager> logger,
            AppIdentityErrorDescriber error,
            ILookupNormalizer keyNoramalizer,
            IPasswordHasher <AppUser> passwordHasher,
            IOptions <IdentityOptions> options

            )


            : base(userStore, options, passwordHasher, userValidators, passwordValidators, keyNoramalizer, error, service, logger)
        {
            _error              = error;
            _keyNoramalizer     = keyNoramalizer;
            _logger             = logger;
            _options            = options;
            _passwordHasher     = passwordHasher;
            _service            = service;
            _passwordValidators = passwordValidators;
            _userStore          = userStore;
            _userValidators     = userValidators;
        }
Exemple #2
0
 public IdentityUserManager(IUserStore <AppIdentityUser> store,
                            IOptions <IdentityOptions> optionsAccessor,
                            IPasswordHasher <AppIdentityUser> passwordHasher,
                            IEnumerable <IUserValidator <AppIdentityUser> > userValidators,
                            IEnumerable <IPasswordValidator <AppIdentityUser> > passwordValidators,
                            ILookupNormalizer keyNormalizer, AppIdentityErrorDescriber errors,
                            IServiceProvider services, ILogger <UserManager <AppIdentityUser> > logger)
     : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
 {
     _cancellationToken = services?.GetService <IHttpContextAccessor>()?.HttpContext?.RequestAborted ?? CancellationToken.None;
 }