public AuthController(IHttpContextAccessor accessor, IRedisBaseRepository redis, IUserServices userServices, IUserRoleServices roleServices) { _accessor = accessor; _redis = redis; _userServices = userServices; _roleServices = roleServices; }
public MenuController(IHttpContextAccessor accessor, IRedisBaseRepository redis, IMenuServices menuServices, IMapper mapper) { _accessor = accessor; _redis = redis; _mapper = mapper; _userRole = new AuthHelper(accessor, redis).UserRoleCache; _menuServices = menuServices; }
public TestController(ITestServices testServices, IMapper mapper, IHttpContextAccessor accessor, IMemoryCache memoryCache, IDistributedCache cache, IRedisBaseRepository redis) { _testServices = testServices; _mapper = mapper; _accessor = accessor; _memoryCache = memoryCache; _cache = cache; _redis = redis; }
public UserContext(IHttpContextAccessor accessor, IRedisBaseRepository redis) { _accessor = (HttpContextAccessor)accessor; _redis = (RedisBaseRepository)redis; }
public AuthHelper(IHttpContextAccessor accessor, IRedisBaseRepository redis) { _accessor = accessor; _redis = redis; }