.net - Does Castle Windsor keep a reference of resolved object with lifestyle transient? -


if castle keep reference object, can access that? there list of reference somewhere inside container?

i'm using castle windsor 3.3.0

if castle keep reference object, can access that?

it has reference manage object's life. don't need reference , shouldn't manage references created encapsulated code (this object-oriented programming encapsulation , abstraction principles!).

you need release manually resolved component if transient in order let castle windsor discard reference , garbage collector free memory.

check following statement taken official documentation:

some people, used other containers in past, forget windsor may track transient components. resolve instances, , never release them. ensure proper components lifecycle management windsor may track components. means unless release them, garbage collector not able reclaim them, , you'll end de-facto memory leak. remember useful rule of thumb: remember release explicitly resolved.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -