Example #1
0
 public RoleManager(
     IdentityDbContext db,
     RoleStore roleStore,
     IEnumerable <IRoleValidator <Role> > roleValidators,
     ILookupNormalizer keyNormalizer,
     IdentityErrorDescriber errors,
     ILogger <RoleManager <Role> > logger,
     IHttpContextAccessor contextAccessor
     )
     : base(roleStore, roleValidators, keyNormalizer, errors, logger, contextAccessor)
 {
     _db = db;
 }
Example #2
0
        public UserManager(
            UserStore userStore,
            IOptions <IdentityOptions> options,
            PasswordHasher passwordHasher,
            IEnumerable <IUserValidator <User> > userValidators,
            IEnumerable <IPasswordValidator <User> > passwordValidators,
            ILookupNormalizer keyNormalizer,
            IdentityErrorDescriber errors,
            IServiceProvider services,
            ILogger <UserManager <User> > logger
            //UserWithTenantValidator userWithTenantValidator,
            //EmailTenantValidator emailTenantValidator
            )
            : base(userStore, options, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
        {
            _services = services;
            _db       = (IdentityDbContext)_services.GetService(typeof(IdentityDbContext));

            Ensure.NotNull(_db, "IdentityDbContext cannot be null");
        }
Example #3
0
 public PageSecurityManager(IdentityDbContext db, ILogger <UserManager <User> > logger)
 {
     _db = db;
     Ensure.NotNull(_db, "IdentityDbContext cannot be null");
 }
Example #4
0
 public UserStore(IdentityDbContext dbContext, IdentityErrorDescriber describer) : base(dbContext, describer)
 {
     _db = dbContext;
 }
Example #5
0
 public TenantManager(IdentityDbContext identityDb)
 {
     _identityDb = identityDb;
 }
Example #6
0
 public SecurityPoolManager(IdentityDbContext dbContext, RoleManager roleManager, UserManager userManager)
 {
     _db          = dbContext;
     _roleManager = roleManager;
     _userManager = userManager;
 }