public RequestMiddleware(RequestDelegate nextStep, IHttpClientCache httpClientCache, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) { _nextStep = nextStep; _httpRequestHandler = new HttpClientRequestHandler(httpClientCache, GlobalConfig.CircuitBreaker); _httpDataRepository = new HttpDataRepository(httpContextAccessor); }
protected AbstractMiddleware(IHttpContextAccessor httpContextAccessor) { _httpDataRepository = new HttpDataRepository(httpContextAccessor); }