First, I encourage you to listen to episode 327 of the Hanselminutes podcast. We called it " Everything .NET programmers know about Asynchronous Programming is wrong " and I learned a lot. I promise you will too. Often we'll find ourselves doing three or four things on one page, loading stuff from a number of places. Perhaps you're loading something from disk, calling a web service, and calling a database. You can do those things in order, synchronously, as is typical. Add up the duration of each Task: public void Page_Load(object sender, EventArgs e) { var clientcontacts = Client.DownloadString("api/contacts"); var clienttemperature = Client.DownloadString("api/temperature"); var clientlocation = Client...(read more) ...
Go to the complete details ...