コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the RoleSvc class by creating a object of RoleDao class.
 /// </summary>
 public UserRoleAssignmentSvc()
 {
     this.userRoleAssignmentDao = new UserRoleAssignmentDao();
     this.userSvc = GatekeeperFactory.UserSvc;
     this.roleSvc = GatekeeperFactory.RoleSvc;
     this.appSvc = GatekeeperFactory.ApplicationSvc;
 }
コード例 #2
0
ファイル: UserController.cs プロジェクト: xudahe/Xu.Core
 public UserController(IUnitOfWork unitOfWork, IMapper mapper, IUserSvc userSvc, IRoleSvc roleSvc)
 {
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
     _userSvc    = userSvc;
     _roleSvc    = roleSvc;
 }
コード例 #3
0
ファイル: TableData.cs プロジェクト: xudahe/Xu.Core
 public TableData(IUserSvc userSvc, IDeptSvc deptSvc, IRoleSvc roleSvc, IMenuSvc menuSvc, ITasksQzSvc tasksQzSvc)
 {
     _userSvc    = userSvc;
     _deptSvc    = deptSvc;
     _roleSvc    = roleSvc;
     _menuSvc    = menuSvc;
     _tasksQzSvc = tasksQzSvc;
 }
コード例 #4
0
 /// <summary>
 /// 构造函数注入
 /// </summary>
 /// <param name="mapper"></param>
 /// <param name="userSvc"></param>
 /// <param name="roleSvc"></param>
 /// <param name="menuSvc"></param>
 /// <param name="requirement"></param>
 public LoginController(IMapper mapper, IUserSvc userSvc, IRoleSvc roleSvc, IMenuSvc menuSvc, PermissionRequirement requirement)
 {
     _mapper      = mapper;
     _userSvc     = userSvc;
     _roleSvc     = roleSvc;
     _menuSvc     = menuSvc;
     _requirement = requirement;
 }
コード例 #5
0
 public UserRoleController(
     IUserSvc userSvc, ICookieSvc cookieSvc, IServiceProvider provider,
     IOptions <DataProtectionKeys> dataProtectionKeys, IOptions <AppSettings> appSettings,
     IWritebleSettingSvc <SiteWideSettings> writableSiteWideSettings, IRoleSvc roleSvc)
 {
     _userSvc                  = userSvc;
     _roleSvc                  = roleSvc;
     _cookieSvc                = cookieSvc;
     _provider                 = provider;
     _dataProtectionKeys       = dataProtectionKeys.Value;
     _appSettings              = appSettings.Value;
     _writableSiteWideSettings = writableSiteWideSettings;
 }
コード例 #6
0
 public UserRoleController(IRoleSvc roleSvc)
 {
     _roleSvc = roleSvc;
 }
コード例 #7
0
ファイル: RoleController.cs プロジェクト: xudahe/Xu.Core
 public RoleController(IMapper mapper, IRoleSvc roleSvc, IMenuSvc menuSvc)
 {
     _mapper  = mapper;
     _roleSvc = roleSvc;
     _menuSvc = menuSvc;
 }
コード例 #8
0
 public RoleController(IRoleSvc roleService, IMapper mapper)
 {
     _mapper      = mapper;
     _roleService = roleService;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the RoleRightAssignmentSvc by creating a object of RoleRightAssignmentDao class.
 /// </summary>
 public RoleRightAssignmentSvc()
 {
     this.roleRightAssignmentDao = new RoleRightAssignmentDao();
     this.roleSvc = GatekeeperFactory.RoleSvc;
     this.rightSvc = GatekeeperFactory.RightSvc;
 }