Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Validates one immutable content identity and atomically selects it for subsequent readers.

API: engine
Project: Inno.Build

public System.Threading.Tasks.ValueTask<Inno.Build.PlayerSupportPackLease> Inno.Build.PlayerSupportPackCatalog.SelectAsync(Inno.Build.BuildTargetId target, string fingerprint, Inno.Build.IPlayerSupportPackValidator validator, System.Func<System.Threading.CancellationToken, System.Threading.Tasks.ValueTask> verifyInputs, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))

Parameter target: The explicit target whose prepared Pack is requested.

Parameter fingerprint: The exact lowercase SHA-256 content identity recorded by the publisher.

Parameter validator: The borrowed platform closure validator.

Parameter verifyInputs: The final awaited source-input gate after output validation and before selection.

Parameter cancellationToken: Cancels validation or selection before replacing the current index.

Reading ownership of the complete requested Pack; dispose it after every consumer finishes.

Exception T:System.ArgumentException: The content identity is invalid or the target path escapes the catalog.

Exception T:System.IO.InvalidDataException: The requested directory or its complete file set and hashes are invalid.

Exception T:System.OperationCanceledException: Validation or selection was canceled.