Ejemplo n.º 1
0
 public ExtendUserManager(IUserStore <TUser> store,
                          RoleManager <Roles> roleManager,
                          IOrganizationExpansionStore organizationExpansionStore,
                          IMapper mapper,
                          IUserRoleStore userRoleStore,
                          ExtendUserStore <ApplicationDbContext> extendUserStore,
                          IOrganizationStore organizationStore,
                          IOptions <IdentityOptions> optionsAccessor,
                          IPasswordHasher <TUser> passwordHasher,
                          IEnumerable <IUserValidator <TUser> > userValidators,
                          IEnumerable <IPasswordValidator <TUser> > passwordValidators,
                          ILookupNormalizer keyNormalizer,
                          IdentityErrorDescriber errors,
                          IServiceProvider services,
                          ILogger <UserManager <TUser> > logger)
     : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
 {
     Store                       = store ?? throw new ArgumentNullException(nameof(store));
     _extendUserStore            = extendUserStore ?? throw new ArgumentNullException(nameof(extendUserStore));
     _organizationStore          = organizationStore ?? throw new ArgumentNullException(nameof(organizationStore));
     _mapper                     = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _userRoleStore              = userRoleStore ?? throw new ArgumentNullException(nameof(userRoleStore));
     _roleManager                = roleManager ?? throw new ArgumentNullException(nameof(roleManager));
     _organizationExpansionStore = organizationExpansionStore ?? throw new ArgumentNullException(nameof(organizationExpansionStore));
 }
 /// <summary>
 /// 构造器
 /// </summary>
 /// <param name="store"></param>
 /// <param name="userOrgStore"></param>
 /// <param name="roleOrgStore"></param>
 /// <param name="roleOrgPerStore"></param>
 /// <param name="mapper"></param>
 public OrganizationManager(IOrganizationStore store, IUserOrgStore userOrgStore, IRoleOrgStore roleOrgStore, IRoleOrgPerStore roleOrgPerStore, IMapper mapper)
 {
     OrganizationStore = store ?? throw new ArgumentNullException(nameof(store));
     UserOrgStore      = userOrgStore ?? throw new ArgumentNullException(nameof(userOrgStore));
     RoleOrgStore      = roleOrgStore ?? throw new ArgumentNullException(nameof(roleOrgStore));
     RoleOrgPerStore   = roleOrgPerStore ?? throw new ArgumentNullException(nameof(roleOrgPerStore));
     Mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 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));
 }
Ejemplo n.º 4
0
 public RoleManger(IRoleStore store, IPermissionStore permissionStore, IOrganizationStore organizationStore, IUserRoleStore userRoleStore, IUserOrgStore userOrgStore, IRoleOrgStore roleOrgStore, IRoleOrgPerStore roleOrgPerStore, IMapper mapper)
 {
     Store             = store ?? throw new ArgumentNullException(nameof(store));
     PermissionStore   = permissionStore ?? throw new ArgumentNullException(nameof(permissionStore));
     OrganizationStore = organizationStore ?? throw new ArgumentNullException(nameof(organizationStore));
     UserRoleStore     = userRoleStore ?? throw new ArgumentNullException(nameof(userRoleStore));
     UserOrgStore      = userOrgStore ?? throw new ArgumentNullException(nameof(userOrgStore));
     RoleOrgStore      = roleOrgStore ?? throw new ArgumentNullException(nameof(roleOrgStore));
     RoleOrgPerStore   = roleOrgPerStore ?? throw new ArgumentNullException(nameof(roleOrgPerStore));
     Mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Ejemplo n.º 5
0
 public UserController(
     IUserStore store,
     IOrganizationStore organizationStore,
     JWT jwt,
     IEventSender eventSender,
     ISecurityContext securityContext
     ) : base(store, eventSender, securityContext)
 {
     this.OrganizationStore = organizationStore;
     this.JWT             = jwt;
     this.SecurityContext = securityContext;
 }
Ejemplo n.º 6
0
 public ApplicationOrganizationManager(IOrganizationStore store)
     : base(store)
 {
 }
Ejemplo n.º 7
0
 /// <summary>
 /// 构造器
 /// </summary>
 /// <param name="context"></param>
 public RoleOrgPerStore(ApplicationDbContext context, IOrganizationStore organizationStore)
 {
     Context           = context;
     OrganizationStore = organizationStore;
     Logger            = LoggerManager.GetLogger <RoleOrgPerStore>();
 }
 public OrganizationManager(IOrganizationStore store)
 {
     this.Store = store;
 }
 public BookingPlaceController(IOrganizationStore organizationStore, IUserStore userStore, IYandexSearchService yandexSearchService)
 {
     _organizationStore   = organizationStore;
     _userStore           = userStore;
     _yandexSearchService = yandexSearchService;
 }
Ejemplo n.º 10
0
 public OrgsController(UserManager <User> userManager, IOrganizationStore organizationStore, IUserStoreEx userStoreEx)
 {
     _UserManager       = userManager;
     _OrganizationStore = organizationStore;
     _UserStoreEx       = userStoreEx;
 }
Ejemplo n.º 11
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));
 }
 public OrganizationsManager(IOrganizationStore organizationStore)
 {
     Store = organizationStore ?? throw new ArgumentNullException(nameof(organizationStore));
 }
Ejemplo n.º 13
0
 public CounterpartiesController(UserManager <User> userManager, IOrganizationStore organizationStore)         //, IUserStoreEx userStoreEx
 {
     _UserManager       = userManager;
     _OrganizationStore = organizationStore;
 }
Ejemplo n.º 14
0
 public OrganizationManager(IOrganizationStore <TOrganization, TKey> store)
 {
     this.Store = store;
 }