Code from the Build 2014 session http://channel9.msdn.com/Events/Build/2014/2-520