You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lifetime container holds references to disposable instances the container created or registered. It is responsible for properly disposing of these objects once the container goes out of scope. The ILifetimeContainer interface is a facade allowing adding and removing of instances to the container. The interface is declared as the following:
ILifetimeContainer
interfaceLifetime container holds references to disposable instances the container created or registered. It is responsible for properly disposing of these objects once the container goes out of scope. The
ILifetimeContainer
interface is a facade allowing adding and removing of instances to the container. The interface is declared as the following:Problem
ILifetimeContainer
operates on objects instead ofIDisposable.
It is possible to add an object that is notIDisposable
IDisposable
. It allowed disposing of the entire container scope from within the user's code.GetValue
/SetValue
handlers.Solution
To remedy existing vulnerabilities, the interface will be changed as follows:
The text was updated successfully, but these errors were encountered: