コード例 #1
0
ファイル: UserDomainService.cs プロジェクト: icxldd/hero
 public UserDomainService(IDapperRepository <UserInfo, long> userRepository,
                          IDapperRepository <Role, long> roleRepository,
                          IDapperRepository <UserRole, long> userRoleRepository,
                          IDapperRepository <UserUserGroupRelation, long> userUserGroupRelationRoleRepository,
                          IDapperRepository <Menu, long> menuRepository,
                          IRoleDomainService roleDomainService,
                          IUserGroupDomainService userGroupDomainService,
                          IPasswordHelper passwordHelper,
                          IMenuDomainService menuDomainService,
                          ILockerProvider lockerProvider,
                          IDapperRepository <UserGroup, long> userGroupRepository,
                          IDapperRepository <UserGroupPermission, long> userGroupPermissionRepository,
                          IDapperRepository <UserGroupOrganization, long> userGroupOrganizationDapperRepository)
 {
     _userRepository     = userRepository;
     _roleRepository     = roleRepository;
     _userRoleRepository = userRoleRepository;
     _userUserGroupRelationRepository = userUserGroupRelationRoleRepository;
     _menuRepository                        = menuRepository;
     _roleDomainService                     = roleDomainService;
     _userGroupDomainService                = userGroupDomainService;
     _passwordHelper                        = passwordHelper;
     _menuDomainService                     = menuDomainService;
     _lockerProvider                        = lockerProvider;
     _userGroupRepository                   = userGroupRepository;
     _userGroupPermissionRepository         = userGroupPermissionRepository;
     _userGroupOrganizationDapperRepository = userGroupOrganizationDapperRepository;
     _session = NullSurgingSession.Instance;
 }
コード例 #2
0
 public MenuService(IMenuAppService menuAppService, IMenuDomainService menuDomainService,
                    IEmployeeDomainService employeeDomainService)
 {
     _menuAppService        = menuAppService;
     _menuDomainService     = menuDomainService;
     _employeeDomainService = employeeDomainService;
     _applicationEnginee    = new ApplicationEnginee();
 }
コード例 #3
0
 public MenuPermissionService(IActionRepository actionRepository, IMenuRepository menuRepository,
     IActionRoleRepository actionRoleRepository, IMenuRoleRepository menuRoleRepository, IMenuDomainService menuDomainService)
 {
     _actionRepository = actionRepository;
     _menuRepository = menuRepository;
     _actionRoleRepository = actionRoleRepository;
     _menuRoleRepository = menuRoleRepository;
     _menuDomainService = menuDomainService;
 }
コード例 #4
0
 public MenuPermissionService(IActionRepository actionRepository, IMenuRepository menuRepository,
                              IActionRoleRepository actionRoleRepository, IMenuRoleRepository menuRoleRepository, IMenuDomainService menuDomainService)
 {
     _actionRepository     = actionRepository;
     _menuRepository       = menuRepository;
     _actionRoleRepository = actionRoleRepository;
     _menuRoleRepository   = menuRoleRepository;
     _menuDomainService    = menuDomainService;
 }
コード例 #5
0
ファイル: PermissionDomainService.cs プロジェクト: ligg/hero
 public PermissionDomainService(IMenuDomainService menuDomainService,
                                IOperationDomainService operationDomainService,
                                IRoleDomainService roleDomainService,
                                IServiceRouteProvider serviceRouteProvider,
                                IUserDomainService userDomainService,
                                IUserGroupDomainService userGroupDomainService)
 {
     _menuDomainService      = menuDomainService;
     _operationDomainService = operationDomainService;
     _roleDomainService      = roleDomainService;
     _serviceRouteProvider   = serviceRouteProvider;
     _userDomainService      = userDomainService;
     _userGroupDomainService = userGroupDomainService;
 }
コード例 #6
0
 /// <summary>
 /// 初始化应用程序服务
 /// </summary>
 /// <param name="unitOfWork">工作单元</param>
 /// <param name="applicationRepository">应用程序仓储</param>
 public ApplicationService(
     IUniversalSysCenterUnitOfWork unitOfWork,
     IApplicationRepository applicationRepository,
     IUserRepository userRepository,
     IMenuDomainService menuDomainService,
     IPermissionDomainService permissionDomainService
     )
     : base(unitOfWork, applicationRepository)
 {
     ApplicationRepository    = applicationRepository;
     _userRepository          = userRepository;
     _menuDomainService       = menuDomainService;
     _permissionDomainService = permissionDomainService;
 }
コード例 #7
0
 public PermissionAppService(IMenuDomainService menuDomainService,
                             IOperationDomainService operationDomainService,
                             IDapperRepository <Menu, long> menuRepository,
                             IDapperRepository <Operation, long> operationRepository,
                             IActionDomainService actionDomainService,
                             IPermissionDomainService permissionDomainService)
 {
     _menuDomainService       = menuDomainService;
     _operationDomainService  = operationDomainService;
     _menuRepository          = menuRepository;
     _operationRepository     = operationRepository;
     _actionDomainService     = actionDomainService;
     _permissionDomainService = permissionDomainService;
     _session = NullSurgingSession.Instance;
 }
コード例 #8
0
ファイル: PermissionAppService.cs プロジェクト: roy-wang/hero
 public PermissionAppService(IMenuDomainService menuDomainService,
                             IOperationDomainService operationDomainService,
                             IDapperRepository <Menu, long> menuRepository,
                             IDapperRepository <Operation, long> operationRepository,
                             IActionDomainService actionDomainService,
                             IPermissionDomainService permissionDomainService)
 {
     _menuDomainService       = menuDomainService;
     _operationDomainService  = operationDomainService;
     _menuRepository          = menuRepository;
     _operationRepository     = operationRepository;
     _actionDomainService     = actionDomainService;
     _permissionDomainService = permissionDomainService;
     _session       = NullSurgingSession.Instance;
     _cacheProvider = CacheContainer.GetService <ICacheProvider>(HeroConstants.CacheProviderKey);
 }