Compatibility Switches

3In the new version of .NET (version 4.6), Microsoft came out with AppContext. This little class has two methods: SetSwitch and TryGetSwitch.

The idea behind these two methods is to allow op-out functionality of new features. If for example, you want to change the format of the logs your library creates. You can have a switch called “Switch.MyLibrary.UseOldLogStyle” that allows the user to keep using the old format. This is great if the end user has some automation parsing the existing logs, and don’t want their parser to break.

Continue reading “Compatibility Switches”

Getting Started with AppHarbor

Rick HerrmannAppHarbor (www.appharbor.com) is a platform-as-a-service for hosting .NET applications. In the .NET space this would be an alternative to using Windows Azure. I am going to walkthrough how to get an MVC web application deployed and running with AppHarbor.

So, assuming you have an application that is ready to deploy…

Continue reading “Getting Started with AppHarbor”