Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="next"></param>
 /// <param name="iLogger"></param>
 /// <param name="requestAnalysisOption"></param>
 /// <param name="memorycache"></param>
 /// <param name="redisManager"></param>
 /// <param name="redisCacheOption"></param>
 /// <param name="httpContextAccessor"></param>
 public RequestAnalysisMiddleware(RequestDelegate next,
                                  ILogger <RequestAnalysisMiddleware> iLogger,
                                  RequestAnalysisOption requestAnalysisOption,
                                  IMemoryCache memorycache,
                                  IRedisManager redisManager,
                                  RedisCacheOption redisCacheOption,
                                  IHttpContextAccessor httpContextAccessor)
 {
     _next    = next;
     _iLogger = iLogger;
     _requestAnalysisOption = requestAnalysisOption;
     _memorycache           = memorycache;
     _redisManager          = redisManager;
     _redisCacheOption      = redisCacheOption;
     _httpContextAccessor   = httpContextAccessor;
 }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="next"></param>
        /// <param name="iLogger"></param>
        /// <param name="requestAnalysisOption"></param>
        /// <param name="memorycache"></param>
        /// <param name="redisManager"></param>
        /// <param name="redisCacheOption"></param>
        /// <param name="httpContextAccessor"></param>
        public RequestAnalysisMiddleware(RequestDelegate next,
                                         ILogger <RequestAnalysisMiddleware> iLogger,
                                         RequestAnalysisOption requestAnalysisOption,
                                         IMemoryCache memorycache,
#pragma warning disable CS0618 // Type or member is obsolete
                                         IRedisManager redisManager,
#pragma warning restore CS0618 // Type or member is obsolete
                                         RedisCacheOption redisCacheOption,
                                         IHttpContextAccessor httpContextAccessor)
        {
            _next    = next;
            _iLogger = iLogger;
            _requestAnalysisOption = requestAnalysisOption;
            _memorycache           = memorycache;
            _redisManager          = redisManager;
            _redisCacheOption      = redisCacheOption;
            _httpContextAccessor   = httpContextAccessor;
        }