[]
        
(Showing Draft Content)

GrapeCity.Documents.Html.BrowserFetcher

BrowserFetcher Class

Downloads and manages a version of a Chromium-based browser.

Inheritance
BrowserFetcher
Namespace: GrapeCity.Documents.Html
Assembly: DS.Documents.Html.dll
Syntax
public class BrowserFetcher
Public Class BrowserFetcher

Constructors

Name Description
BrowserFetcher()

Initializes a new instance of the BrowserFetcher class.

Properties

Name Description
DefaultRevision

Gets the default revision of Chromium browser to check or download.

The value of this property is a subject to change in the future versions.

DestinationFolder

Gets or sets the destination folder for the downloads.

If this property is not set, the downloads are stored to [root]/.local-chromium, where [root] is where the project binaries are located.

Platform

Gets or sets the browser platform. Defaults to the current platform.

Revision

Gets or sets the specific Chromium revision to check or download.

If this property is not set, the DefaultRevision is used.

WebProxy

Gets or sets the Proxy to be used by the WebClient.

Methods

Name Description
CanDownload()

Initiates a HEAD request to check if the Chromium browser is available for download.

GetDownloadUrl()

Gets the Url for downloading Chromium browser.

GetDownloadedPath(bool)

Downloads the browser, if necessary, and returns a path to Chromium executable.

GetLocalRevisions()

Returns a list of all revisions for the selected Platform available locally on disk.

GetSystemChromePath()

Gets the path to the Google Chrome browser executable installed in the operating system.

GetSystemEdgePath()

Gets the path to Microsoft Edge browser executable installed in the operating system.

RemoveLocalRevision(string)

Removes a downloaded revision for the selected Platform.

Events

Name Description
DownloadProgressChanged

Occurs when an asynchronous download operation successfully transfers some or all of the data.