Exemplo n.º 1
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="options">下载器代理选项</param>
 /// <param name="spiderOptions"></param>
 /// <param name="eventBus">消息队列</param>
 /// <param name="logger">日志接口</param>
 public LocalDownloadedAgent(DownloadAgentOptions options, SpiderOptions spiderOptions,
                             IEventBus eventBus,
                             ILogger <LocalDownloadedAgent> logger) : base(options, spiderOptions,
                                                                           eventBus, logger)
 {
     // ConfigureDownload = download => download.Logger = null;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="options">下载器代理选项</param>
        /// <param name="spiderOptions"></param>
        /// <param name="eventBus">消息队列</param>

        /// <param name="logger">日志接口</param>
        protected DownloadAgentBase(
            DownloadAgentOptions options,
            SpiderOptions spiderOptions,
            IEventBus eventBus,
            ILogger logger)
        {
            _spiderOptions = spiderOptions;
            _eventBus      = eventBus;
            _options       = options;
            Logger         = logger;
        }
 public DefaultDownloadAgent(DownloadAgentOptions options,
                             SpiderOptions spiderOptions, IEventBus eventBus, ILogger <DefaultDownloadAgent> logger) : base(options, spiderOptions, eventBus, logger)
 {
 }