Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Transfers a provider pin and independent-stream factory into a caller-owned lease.

API: engine
Project: Inno.Content

public Inno.Content.ContentReadLease.ContentReadLease(Inno.Content.ContentEntry entry, System.Func<System.IO.Stream> openRead, System.Action release)

Parameter entry: Immutable metadata identifying the pinned bytes.

Parameter openRead: Opens a stream with its own provider pin; stream disposal must release that pin.

Parameter release: Releases this lease’s provider pin exactly once, independently of any open stream.