/// <summary> /// 初始化用户服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="userRepository">用户仓储</param> /// <param name="userManager">用户服务</param> public UserService(IGreatWallUnitOfWork unitOfWork, IUserRepository userRepository, IUserManager userManager) : base(unitOfWork, userRepository) { UnitOfWork = unitOfWork; UserRepository = userRepository; UserManager = userManager; }
/// <summary> /// 初始化角色服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="roleRepository">角色仓储</param> /// <param name="roleManager">角色服务</param> public RoleService(IGreatWallUnitOfWork unitOfWork, IRoleRepository roleRepository, IRoleManager roleManager) : base(unitOfWork, roleRepository) { UnitOfWork = unitOfWork; RoleRepository = roleRepository; RoleManager = roleManager; }
/// <summary> /// 初始化资源服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="resourceStore">资源存储器</param> /// <param name="moduleRepository">模块仓储</param> public QueryModuleService(IGreatWallUnitOfWork unitOfWork, IResourcePoStore resourceStore, IModuleRepository moduleRepository) : base(unitOfWork, resourceStore) { UnitOfWork = unitOfWork; ResourceStore = resourceStore; ModuleRepository = moduleRepository; }
/// <summary> /// 初始化用户仓储 /// </summary> /// <param name="unitOfWork">工作单元</param> public UserRepository(IGreatWallUnitOfWork unitOfWork) : base(unitOfWork) { }
/// <summary> /// 初始化应用程序服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="applicationRepository">应用程序仓储</param> public ApplicationService(IGreatWallUnitOfWork unitOfWork, IApplicationRepository applicationRepository) : base(unitOfWork, applicationRepository) { ApplicationRepository = applicationRepository; }
/// <summary> /// 初始化模块服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="moduleRepository">模块仓储</param> public ModuleService(IGreatWallUnitOfWork unitOfWork, IModuleRepository moduleRepository) { UnitOfWork = unitOfWork; ModuleRepository = moduleRepository; }
/// <summary> /// 初始化Api资源服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="apiResourceRepository">Api资源仓储</param> public ApiResourceService(IGreatWallUnitOfWork unitOfWork, IApiResourceRepository apiResourceRepository) { UnitOfWork = unitOfWork; ApiResourceRepository = apiResourceRepository; }
/// <summary> /// 初始化声明仓储 /// </summary> /// <param name="unitOfWork">工作单元</param> public ClaimRepository(IGreatWallUnitOfWork unitOfWork) : base(unitOfWork) { }
/// <summary> /// 初始化身份资源服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="identityResourceRepository">身份资源仓储</param> public IdentityResourceService(IGreatWallUnitOfWork unitOfWork, IIdentityResourceRepository identityResourceRepository) { UnitOfWork = unitOfWork; IdentityResourceRepository = identityResourceRepository; }
/// <summary> /// 初始化应用程序仓储 /// </summary> /// <param name="unitOfWork">工作单元</param> public ApplicationRepository(IGreatWallUnitOfWork unitOfWork) : base(unitOfWork) { }
/// <summary> /// 初始化应用程序服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="applicationRepository">应用程序仓储</param> public ApplicationService(IGreatWallUnitOfWork unitOfWork, IApplicationRepository applicationRepository) { UnitOfWork = unitOfWork; ApplicationRepository = applicationRepository; }
/// <summary> /// 初始化资源存储器 /// </summary> /// <param name="unitOfWork">工作单元</param> public ResourcePoStore(IGreatWallUnitOfWork unitOfWork) : base(unitOfWork) { }
/// <summary> /// 初始化用户服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="userRepository">用户仓储</param> public UserService(IGreatWallUnitOfWork unitOfWork, IUserRepository userRepository) : base(unitOfWork, userRepository) { UserRepository = userRepository; }
/// <summary> /// 初始化权限仓储 /// </summary> /// <param name="unitOfWork">工作单元</param> public PermissionRepository(IGreatWallUnitOfWork unitOfWork) : base(unitOfWork) { }
/// <summary> /// 初始化角色仓储 /// </summary> /// <param name="unitOfWork">工作单元</param> public RoleRepository(IGreatWallUnitOfWork unitOfWork) : base(unitOfWork) { }
/// <summary> /// 初始化声明服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="claimRepository">声明仓储</param> public ClaimService(IGreatWallUnitOfWork unitOfWork, IClaimRepository claimRepository) : base(unitOfWork, claimRepository) { ClaimRepository = claimRepository; }
/// <summary> /// 初始化安全服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="signInManager">登录服务</param> /// <param name="userManager">用户服务</param> public SecurityService(IGreatWallUnitOfWork unitOfWork, ISignInManager signInManager, IUserManager userManager) { UnitOfWork = unitOfWork; SignInManager = signInManager; UserManager = userManager; }
/// <summary> /// 初始化权限服务 /// </summary> /// <param name="unitOfWork">工作单元</param> /// <param name="permissionManager">权限服务</param> /// <param name="permissionRepository">权限仓储</param> public PermissionService(IGreatWallUnitOfWork unitOfWork, IPermissionManager permissionManager, IPermissionRepository permissionRepository) { GreatWallUnitOfWork = unitOfWork; PermissionManager = permissionManager; PermissionRepository = permissionRepository; }
/// <summary> /// 初始化应用程序存储器 /// </summary> /// <param name="unitOfWork">工作单元</param> public ApplicationPoStore(IGreatWallUnitOfWork unitOfWork) : base(unitOfWork) { }