LaunchBoxContributors
On this page

IArchiveExtractionManager14.1

Interface in Unbroken.LaunchBox.Plugins.Services.Archives

C#
public interface IArchiveExtractionManager
Provides temporary access to archive contents without giving a plugin ownership of the original files.

Methods

ExtractArchiveAsync

C#
Task<IExtractedArchive> ExtractArchiveAsync(
    string archivePath,
    CancellationToken cancellationToken
)
Extracts an archive into host-managed temporary storage.
archivePath
Absolute path to an existing archive supported by the host.
cancellationToken
Cancels the request. Extraction may finish before cancellation takes effect.

Returns

A lease that must be disposed after all readers and child processes have finished using its files.