Exemplo n.º 1
0
 public SysLoginService(ISysTokenService pTokenService, ISysPermissionService pPermissionservice, ISysLoginRepository pSysLoginRepository, ISysUserRepository _sysUserRepository)
 {
     tokenService       = pTokenService;
     permissionservice  = pPermissionservice;
     sysLoginRepository = pSysLoginRepository;
     sysUserRepository  = _sysUserRepository;
 }
Exemplo n.º 2
0
 public RoleController(ISysRoleService sysRoleService, IWorkContext workContext, ICategoryService categoryService, ISysPermissionService sysPermissionService)
 {
     this._sysRoleService       = sysRoleService;
     this._workContext          = workContext;
     this._categoryService      = categoryService;
     this._sysPermissionService = sysPermissionService;
 }
Exemplo n.º 3
0
 public OrdinaryAuthService(IHttpContextAccessor httpContextAccessor, ISysUserService sysUserService, ICategoryService categoryService, ISysUserRoleService sysUserRoleService, ISysPermissionService sysPermissionServices)
 {
     this._httpContextAccessor   = httpContextAccessor;
     this._sysUserService        = sysUserService;
     this._categoryService       = categoryService;
     this._sysUserRoleService    = sysUserRoleService;
     this._sysPermissionServices = sysPermissionServices;
 }
Exemplo n.º 4
0
 public RoleController(ISysRoleService sysRoleService,
                       ISysCategoryService sysCategoryService,
                       ISysPermissionService sysPermissionService)
 {
     this._sysCategoryService   = sysCategoryService;
     this._sysRoleService       = sysRoleService;
     this._sysPermissionService = sysPermissionService;
 }
Exemplo n.º 5
0
 public SysLoginController(IHttpContextAccessor phttpContextAccessor, ILogger <SysLoginController> plogger, ISysTokenService pTokenService, ISysLoginService pLoginService,
                           ISysMenuService pMenuService, ISysPermissionService pPermissionService)
 {
     logger                   = plogger;
     tokenService             = pTokenService;
     loginService             = pLoginService;
     menuService              = pMenuService;
     permissionService        = pPermissionService;
     this.httpContextAccessor = phttpContextAccessor;
 }
 public AdminAuthService(IHttpContextAccessor httpContextAccessor, ISysUserService sysUserService,
                         ICategoryService categoryService, ISysUserRoleService sysUserRoleService,
                         ISysPermissionService sysPermissionService)
 {
     _httpContextAccessor  = httpContextAccessor;
     _sysUserService       = sysUserService;
     _categoryService      = categoryService;
     _sysUserRoleService   = sysUserRoleService;
     _sysPermissionService = sysPermissionService;
 }
Exemplo n.º 7
0
 public AdminAuthService(IHttpContextAccessor httpContextAccessor,
                         ISysUserService sysUserService,
                         ISysCategoryService sysCategoryService,
                         ISysPermissionService sysPermissionServices,
                         ISysUserRoleService sysUserRoleService)
 {
     this._sysPermissionServices = sysPermissionServices;
     this._sysUserRoleService    = sysUserRoleService;
     this._sysCategoryService    = sysCategoryService;
     this._httpContextAccessor   = httpContextAccessor;
     this._sysUserService        = sysUserService;
 }
Exemplo n.º 8
0
 public SysRoleService(IMemoryCache memoryCache,
                       IRepository <SysRole> sysRoleRepository,
                       IRepository <SysPermission> sysPermissionRepository,
                       IRepository <SysUserRole> sysUserRoleRepository,
                       ISysPermissionService sysPermissionService)
 {
     _memoryCache             = memoryCache;
     _sysRoleRepository       = sysRoleRepository;
     _sysPermissionRepository = sysPermissionRepository;
     _sysUserRoleRepository   = sysUserRoleRepository;
     _sysPermissionService    = sysPermissionService;
 }
Exemplo n.º 9
0
 public SysRoleService(IMemoryCache memoryCache,
                       ISysUserRoleService sysUserRoleService,
                       IRepository <Entities.SysRole> sysRoleRepository,
                       IRepository <Entities.SysUserRole> sysUserRoleRepository,
                       ISysPermissionService sysPermissionService,
                       IRepository <Entities.SysPermission> sysPermissionRepository)
 {
     this._sysUserRoleService      = sysUserRoleService;
     this._sysPermissionService    = sysPermissionService;
     this._memoryCache             = memoryCache;
     this._sysRoleRepository       = sysRoleRepository;
     this._sysUserRoleRepository   = sysUserRoleRepository;
     this._sysPermissionRepository = sysPermissionRepository;
 }
Exemplo n.º 10
0
 public PermissionController(ISysPermissionService sysPermissionService)
 {
     _sysPermissionService = sysPermissionService;
 }
Exemplo n.º 11
0
 public PermissionController(ISysPermissionService sysPermissionService, ISysModuleService sysModuleService)
 {
     _sysPermissionService = sysPermissionService;
     _sysModuleService     = sysModuleService;
 }
Exemplo n.º 12
0
 public PermissionAuthorizationHandler(IAuthenticationSchemeProvider schemes, IAspNetUser aspNetUser, ISysPermissionService permissionService)
 {
     Schemes                = schemes;
     this.aspNetUser        = aspNetUser;
     this.permissionService = permissionService;
 }