Example #1
0
        public MajidLogInManager(
            MajidUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            IPasswordHasher <TUser> passwordHasher,
            MajidRoleManager <TRole, TUser> roleManager,
            MajidUserClaimsPrincipalFactory <TUser, TRole> claimsPrincipalFactory)
        {
            _passwordHasher            = passwordHasher;
            _claimsPrincipalFactory    = claimsPrincipalFactory;
            MultiTenancyConfig         = multiTenancyConfig;
            TenantRepository           = tenantRepository;
            UnitOfWorkManager          = unitOfWorkManager;
            SettingManager             = settingManager;
            UserLoginAttemptRepository = userLoginAttemptRepository;
            UserManagementConfig       = userManagementConfig;
            IocResolver = iocResolver;
            RoleManager = roleManager;
            UserManager = userManager;

            ClientInfoProvider = NullClientInfoProvider.Instance;
        }
 public MajidSignInManager(
     MajidUserManager <TRole, TUser> userManager,
     IHttpContextAccessor contextAccessor,
     MajidUserClaimsPrincipalFactory <TUser, TRole> claimsFactory,
     IOptions <IdentityOptions> optionsAccessor,
     ILogger <SignInManager <TUser> > logger,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager,
     IAuthenticationSchemeProvider schemes)
     : base(
         userManager,
         contextAccessor,
         claimsFactory,
         optionsAccessor,
         logger,
         schemes)
 {
     _unitOfWorkManager = unitOfWorkManager;
     _settingManager    = settingManager;
 }