Exemplo n.º 1
0
 public RoleController(IRoleAppService service, IMenuAppService menuAppService, IVerifyTokenAppService verifyTokenAppService, IHttpContextAccessor httpContextAccesor, IHttpClientFactory clientFactory)
     : base(clientFactory)
 {
     _service               = service;
     _menuAppService        = menuAppService;
     _verifyTokenAppService = verifyTokenAppService;
     _httpContextAccesor    = httpContextAccesor;
 }
Exemplo n.º 2
0
 public UserController(IUserAppService service, IDepartmentAppService departmentservice, IVerifyTokenAppService verifyTokenAppService, IHttpContextAccessor httpContextAccesor, IHttpClientFactory clientFactory)
     : base(clientFactory)
 {
     _service               = service;
     _departmentservice     = departmentservice;
     _verifyTokenAppService = verifyTokenAppService;
     _httpContextAccesor    = httpContextAccesor;
 }
Exemplo n.º 3
0
 public LoginController(IVerifyTokenAppService verifyTokenAppService,
                        ITokenAuthService tokenAuthService,
                        IOptions <UrlConfigSetting> urlConfig,
                        IHttpContextAccessor httpContextAccesor, IHttpClientFactory clientFactory)
     : base(clientFactory)
 {
     _verifyTokenAppService = verifyTokenAppService;
     _tokenAuthService      = tokenAuthService;
     _urlConfig             = urlConfig;
     _httpContextAccesor    = httpContextAccesor;
 }
Exemplo n.º 4
0
 public TokenProviderMiddleware(RequestDelegate next, IOptions <TokenProviderOptions> options, IVerifyTokenAppService verifyTokenAppService)
 {
     _next    = next;
     _options = options.Value;
     _verifyTokenAppService = verifyTokenAppService;
 }