ILoggable

A place to keep my thoughts on programming

Tag Archives: singleton

ThreadSingleton revisited

I’ve been using the CallContext for a while now to create thread singletons, especially under ASP.NET since it’s a single process and you need to work in a thread context when dealing with per request singletons. Today a co-worker pointed … Continue reading

June 15, 2006 .net

Thread Singleton

There are a couple of classes in most projects that end up being singletons. The two most adept for this paradigm are Configuration and Database Handle Pooling. Both get used by many objects, both should only be instantiated once for … Continue reading

May 10, 2005 .net