Synced
NativeArtifactTransfer.ExportAsync
Section titled “NativeArtifactTransfer.ExportAsync”
- Exports only locally registered immutable native and binding generations under their existing read leases.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Toolchains
Declaration
Section titled “Declaration”public static System.Threading.Tasks.Task<int> Inno.Build.Toolchains.NativeArtifactTransfer.ExportAsync(string engineRoot, string archivePath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), System.Collections.Generic.IReadOnlySet<string>? selectedArtifacts = null)Parameters
Section titled “Parameters”Parameter engineRoot: The checkout whose publishers have already verified the selected generations.
Parameter archivePath: The explicit transport file, atomically replaced after complete export.
Parameter cancellationToken: Cancels copying before the completed archive replaces its previous version.
Parameter selectedArtifacts: Optional exact artifact paths relative to the artifacts root. Every selected generation must be exported.
Returns
Section titled “Returns”The number of verified generations exported.
Exceptions
Section titled “Exceptions”Exception T:System.IO.IOException: A registered artifact is damaged, linked, inaccessible or outside its publisher boundary.
Exception T:System.OperationCanceledException: Export was canceled before installation.