Skip to content

Instantly share code, notes, and snippets.

@ntotten
Created October 24, 2012 19:02
Show Gist options
  • Select an option

  • Save ntotten/3948121 to your computer and use it in GitHub Desktop.

Select an option

Save ntotten/3948121 to your computer and use it in GitHub Desktop.
.Net 4.5 on Windows Azure Web Sites
public class Location {
public int Id { get; set; }
public string Name { get; set; }
public DbGeography Coordinates { get; set; }
}
public class MyServiceController : AsyncController {
// GET: /MyService/
public async Task<ActionResult> Index() {
return await Task.Factory.StartNew(() => {
Thread.Sleep(3000);
return Content("Hello");
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment