/// <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; }
public UserController(IUnitOfWork unitOfWork, IMapper mapper, IUserSvc userSvc, IRoleSvc roleSvc) { _unitOfWork = unitOfWork; _mapper = mapper; _userSvc = userSvc; _roleSvc = roleSvc; }
public TableData(IUserSvc userSvc, IDeptSvc deptSvc, IRoleSvc roleSvc, IMenuSvc menuSvc, ITasksQzSvc tasksQzSvc) { _userSvc = userSvc; _deptSvc = deptSvc; _roleSvc = roleSvc; _menuSvc = menuSvc; _tasksQzSvc = tasksQzSvc; }
/// <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; }
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; }
public UserRoleController(IRoleSvc roleSvc) { _roleSvc = roleSvc; }
public RoleController(IMapper mapper, IRoleSvc roleSvc, IMenuSvc menuSvc) { _mapper = mapper; _roleSvc = roleSvc; _menuSvc = menuSvc; }
public RoleController(IRoleSvc roleService, IMapper mapper) { _mapper = mapper; _roleService = roleService; }
/// <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; }