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