Synced
AssetResidencyProvider.CreateAssetLease
Section titled “AssetResidencyProvider.CreateAssetLease”
- Creates one strongly typed asset residency lease.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets
Declaration
Section titled “Declaration”protected static Inno.Assets.AssetLease<TAsset> Inno.Assets.AssetResidencyProvider.CreateAssetLease<TAsset>(TAsset asset, System.Action release) where TAsset : Inno.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: Concrete canonical asset type.
Parameters
Section titled “Parameters”Parameter asset: Canonical asset retained by the lease.
Parameter release: Provider-owned release callback. Pending retirement must be retryable without repeating completed effects.
Returns
Section titled “Returns”A lease that retains its value until release completes; a Pending callback is retried by the owning lifecycle.