Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Asynchronously acquires a canonical authoring asset by persistent identity.

API: engine
Project: Inno.Assets.Pipeline

public System.Threading.Tasks.ValueTask<Inno.Assets.AssetLease<TAsset>> Inno.Assets.Pipeline.AssetPipeline.AcquireAsync<TAsset>(System.Guid persistentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where TAsset : Inno.Assets.AssetObject

Type parameter TAsset: Required asset contract.

Parameter persistentId: Persistent asset identity.

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

A lease whose strong reference participates in the existing reachability sweep.