Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="store"></param>
 /// <param name="userOrgStore"></param>
 /// <param name="roleOrgPerStore"></param>
 /// <param name="organizationStore"></param>
 /// <param name="mapper"></param>
 public UserManager(IUserStore store, IUserOrgStore userOrgStore, IRoleOrgPerStore roleOrgPerStore, IOrganizationStore organizationStore, IMapper mapper)
 {
     Store             = store ?? throw new ArgumentNullException(nameof(store));
     UserOrgStore      = userOrgStore ?? throw new ArgumentNullException(nameof(userOrgStore));
     RoleOrgPerStore   = roleOrgPerStore ?? throw new ArgumentNullException(nameof(roleOrgPerStore));
     OrganizationStore = organizationStore ?? throw new ArgumentNullException(nameof(organizationStore));
     Mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="store"></param>
 /// <param name="roleOrgPerStore"></param>
 /// <param name="mapper"></param>
 public PermissionManager(IPermissionStore store, IRoleOrgPerStore roleOrgPerStore, IMapper mapper)
 {
     Store           = store ?? throw new ArgumentNullException(nameof(store));
     RoleOrgPerStore = roleOrgPerStore ?? throw new ArgumentNullException(nameof(roleOrgPerStore));
     Mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="userRoleStore"></param>
 /// <param name="roleOrgPerStore"></param>
 /// <param name="organizationStore"></param>
 public RoleOrgPerManager(IUserRoleStore userRoleStore, IRoleOrgPerStore roleOrgPerStore, IOrganizationStore organizationStore)
 {
     UserRoleStore     = userRoleStore ?? throw new ArgumentNullException(nameof(userRoleStore));
     RoleOrgPerStore   = roleOrgPerStore ?? throw new ArgumentNullException(nameof(roleOrgPerStore));
     OrganizationStore = organizationStore ?? throw new ArgumentNullException(nameof(organizationStore));
 }