How to use Task (TPL) in C#
To start with this will just be my notes to learn more about using TPL.
Fx. I need to call a WebService or WebApi from a Windows Phone App / Store App.
The recommended way in .NET 4.5 is to use Task.FromResult, Task.Run or Task.Factory.StartNew:
FromResult: [Task.FromResult() is NOT async! It’s just a wrapper to get a Task with Status “RanToCompletion”.
Your calling Thread will block until your operation is completed.]
Task, TPL, async