Groups | Blog | Home
all groups > asp.net > october 2003 >

asp.net : Singleton Usuage


Srini
10/22/2003 11:18:08 PM
Hi everybody ,
A Couple of weeks back I had asked some practicle
scenarios for using the sigleton pattern.
Most people use the singleton pattern for storing
configuration related data .
Would this not make it difficult to update the cofig data
as the webserver would have to be restarted if there is a
change in the config file.

Regards,
Dmitriy Lapshin [C# / .NET MVP]
10/23/2003 10:28:35 AM
Hi,

[quoted text, click to view]

Not the webserver - only the Web application I suppose. And you could
probably employ the FileSystemWatcher object to monitor changes in the
configuration file and reload it if necessary.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

[quoted text, click to view]
SF
10/23/2003 5:53:54 PM
Yes, use a FileSystemWatcher and make sure you update your singleton
threadsafe ...

[quoted text, click to view]

AddThis Social Bookmark Button