C# Class Composite.Core.WebClient.BrowserRender

ファイルを表示 Open project: Orckestra/C1-CMS

Private Properties

Property Type Description
BrowserRender System
CheckServerAvailabilityAsync System.Threading.Tasks.Task
ClearCacheInt void
GetAuthenticationCookies System.Web.HttpCookie[]
GetCacheFolder string
MakePreviewRequestAsync Task
RecycleIfNotUsed void
SetupRecycleTimer void
ShutdownPhantomJsExeSilent void

Public Methods

Method Description
ClearCache ( string renderingMode ) : void
EnsureReadiness ( ) : void

Ensures that the BrowserRenderer service is launched, without blocking the current thread

GetLastCacheUpdateTime ( string mode ) : System.DateTime
RenderUrlAsync ( HttpContext context, string url, string mode ) : Task

Renders a url and return a full path to a rendered image, or null when rendering process is failing or inaccessible.

Private Methods

Method Description
BrowserRender ( ) : System
CheckServerAvailabilityAsync ( HttpContext context, System.Web.HttpCookie cookies ) : System.Threading.Tasks.Task
ClearCacheInt ( string folder ) : void
GetAuthenticationCookies ( HttpContext context ) : System.Web.HttpCookie[]
GetCacheFolder ( string mode ) : string
MakePreviewRequestAsync ( HttpContext context, string url, string outputFileName, string mode ) : Task
RecycleIfNotUsed ( ) : void
SetupRecycleTimer ( ) : void
ShutdownPhantomJsExeSilent ( ) : void

Method Details

ClearCache() public static method

public static ClearCache ( string renderingMode ) : void
renderingMode string
return void

EnsureReadiness() public static method

Ensures that the BrowserRenderer service is launched, without blocking the current thread
public static EnsureReadiness ( ) : void
return void

GetLastCacheUpdateTime() public static method

public static GetLastCacheUpdateTime ( string mode ) : System.DateTime
mode string
return System.DateTime

RenderUrlAsync() public static method

Renders a url and return a full path to a rendered image, or null when rendering process is failing or inaccessible.
public static RenderUrlAsync ( HttpContext context, string url, string mode ) : Task
context System.Web.HttpContext
url string
mode string
return Task