public RoleApplicationManager(IRoleApplicationStore roleApplicationStore,
                               IUserRoleStore userRoleStore,
                               ExtendUserManager <Users> extendUserManager)
 {
     Store = roleApplicationStore ?? throw new ArgumentNullException(nameof(roleApplicationStore));
     _extendUserManager = extendUserManager ?? throw new ArgumentNullException(nameof(extendUserManager));
     _userRoleStore     = userRoleStore ?? throw new ArgumentNullException(nameof(userRoleStore));
 }
 public OrganizationExpansionManager(IOrganizationExpansionStore organizationExpansionStore,
                                     IOrganizationStore organizationStore,
                                     ExtendUserManager <Users> extendUserManager
                                     )
 {
     Store = organizationExpansionStore ?? throw new ArgumentNullException(nameof(organizationExpansionStore));
     _organizationStore = organizationStore ?? throw new ArgumentNullException(nameof(organizationStore));
     _extendUserManager = extendUserManager ?? throw new ArgumentNullException(nameof(extendUserManager));
 }
예제 #3
0
        //public InitManager()
        //{

        //}
        public InitManager(OrganizationsManager organizationsManager,
                           ApplicationManager applicationManager,
                           RoleApplicationManager roleApplicationManager,
                           ExtendUserManager <Users> extendUserManager,
                           RolePermissionManager rolePermissionManager,
                           RoleManager <Roles> roleManager,
                           PermissionItemManager permissionItemManager,
                           PermissionOrganizationManager permissionOrganizationManager,
                           PermissionExpansionManager permissionExpansionManager,
                           OrganizationExpansionManager organizationExpansionManager
                           )
        {
            _organizationsManager          = organizationsManager ?? throw new ArgumentNullException(nameof(organizationsManager));
            _applicationManager            = applicationManager ?? throw new ArgumentNullException(nameof(applicationManager));
            _roleApplicationManager        = roleApplicationManager ?? throw new ArgumentNullException(nameof(roleApplicationManager));
            _extendUserManager             = extendUserManager ?? throw new ArgumentNullException(nameof(extendUserManager));
            _rolePermissionManager         = rolePermissionManager ?? throw new ArgumentNullException(nameof(rolePermissionManager));
            _roleManager                   = roleManager ?? throw new ArgumentNullException(nameof(roleManager));
            _permissionItemManager         = permissionItemManager ?? throw new ArgumentNullException(nameof(permissionItemManager));
            _permissionOrganizationManager = permissionOrganizationManager ?? throw new ArgumentNullException(nameof(permissionOrganizationManager));
            _permissionExpansionManager    = permissionExpansionManager ?? throw new ArgumentNullException(nameof(permissionExpansionManager));
            _organizationExpansionManager  = organizationExpansionManager ?? throw new ArgumentNullException(nameof(organizationExpansionManager));
        }