C# 클래스 ZeroInstall.Services.Fetchers.FetcherBase

Base class for IFetcher implementations using template methods.
상속: IFetcher
파일 보기 프로젝트 열기: 0install/0install-win

공개 메소드들

메소드 설명
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