C# Class ZeroInstall.Services.Fetchers.FetcherBase

Base class for IFetcher implementations using template methods.
Inheritance: IFetcher
ファイルを表示 Open project: 0install/0install-win

Public Methods

Method Description
Fetch ( IEnumerable implementations ) : void

Protected Methods

Method Description
Download ( [ retrievalMethod, [ tag = null ) : TemporaryFile

Downloads a DownloadRetrievalMethod to a temporary file.

FetcherBase ( [ store, [ handler ) : System

Creates a new download fetcher.

Retrieve ( [ implementation ) : void

Executes the best possible RetrievalMethod for an Implementation.

Make sure Implementation.RetrievalMethods is not empty before calling this!

Private Methods

Method Description
ApplyArchives ( [ archives, [ files, ManifestDigest manifestDigest ) : void

Extracts Archives to the _store.

ApplyRecipe ( [ recipe, [ files, ManifestDigest manifestDigest ) : void

Applies a Recipe and sends the result to the _store.

Cook ( [ recipe, ManifestDigest manifestDigest ) : void

Executes a Recipe.

IsCached ( [ implementation ) : bool
Retrieve ( [ retrievalMethod, ManifestDigest manifestDigest ) : void

Executes a specific RetrievalMethod.

RunNative ( [ externalRetrievalMethod ) : void

Handles the execution of ExternalRetrievalMethod.Install.

Method Details

Download() protected method

Downloads a DownloadRetrievalMethod to a temporary file.
A download was canceled from another thread. A file could not be downloaded from the internet. A downloaded file could not be written to the disk or. Write access to is not permitted.
protected Download ( [ retrievalMethod, [ tag = null ) : TemporaryFile
retrievalMethod [ The file to download.
tag [ The to set for the download process.
return TemporaryFile

Fetch() public abstract method

public abstract Fetch ( IEnumerable implementations ) : void
implementations IEnumerable
return void

FetcherBase() protected method

Creates a new download fetcher.
protected FetcherBase ( [ store, [ handler ) : System
store [ The location to store the downloaded and unpacked s in.
handler [ A callback object used when the the user needs to be informed about progress.
return System

Retrieve() protected method

Executes the best possible RetrievalMethod for an Implementation.
Make sure Implementation.RetrievalMethods is not empty before calling this!
A download or IO task was canceled from another thread. A file could not be downloaded from the internet. A file format, protocal, etc. is unknown or not supported. A downloaded file could not be written to the disk or extracted. Write access to is not permitted. An 's s don't match the associated .
protected Retrieve ( [ implementation ) : void
implementation [ The implementation to be retrieved.
return void