示例#1
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="codes"></param>
 public AuthorityFilter(params string[] codes)
 {
     _codes = codes;
     if (ServiceProvider == null)
     {
         return;
     }
     _userService         = (IUserService)ServiceProvider.GetService(typeof(IUserService));
     _apiAuthorityService = (IAPIAuthorityService)ServiceProvider.GetService(typeof(IAPIAuthorityService));
 }
示例#2
0
 public ResourceOwnerPasswordValidator(IUserService userService, IAPIAuthorityService apiAuthorityService)
 {
     _userService         = userService;
     _apiAuthorityService = apiAuthorityService;
 }
示例#3
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public APIAuthorityController(IAPIAuthorityService apiAuthorityService, IMapper mapper)
 {
     _apiAuthorityService = apiAuthorityService;
     _mapper = mapper;
 }