Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Singleton Pattern

Singleton Pattern

Scheduled Pinned Locked Moved ASP.NET
questionjavascriptcomregex
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brendan Vogt
    wrote on last edited by
    #1

    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

    B 1 Reply Last reply
    0
    • B Brendan Vogt

      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

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      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

      B 1 Reply Last reply
      0
      • B Brij

        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

        B Offline
        B Offline
        Brendan Vogt
        wrote on last edited by
        #3

        Search for BlogEngine.NET on Google.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups