Table of Contents

Interface IArchiveCreationRouter

Namespace
Archiver.Core.Interfaces
Assembly
Archiver.Core.dll

Routes archive creation to IArchiveService (ZIP) or ITarService (tar-family) based on ArchiveOptions.Format. Unlike IExtractionRouter, this needs no per-path format detection — creation format is a single explicit choice for the whole operation.

public interface IArchiveCreationRouter

Methods

ArchiveAsync(ArchiveOptions, IProgress<ProgressReport>?, CancellationToken)

Creates an archive in the format given by options.Format. Never throws except OperationCanceledException on cancellation (T-F260).

Task<ArchiveResult> ArchiveAsync(ArchiveOptions options, IProgress<ProgressReport>? progress = null, CancellationToken cancellationToken = default)

Parameters

options ArchiveOptions
progress IProgress<ProgressReport>
cancellationToken CancellationToken

Returns

Task<ArchiveResult>