Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Prepares the exact verified pack selected by the decoded catalog.

API: engine
Project: Inno.Player.Runtime

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))

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.

A caller-owned immutable store whose leases pin independent readers.

Exception T:System.IO.InvalidDataException: Pack bytes, inventory, lengths, or payload hashes are invalid.