Synced
LifetimeScope.Own
Section titled “LifetimeScope.Own”
- Transfers disposal ownership of a resource to this lifetime.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Execution
Declaration
Section titled “Declaration”public TResource Inno.Core.Execution.LifetimeScope.Own<TResource>(TResource resource) where TResource : System.IDisposableType parameters
Section titled “Type parameters”Type parameter TResource: The disposable resource type.
Parameters
Section titled “Parameters”Parameter resource: The resource to release in reverse registration order.
Returns
Section titled “Returns”The same resource for explicit dependency wiring.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The resource is null.
Exception T:System.InvalidOperationException: Retirement has already started.