Exemple #1
0
 public RestrictedAccountManager(
     AuthorityDbContext context,
     MultitenantUserManager <ApplicationUser> userManager,
     IRestrictedRoleService roleService,
     IUserOrgStructureReferencesValidator userReferencesValidator,
     ITenantIdProvider tenantIdProvider,
     ITenantEntityAccessChecker accessChecker,
     IAccessScopeFilter accessScopeFilter,
     IEmailService emailService,
     AutoMapperConfig autoMapperConfig)
     : base(context, userManager, roleService, userReferencesValidator, emailService, autoMapperConfig)
 {
     _accessScopeFilter = accessScopeFilter;
     _accessChecker     = accessChecker;
     _tenantIdProvider  = tenantIdProvider;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="context"></param>
 /// <param name="userManager"></param>
 /// <param name="roleService"></param>
 /// <param name="userReferencesValidator">used to validate Users being created or updated</param>
 /// <param name="mailService"></param>
 /// <param name="autoMapperConfig"></param>
 public UnrestrictedAccountManager(
     AuthorityDbContext context,
     MultitenantUserManager <ApplicationUser> userManager,
     IRoleService roleService,
     IUserOrgStructureReferencesValidator userReferencesValidator,
     IEmailService mailService,
     AutoMapperConfig autoMapperConfig
     )
 {
     _context     = context;
     _userManager = userManager;
     _roleService = roleService;
     _mailService = mailService;
     _mapper      = autoMapperConfig.CreateMapper();
     // these are needed for validation of user model
     _userReferencesValidator = userReferencesValidator;
 }