Automatic release of objects when using Castle Windsor

Posted by MotoSV on Stack Overflow See other posts from Stack Overflow or by MotoSV
Published on 2011-03-19T08:03:42Z Indexed on 2011/03/19 8:10 UTC
Read the original article Hit count: 210

Hi,

I'm starting a new project and I'm looking into using a dependency container (Castle Windsor) to help when it comes to unit testing. One of the things that is a little frustrating is that after I've finished using an object I have to tell the container to "release" the object.

I understand the reasoning behind doing this, but it's still cumbersome to have to remember to do this. So, my question is, is there a way I can make the "releasing" of an object automatic so I don't have to remember to release it?

Kind Regards

Michael

© Stack Overflow or respective owner

Related posts about dependency-injection

Related posts about castle-windsor