PlayerSupportPackCatalog.SelectAsync
Section titled “PlayerSupportPackCatalog.SelectAsync”
- Validates one immutable content identity and atomically selects it for subsequent readers.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build
Declaration
Section titled “Declaration”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))Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”Reading ownership of the complete requested Pack; dispose it after every consumer finishes.
Exceptions
Section titled “Exceptions”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.