P
Poul Lund J?rgensen
Hi,
I would like to use the singleton pattern in a webservice in order to
ensure one and only one instance of certains objects within the
context of the webservice request.
When I try to build the usual singleton pattern with the static
instance variable I notice that the static member is shared between
different webservice call which is NOT what I want.
I am considering using the HttpContext.Current.Items dictonary as a
kind of webservice local singleton storage in order to avoid the
singletons being shared between webservice call, but it would require
a lot refactoring in the current application.
Does anyone know a better way to obtain webservice locale singletons ?
best regards
Poul Lund Jørgensen
I would like to use the singleton pattern in a webservice in order to
ensure one and only one instance of certains objects within the
context of the webservice request.
When I try to build the usual singleton pattern with the static
instance variable I notice that the static member is shared between
different webservice call which is NOT what I want.
I am considering using the HttpContext.Current.Items dictonary as a
kind of webservice local singleton storage in order to avoid the
singletons being shared between webservice call, but it would require
a lot refactoring in the current application.
Does anyone know a better way to obtain webservice locale singletons ?
best regards
Poul Lund Jørgensen