Class BuilderExtensions
Namespace: ZeroInstall.Archives
Assembly: ZeroInstall.Archives.dll
Syntax
public static class BuilderExtensions : Object
Methods
Add(IBuilder, DownloadRetrievalMethod, Stream, ITaskHandler, Object)
Adds a downloaded file to the implementation.
Declaration
public static void Add(this IBuilder builder, DownloadRetrievalMethod retrievalMethod, Stream stream, ITaskHandler handler, object tag = null)
Parameters
Type | Name | Description |
---|---|---|
IBuilder | builder | The builder. |
DownloadRetrievalMethod | retrievalMethod | The metadata of the file. |
Stream | stream | The contents of the file. |
ITaskHandler | handler | A callback object used when the the user needs to be informed about IO tasks. |
Object | tag |
Exceptions
Type | Condition |
---|---|
UnauthorizedAccessException | Access to a resource was denied. |
IOException | An IO operation failed. |
AddArchive(IBuilder, Archive, Stream, ITaskHandler, Object)
Adds an archive to the implementation.
Declaration
public static void AddArchive(this IBuilder builder, Archive archive, Stream stream, ITaskHandler handler, object tag = null)
Parameters
Type | Name | Description |
---|---|---|
IBuilder | builder | The builder. |
Archive | archive | The metadata of the archive. |
Stream | stream | The archive data to be extracted. |
ITaskHandler | handler | A callback object used when the the user needs to be informed about IO tasks. |
Object | tag |
Exceptions
Type | Condition |
---|---|
OperationCanceledException | The operation was canceled. |
IOException | A problem occurred while extracting the archive. |