C# Class Rhythm.Staticize.CssResourcesDownloadBehavior

提供对被爬行页面中引用的 CSS 资源的下载支持。
Inheritance: ResourcesDownloadBaseBehavior
显示文件 Open project: darklx/Staticize

Public Methods

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

Protected Methods

Method Description
GetSrcAttributes ( HtmlAgilityPack nodes ) : string[]
OnResourceParsed ( Uri resourceUris, HtmlStaticizeContext context ) : void

Method Details

CssResourcesDownloadBehavior() public method

public CssResourcesDownloadBehavior ( String outputBaseDirectory, IUriResourcesFromLocalFileSystemReslover resourceFileReslover = null ) : System
outputBaseDirectory String
resourceFileReslover IUriResourcesFromLocalFileSystemReslover
return System

GetSrcAttributes() protected method

protected GetSrcAttributes ( HtmlAgilityPack nodes ) : string[]
nodes HtmlAgilityPack
return string[]

OnResourceParsed() protected method

protected OnResourceParsed ( Uri resourceUris, HtmlStaticizeContext context ) : void
resourceUris System.Uri
context HtmlStaticizeContext
return void