Skip to content

Instantly share code, notes, and snippets.

@mhinze
Created November 22, 2011 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhinze/1385991 to your computer and use it in GitHub Desktop.
Save mhinze/1385991 to your computer and use it in GitHub Desktop.
public ActionResult Index()
{
try
{
var tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(_tfs));
tfs.Connect(ConnectOptions.None);
ViewBag.Message = "It's just you.";
}
catch (Exception)
{
ViewBag.Message = "TFS IS DOWN FOR EVERYONE";
}
return View();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment