コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="_menuRepository"></param>
 /// <param name="_systemTypeRepository"></param>
 /// <param name="logService"></param>
 public RoleAuthorizeService(IRoleAuthorizeRepository repository, IMenuRepository _menuRepository, ISystemTypeRepository _systemTypeRepository, ILogService logService) : base(repository)
 {
     _repository          = repository;
     menuRepository       = _menuRepository;
     systemTypeRepository = _systemTypeRepository;
     _logService          = logService;
 }
コード例 #2
0
 public PermissionService(IPermissionRepository permissionRepository, IRoleAuthorizeRepository roleAuthorizeRepository,
                          IUserRoleRelationRepository userRoleRelationRepository) : base(permissionRepository)
 {
     _permissionRepository       = permissionRepository;
     _roleAuthorizeRepository    = roleAuthorizeRepository;
     _userRoleRelationRepository = userRoleRelationRepository;
 }
コード例 #3
0
 public PermissionService(IPermissionRepository permissionRepository, IRoleAuthorizeRepository roleAuthorizeRepository,
                          IUserRoleRelationRepository userRoleRelationRepository)
 {
     this._permissionRepository       = permissionRepository;
     this._roleAuthorizeRepository    = roleAuthorizeRepository;
     this._userRoleRelationRepository = userRoleRelationRepository;
 }
コード例 #4
0
ファイル: MenuService.cs プロジェクト: war-man/YuebonCore
 /// <summary>
 ///
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="_userRepository"></param>
 /// <param name="_roleAuthorizeRepository"></param>
 /// <param name="_systemTypeRepository"></param>
 /// <param name="logService"></param>
 public MenuService(IMenuRepository repository, IUserRepository _userRepository, IRoleAuthorizeRepository _roleAuthorizeRepository, ISystemTypeRepository _systemTypeRepository, ILogService logService) : base(repository)
 {
     _MenuRepository         = repository;
     userRepository          = _userRepository;
     roleAuthorizeRepository = _roleAuthorizeRepository;
     systemTypeRepository    = _systemTypeRepository;
     _logService             = logService;
 }
コード例 #5
0
 public RoleAuthorizeService(IRoleAuthorizeRepository service, MenuButtonService moduleButtonApp, MenuService menuApp, IMemoryCache _memoryCache, RoleService roleApp, IHttpContextAccessor contextAccessor)
 {
     this.service         = service;
     this.moduleButtonApp = moduleButtonApp;
     this.memoryCache     = _memoryCache;
     this.menuApp         = menuApp;
     this.roleApp         = roleApp;
     this.context         = contextAccessor.HttpContext;
 }
コード例 #6
0
        protected override void BindEvent()
        {
            #region 角色用户

            IUserRoleRepository userRoleRepository = this.Instance <IUserRoleRepository>();
            RemoveEvent += userRoleRepository.RemoveUserRoleByRole;//移除用户角色绑定

            #endregion

            #region 角色授权

            IRoleAuthorizeRepository roleAuthorizeRepository = this.Instance <IRoleAuthorizeRepository>();
            RemoveEvent += roleAuthorizeRepository.RemoveRoleAuthorizeByRole;//移除角色授权

            #endregion
        }
コード例 #7
0
 public MenuService(IMenuRepository service, IRoleAuthorizeRepository roleAuthRepo)
 {
     this.service      = service;
     this.roleAuthRepo = roleAuthRepo;
 }
コード例 #8
0
 public MenuApp(IMenuRepository service, IRoleAuthorizeRepository roleAuthRepo, IHttpContextAccessor contextAccessor)
 {
     this.service      = service;
     this.roleAuthRepo = roleAuthRepo;
     this.context      = contextAccessor.HttpContext;
 }
コード例 #9
0
 public RoleAuthorizeApp(IRoleAuthorizeRepository roleAuthorizeRepository, ModuleApp moduleApp, ModuleButtonApp moduleButtonApp)
 {
     this.service         = roleAuthorizeRepository;
     this.moduleApp       = moduleApp;
     this.moduleButtonApp = moduleButtonApp;
 }
コード例 #10
0
 public MenuButtonApp(IMenuButtonRepository menuRepo, IRoleAuthorizeRepository roleAuthRepo, IHttpContextAccessor accessor)
 {
     this.menuButtonRepo = menuRepo;
     this.roleAuthRepo   = roleAuthRepo;
     this.context        = accessor.HttpContext;
 }
コード例 #11
0
 public RoleAuthorizeService(IRoleAuthorizeRepository roleAuthorizeRepository)
 {
     _roleAuthorizeRepository = roleAuthorizeRepository;
 }
コード例 #12
0
 public MenuButtonService(IMenuButtonRepository menuRepo, IRoleAuthorizeRepository roleAuthRepo)
 {
     this.menuButtonRepo = menuRepo;
     this.roleAuthRepo   = roleAuthRepo;
 }
コード例 #13
0
ファイル: RoleService.cs プロジェクト: LambertW/elight.mvc
 public RoleService(IRoleRepository roleRepository, IRoleAuthorizeRepository roleAuthorizeRepository) : base(roleRepository)
 {
     _roleRepository          = roleRepository;
     _roleAuthorizeRepository = roleAuthorizeRepository;
 }
コード例 #14
0
 public RoleAuthorizeService(IRoleAuthorizeRepository repository) : base(repository)
 {
 }