Synced
ArtifactRetention.Retain
Section titled “ArtifactRetention.Retain”
- Retains a verified output before its owner permits cache collection.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets
Declaration
Section titled “Declaration”public Inno.Assets.ArtifactLease Inno.Assets.ArtifactRetention.Retain(Inno.Assets.AssetArtifactInfo artifact, System.Func<System.IO.Stream> openRead)Parameters
Section titled “Parameters”Parameter artifact: Verified immutable metadata; the provider must serialize acquisition with collection.
Parameter openRead: Opens immutable bytes; this retention owner adds an independent stream pin before invoking it.
Returns
Section titled “Returns”A lease that releases exactly one reference, including when disposed from another thread.