Table of Contents

Class BuilderExtensions

Namespace
ZeroInstall.Archives
Assembly
ZeroInstall.Archives.dll

Helpers for adding Archives to IBuilders.

public static class BuilderExtensions
Inheritance
BuilderExtensions
Inherited Members

Methods

Add(IBuilder, DownloadRetrievalMethod, Stream, ITaskHandler, object?)

Adds a downloaded file to the implementation.

public static void Add(this IBuilder builder, DownloadRetrievalMethod retrievalMethod, Stream stream, ITaskHandler handler, object? tag = null)

Parameters

builder IBuilder

The builder.

retrievalMethod DownloadRetrievalMethod

The metadata of the file.

stream Stream

The contents of the file.

handler ITaskHandler

A callback object used when the user needs to be informed about IO tasks.

tag object

A Tag used to group progress bars. Usually Best.

Exceptions

UnauthorizedAccessException

Access to a resource was denied.

IOException

An IO operation failed.

AddArchive(IBuilder, Archive, Stream, ITaskHandler, object?)

Adds an archive to the implementation.

public static void AddArchive(this IBuilder builder, Archive archive, Stream stream, ITaskHandler handler, object? tag = null)

Parameters

builder IBuilder

The builder.

archive Archive

The metadata of the archive.

stream Stream

The archive data to be extracted.

handler ITaskHandler

A callback object used when the user needs to be informed about IO tasks.

tag object

A Tag used to group progress bars. Usually Best.

Exceptions

OperationCanceledException

The operation was canceled.

IOException

A problem occurred while extracting the archive.