public TaobaoGetItemImageUrlListTaskHandler(IOptions <TaobaoGetItemImageUrlListTaskHandlerOptions> options,
                                             ITaskDistributor taskDistributor, IHttpClientProvider httpClientProvider,
                                             ITaobaoGetItemImageUrlListExtractor imageUrlListExtractor,
                                             ITaobaoCollectorDbContextProvider dbContextProvider = null)
     : base(options, taskDistributor,
            httpClientProvider)
 {
     ImageUrlListExtractor = imageUrlListExtractor;
     DbContextProvider     = dbContextProvider;
 }
 protected TaobaoItemImageCollector(IOptions <TaobaoItemImageCollectorOptions> options,
                                    ILoggerFactory loggerFactory, IProxyProvider proxyProvider,
                                    ITaobaoGetItemImageUrlListExtractor taobaoGetItemImageUrlListExtractor,
                                    IDownloadTaskFilter downloadTaskFilter) :
     base(options, loggerFactory)
 {
     Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
     _httpClientProvider =
         new ConfigurableHttpClientProvider(options.Value.HttpClientProviderDbConnectionString, _proxyProvider);
     _proxyProvider = proxyProvider;
     _taobaoGetItemImageUrlListExtractor = taobaoGetItemImageUrlListExtractor;
     _downloadTaskFilter = downloadTaskFilter;
 }