Initializes a new instance of the
OwnedT class.
Namespace:
Autofac.Features.OwnedInstances
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax public Owned(
T value,
IDisposable lifetime
)
Public Sub New (
value As T,
lifetime As IDisposable
)
Parameters
- value
- Type: T
The value representing the instance. - lifetime
- Type: SystemIDisposable
An IDisposable interface through which ownership can be released.
See Also