public ValuesController(IServiceProvider cacheService, IJwtAuthorization jwtAuthorization) { _cacheRedis = cacheService.GetService <RedisCacheService>(); _cacheMemory = cacheService.GetService <MemoryCacheService>(); _jwtAuthorization = jwtAuthorization; }
/// <summary> /// 登陆验证 /// </summary> public HomeLoginController(IUserRepsonsityService userRepsonsityService, IJwtAuthorization jwtAuthorization ) { _userRepsonsityService = userRepsonsityService; _jwtAuthorization = jwtAuthorization; }
public AuthorsFilters( IServiceProvider cacheService, IJwtAuthorization jwtAuthorization ) { this._cacheService = cacheService.GetService <MemoryCacheService>(); _jwtAuthorization = jwtAuthorization; }
public MyMiddle(RequestDelegate next, IServiceProvider cacheService, IJwtAuthorization jwtAuthorization ) { this._next = next; this._cacheService = cacheService.GetService <MemoryCacheService>(); _jwtAuthorization = jwtAuthorization; }
public HomeController(IJwtAuthorization jwtAuthorization, IServiceProvider serviceProvider, IUserRepsonsityService userRepsonsityService ) { this._jwtAuthorization = jwtAuthorization; this._cacheService = serviceProvider.GetService <MemoryCacheService>(); this._userRepsonsityService = userRepsonsityService; }
public RoutersController( IRoutersRepsonsityService routersRepsonsity, IRoles_RoutersRepsonsityService roles_RoutersRepsonsityService, IJwtAuthorization jwtAuthorization ) { _routersRepsonsity = routersRepsonsity; _roles_RoutersRepsonsityService = roles_RoutersRepsonsityService; _jwtAuthorization = jwtAuthorization; }
public BaseController(IJwtAuthorization jwtAuthorization) { this._jwtAuthorization = jwtAuthorization; }