container
container copied to clipboard
ILifetimeContainer interface is deprecated
Deprecating ILifetimeContainer interface
Lifetime container holds references to disposable instances that container created or registered. It is responsible for properly disposing these objects once container goes out of scope. The ILifetimeContainer interface is a facade for that container.
Problem
ILifetimeContaineroperates on objects instead ofIDisposable. It is possible to add an object that is notIDisposable- The interface does not provide any custom functionality beyond simple
ICollection - This property references owner container and could be used to resolve dependencies inside
GetValue/SetValuehandlers.
Solution
This interface should be removed and replaced with simple ICollection<IDisposable>. These are member to member compatible.