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
builder
IBuilderThe builder.
retrievalMethod
DownloadRetrievalMethodThe metadata of the file.
stream
StreamThe contents of the file.
handler
ITaskHandlerA callback object used when the user needs to be informed about IO tasks.
tag
object
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
IBuilderThe builder.
archive
ArchiveThe metadata of the archive.
stream
StreamThe archive data to be extracted.
handler
ITaskHandlerA callback object used when the user needs to be informed about IO tasks.
tag
object
Exceptions
- OperationCanceledException
The operation was canceled.
- IOException
A problem occurred while extracting the archive.