I recently had a situation when writing a website that required an SSO implementation to more than ten 3rd party applications. Of course, each of the 3rd party websites required different information in a different manner to process the sign in. In designing a mechanism to send the login information to the different providers I imagined a potentially unmanageable If/Else or Switch/Case Statement. The method I used to get around it is not new, though it is very cool and very under-utilized if you ask me… Enter IDictionary<string, Action>
More...
.NET 4.0, .NET 3.5, MVC