Quantcast
Channel: CSharp Feeds
Viewing all articles
Browse latest Browse all 10

Code Review Singleton Pattern Issues

$
0
0
One of my applications relies on a singleton pattern to create a single instance of a server which processes requests from many different ASP.NET handlers.  It is created using pretty much standard Singleton code: public static Context CreateContext() { return CreateContext(new ConfigurationFileSettings()); } Recently, this server needed to be made aware of whether requests were coming into it via SSL or standard HTTP.  The solution that was checked in (and which worked and pa

Viewing all articles
Browse latest Browse all 10

Trending Articles