Synced
ContentReadLease.Constructor
Section titled “ContentReadLease.Constructor”
- Transfers a provider pin and independent-stream factory into a caller-owned lease.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Content
Declaration
Section titled “Declaration”public Inno.Content.ContentReadLease.ContentReadLease(Inno.Content.ContentEntry entry, System.Func<System.IO.Stream> openRead, System.Action release)Parameters
Section titled “Parameters”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.