public interface IAssetSource Opens assets from one manifest-owned storage boundary. Each asset opens as an immutable descriptor-and-stream snapshot, so transports always describe the exact bytes they deliver.
Properties
Manifest
AssetManifest Manifest { get; } Gets the current immutable manifest with identity, digest, and cache metadata.
Methods
OpenAsync
ValueTask<AssetReadSnapshot> OpenAsync(string relativePath, CancellationToken cancellationToken = default) Opens one exact manifest asset with its matching immutable descriptor.
Exceptions
FileNotFoundExceptionThe manifest does not declare
relativePath.
Remarks
The caller owns the snapshot and disposes it, which disposes its content stream.
ValidateAsync
ValueTask ValidateAsync(CancellationToken cancellationToken = default) Validates metadata and backing content.