Interface IFetcher
Downloads Implementations, extracts them and adds them to an IImplementationStore.
Namespace: ZeroInstall.Services.Fetchers
Assembly: ZeroInstall.Services.dll
Syntax
public interface IFetcher
Remarks
Implementations of this interface are immutable and thread-safe.
Methods
Fetch(Implementation)
Downloads an Implementation to the IImplementationStore.
Declaration
void Fetch(Implementation implementation)
Parameters
Type | Name | Description |
---|---|---|
Implementation | implementation | The implementation to download. |
Exceptions
Type | Condition |
---|---|
OperationCanceledException | A download or IO task was canceled from another thread. |
WebException | A file could not be downloaded from the internet. |
NotSupportedException | A file format, protocol, etc. is unknown or not supported. |
IOException | A downloaded file could not be written to the disk or extracted. |
UnauthorizedAccessException | Write access to IImplementationStore is not permitted. |
DigestMismatchException | An Implementation's Archives don't match the associated ManifestDigest. |