Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public ResourceOwnerPasswordValidator(IUserService userService, IAPIAuthorityService apiAuthorityService)
 {
     _userService         = userService;
     _apiAuthorityService = apiAuthorityService;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public APIAuthorityController(IAPIAuthorityService apiAuthorityService, IMapper mapper)
 {
     _apiAuthorityService = apiAuthorityService;
     _mapper = mapper;
 }