Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Transfers one lease into this scope.

API: engine
Project: Inno.Assets

public TLease Inno.Assets.RetentionScope.Retain<TLease>(TLease lease) where TLease : System.IDisposable

Type parameter TLease: Disposable lease type.

Parameter lease: Lease whose disposal ownership transfers to this scope.

The same lease for convenient initialization.

Exception T:System.InvalidOperationException: Retirement has begun and the scope cannot accept another lease.