On Apr 10, 7:43 am, "ruthie" <ruthie...@yahoo.comwrote:
I am a bit confused using Singleton pattern.
Using Singleton - do I have one instanse of the class for each web
client or do I have one instanse for all users ?
It's not entirely clear what you mean. Are you writing an ASP.NET
application, or are you writing a web client?
If you're writing an ASP.NET application, there will be one for the
whole web application - but you should be aware that ASP.NET can
recycle its applications periodically, so the old one may be thrown
away and a new one created.
If you're writing a web *client*, there will be one for each process.
(More strictly speaking, for each AppDomain - but that distinction is
unlikely to be an issue.)
Jon