views:

53

answers:

3

At a certain point, during the running of my app, I want Castle.Windsor to release everything cached in memory. Is this impossible for a singleton object?

+1  A: 

You don't want a singleton, you want a Custom LifeStyle

George Mauer
+1  A: 

Use nested container for that, register singleton in the nested container and it will get released. But why are you doing it in the first place?

Krzysztof Koźmic
A: 

I was trying to get around an unrelated problem by doing this. It is not the solution. Thanks everyone.

Corpsekicker