Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Retains a verified output before its owner permits cache collection.

API: engine
Project: Inno.Assets

public Inno.Assets.ArtifactLease Inno.Assets.ArtifactRetention.Retain(Inno.Assets.AssetArtifactInfo artifact, System.Func<System.IO.Stream> openRead)

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.

A lease that releases exactly one reference, including when disposed from another thread.