/// <summary> /// 初始化用户身份配置服务 /// </summary> /// <param name="claimsFactory">用户声明工厂</param> /// <param name="userManager">用户服务</param> /// <param name="applicationService">应用程序服务</param> /// <param name="roleService">角色服务</param> public ProfileService(IUserClaimsPrincipalFactory <User> claimsFactory, IdentityUserManager userManager, IQueryApplicationService applicationService, IRoleService roleService) : base(userManager, claimsFactory) { _userManager = userManager; _claimsFactory = claimsFactory; _applicationService = applicationService; _roleService = roleService; }
/// <summary> /// 初始化客户端存储 /// </summary> /// <param name="service">查询服务</param> public ClientStore(IQueryApplicationService service) { Service = service; }
/// <summary> /// 初始化一个<see cref="ApplicationController"/>类型的实例 /// </summary> /// <param name="service">应用程序服务</param> /// <param name="queryService">应用程序查询服务</param> public ApplicationController(IApplicationService service, IQueryApplicationService queryService) : base(queryService) { ApplicationService = service; QueryApplicationService = queryService; }
/// <summary> /// 初始化应用程序控制器 /// </summary> /// <param name="service">应用程序服务</param> public ApplicationController(IQueryApplicationService service) : base(service) { QueryService = service; }
/// <summary> /// 初始化跨域策略服务 /// </summary> /// <param name="service">查询服务</param> public CorsPolicyService(IQueryApplicationService service) { Service = service; }