Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Acquires a canonical asset by logical path and keeps it resident until the lease is released.

API: engine
Project: Inno.Assets

System.Threading.Tasks.ValueTask<Inno.Assets.AssetLease<TAsset>> Inno.Assets.IAssetResidency.AcquireAsync<TAsset>(Inno.Assets.AssetPath path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where TAsset : Inno.Assets.AssetObject

Type parameter TAsset: Required asset contract.

Parameter path: Mount-qualified logical asset path.

Parameter cancellationToken: Cancellation for this caller’s asynchronous wait.

A lease that owns residency for the canonical asset.