A
Andy Fish
Hi,
I have some objects that implement IDisposable and they in turn need to
dispose of other objects (Only managed resources are being used).
My objects are held in the HTTP session. Is there a way to get these to be
Disposed properly when the session ends?
I guess I could use the session_end event but apparently it's not a good
idea to rely on this because it might not be called in all circumstances.
Also it's not possible to call dispose of another managed object from inside
a finalizer so I can't do it there.
is there an accepted best practice for this?
Andy
I have some objects that implement IDisposable and they in turn need to
dispose of other objects (Only managed resources are being used).
My objects are held in the HTTP session. Is there a way to get these to be
Disposed properly when the session ends?
I guess I could use the session_end event but apparently it's not a good
idea to rely on this because it might not be called in all circumstances.
Also it's not possible to call dispose of another managed object from inside
a finalizer so I can't do it there.
is there an accepted best practice for this?
Andy