public HttpClient(IEnumerable <IHttpRequestInterceptor> requestInterceptors, ICacheManager cacheManager, IRateLimitService rateLimitService, IHttpDispatcher httpDispatcher, Logger logger) { _requestInterceptors = requestInterceptors.ToList(); _rateLimitService = rateLimitService; _httpDispatcher = httpDispatcher; _logger = logger; ServicePointManager.DefaultConnectionLimit = 12; _cookieContainerCache = cacheManager.GetCache <CookieContainer>(typeof(HttpClient)); }
public IndexerHttpClient(IIndexerProxyFactory indexerProxyFactory, IEnumerable <IHttpRequestInterceptor> requestInterceptors, ICacheManager cacheManager, IRateLimitService rateLimitService, IHttpDispatcher httpDispatcher, Logger logger) : base(requestInterceptors, cacheManager, rateLimitService, httpDispatcher, logger) { _indexerProxyFactory = indexerProxyFactory; }
public HttpClient(IEnumerable <IHttpRequestInterceptor> requestInterceptors, ICacheManager cacheManager, IRateLimitService rateLimitService, Logger logger) : this(requestInterceptors, cacheManager, rateLimitService, null, logger) { _httpDispatcher = new FallbackHttpDispatcher(cacheManager.GetCache <bool>(typeof(HttpClient), "curlTLSFallback"), _logger); }