When an object in Ninject is associated with InTransientScope() , the object is not cached because it is, er, transient and not attached to anything.
When you are done with the object, I can call kernel.Release(obj) ; it goes into the cache where it retrieves the cached item and calls Pipeline.Deactivate using the cached entry.
But since temporary objects are not cached, this does not happen. I could not figure out where (or who) is doing the deactivation for the transition objects. Or is it an assumption that the transition objects are only activated, and that if I want a deactivated object, I need to use a different scope?
c # ioc-container ninject
nwahmaet
source share