Synced
IPlayerContentSource.PrepareAsync
Section titled “IPlayerContentSource.PrepareAsync”
- Prepares the exact verified pack selected by the decoded catalog.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Player.Runtime
Declaration
Section titled “Declaration”System.Threading.Tasks.ValueTask<Inno.Content.IRuntimeContentStore> Inno.Player.Runtime.IPlayerContentSource.PrepareAsync(Inno.Content.ContentPackDescriptor pack, Inno.Storage.StorageScope scope, Inno.Core.Serialization.SerializationGeneration serialization, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter pack: The validated pack identity; other packs must not be substituted.
Parameter scope: The application namespace used to isolate any preparation cache.
Parameter serialization: The active serialization generation borrowed until this operation completes.
Parameter cancellationToken: Cancels acquisition and preparation before ownership transfers to the caller.
Returns
Section titled “Returns”A caller-owned immutable store whose leases pin independent readers.
Exceptions
Section titled “Exceptions”Exception T:System.IO.InvalidDataException: Pack bytes, inventory, lengths, or payload hashes are invalid.