I have an object that implements IDisposable that is registered with the Windsor Container and I would like to dispose of it so it's Dispose method is called and next time Resolve is called it fetches a new instance.
Does
container.Release(obj);
automatically call Dispose() immediately? Or do I need to do
obj.Dispose();
container.Release(obj);
Couldn't find anything in the documentation on what exactly Release does
EDIT: See my answer below for the results of tests I ran. Now the question becomes, how do I force the container to release an instance of a component with a singleton lifecycle? This only needs to be done in one place and writing a custom lifecycle seems far too heavyweight, is there no built in way of doing it?