A
Andrea Williams
I would like to be able to create a singleton when using my Error Handling
object. It uses a static Instance() method to return the currently
activated object. But my question is, since it is static, it is shared
between users on a web site? That I would not like since each user needs to
have their own instance. Does anyone know the behavior of an object that is
create and returned through a static method with ASP.NET? If the Singleton
pattern does make it global to the application, how are other people
handling object instanciation when the object should be shared between tiers
but not between users of the application?
Reference material:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/singletondespatt.asp
object. It uses a static Instance() method to return the currently
activated object. But my question is, since it is static, it is shared
between users on a web site? That I would not like since each user needs to
have their own instance. Does anyone know the behavior of an object that is
create and returned through a static method with ASP.NET? If the Singleton
pattern does make it global to the application, how are other people
handling object instanciation when the object should be shared between tiers
but not between users of the application?
Reference material:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/singletondespatt.asp