Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Transfers disposal ownership of a resource to this lifetime.

API: engine
Project: Inno.Core.Execution

public TResource Inno.Core.Execution.LifetimeScope.Own<TResource>(TResource resource) where TResource : System.IDisposable

Type parameter TResource: The disposable resource type.

Parameter resource: The resource to release in reverse registration order.

The same resource for explicit dependency wiring.

Exception T:System.ArgumentNullException: The resource is null.

Exception T:System.InvalidOperationException: Retirement has already started.