Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="schemes"></param>
 /// <param name="memoryCache"></param>
 /// <param name="cacheHelp"></param>
 /// <param name="logger"></param>
 public PolicyHandler(IAuthenticationSchemeProvider schemes, MyMemoryCache memoryCache, CacheHelp cacheHelp, ILogger <PolicyHandler> logger)
 {
     Schemes    = schemes;
     _cache     = memoryCache.Cache;
     _cacheHelp = cacheHelp;
     _logger    = logger;
 }
 public AuthController(IAuthService service, MyMemoryCache myMemoryCache, CacheHelp cacheHelp)
 {
     _service   = service;
     _cache     = myMemoryCache.Cache;
     _cacheHelp = cacheHelp;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="cacheHelp">缓存</param>
 /// <param name="logService">日志逻辑</param>
 public OperateLogAttribute(CacheHelp cacheHelp, ISysOperateLogService logService, IHttpContextAccessor httpContextAccessor)
 {
     _cacheHelp           = cacheHelp;
     _logService          = logService;
     _httpContextAccessor = httpContextAccessor;
 }