C# Класс ZeroInstall.Services.Fetchers.FetcherBase

Base class for IFetcher implementations using template methods.
Наследование: IFetcher
Показать файл Открыть проект

Открытые методы

Метод Описание
Fetch ( IEnumerable implementations ) : void

Защищенные методы

Метод Описание
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!

Приватные методы

Метод Описание
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.

Описание методов

Download() защищенный Метод

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.
Результат TemporaryFile

Fetch() публичный абстрактный Метод

public abstract Fetch ( IEnumerable implementations ) : void
implementations IEnumerable
Результат void

FetcherBase() защищенный Метод

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.
Результат System

Retrieve() защищенный Метод

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.
Результат void