C# Class Rhythm.Staticize.ImageResourcesDownloadBehavior

提供对被爬行页面中引用的图片资源的下载支持。
Inheritance: ResourcesDownloadBaseBehavior
Show file Open project: darklx/Staticize

Public Methods

Method Description
ImageResourcesDownloadBehavior ( String outputBaseDirectory, IUriResourcesFromLocalFileSystemReslover resourceFileReslover = null ) : System

初始化 ImageResourcesDownloadBehavior 的新实例。

Protected Methods

Method Description
OnResourceParsed ( Uri resourceUris, HtmlStaticizeContext context ) : void

当资源URL被正确解析,即将被下载时回调

Method Details

ImageResourcesDownloadBehavior() public method

初始化 ImageResourcesDownloadBehavior 的新实例。
public ImageResourcesDownloadBehavior ( String outputBaseDirectory, IUriResourcesFromLocalFileSystemReslover resourceFileReslover = null ) : System
outputBaseDirectory String 图片输出文件夹
resourceFileReslover IUriResourcesFromLocalFileSystemReslover
return System

OnResourceParsed() protected method

当资源URL被正确解析,即将被下载时回调
protected OnResourceParsed ( Uri resourceUris, HtmlStaticizeContext context ) : void
resourceUris System.Uri 当资源URL(集合)
context HtmlStaticizeContext
return void