Table of Contents

Interface IFetcher

Namespace
ZeroInstall.Services.Fetchers
Assembly
ZeroInstall.Services.dll

Downloads Implementations, extracts them and adds them to an IImplementationStore.

public interface IFetcher

Remarks

Implementations of this interface are immutable and thread-safe.

Properties

Discovery

Discovers implementations in implementation stores on other machines in the local network instead of fetching them from their original source.

IImplementationDiscovery? Discovery { get; set; }

Property Value

IImplementationDiscovery

Methods

Fetch(Implementation)

Downloads an Implementation to the IImplementationStore.

void Fetch(Implementation implementation)

Parameters

implementation Implementation

The implementation to download.

Exceptions

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.