Class BuilderExtensions
- Namespace
- ZeroInstall.Archives
- Assembly
- ZeroInstall.Archives.dll
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
builderIBuilderThe builder.
retrievalMethodDownloadRetrievalMethodThe metadata of the file.
streamStreamThe contents of the file.
handlerITaskHandlerA callback object used when the user needs to be informed about IO tasks.
tagobject
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
builderIBuilderThe builder.
archiveArchiveThe metadata of the archive.
streamStreamThe archive data to be extracted.
handlerITaskHandlerA callback object used when the user needs to be informed about IO tasks.
tagobject
Exceptions
- OperationCanceledException
The operation was canceled.
- IOException
A problem occurred while extracting the archive.