J
Joseph Geretz
Is there any sort of lifecycle event which my object (implements
IHttpHandler) receives when it is released to the pool, or retrieved from
the pool?
Naturally, I need to keep these objects as stateless as possible, however
some intra-transaction state accumulation is necessary. It would be helpful
to have an event which is fired when the instance is retrieved from the pool
so that pre-transaction initialization can be performed to ensure that the
object is in its pristine state ready to being the next transaction. In my
case,
these objects derive from a base class and so I could implement such
pre-initialization in the base class.
Thanks for your advice,
Joseph Geretz
IHttpHandler) receives when it is released to the pool, or retrieved from
the pool?
Naturally, I need to keep these objects as stateless as possible, however
some intra-transaction state accumulation is necessary. It would be helpful
to have an event which is fired when the instance is retrieved from the pool
so that pre-transaction initialization can be performed to ensure that the
object is in its pristine state ready to being the next transaction. In my
case,
these objects derive from a base class and so I could implement such
pre-initialization in the base class.
Thanks for your advice,
Joseph Geretz