Singleton Pattern
-
Hi there, I am looking at the singleton pattern as described by www.dofactory.com. There is also a web project that I am browsing, and it sets all the basic stuff of the website by using the singleton pattern. It sets stuff like the page title, meta tags, javascript, etc etc etc. When does the static methods in this single pattern get disposed? Once no one is using the website, or when the current user's session is over? Why set the website settings using a singleton pattern? They mention thread safety as well, what is this and how does it relate to the singleton pattern? Regards, Brendan
modified on Friday, May 14, 2010 3:35 PM
-
Hi there, I am looking at the singleton pattern as described by www.dofactory.com. There is also a web project that I am browsing, and it sets all the basic stuff of the website by using the singleton pattern. It sets stuff like the page title, meta tags, javascript, etc etc etc. When does the static methods in this single pattern get disposed? Once no one is using the website, or when the current user's session is over? Why set the website settings using a singleton pattern? They mention thread safety as well, what is this and how does it relate to the singleton pattern? Regards, Brendan
modified on Friday, May 14, 2010 3:35 PM
Can you give the link of the webproject to download it that you are browsing?
Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0
-
Can you give the link of the webproject to download it that you are browsing?
Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0
Search for BlogEngine.NET on Google.