C# Class ZeroInstall.Services.Fetchers.FetcherBase

Base class for IFetcher implementations using template methods.
Inheritance: IFetcher
Afficher le fichier Open project: 0install/0install-win

Méthodes publiques

Méthode Description
Fetch ( IEnumerable implementations ) : void

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat TemporaryFile

Fetch() public abstract méthode

public abstract Fetch ( IEnumerable implementations ) : void
implementations IEnumerable
Résultat void

FetcherBase() protected méthode

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.
Résultat System

Retrieve() protected méthode

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.
Résultat void