How to: Implement a WCF Asynchronous Service Operation with Task<T>
I love Task<T>. It has to be one of the finest innovations in the framework in the past few years. Recently I was reviewing some old WCF documentation How to: Implement an Asynchronous Service Operation which was probably written in 2006 and I have to say that we can do a much better job of it with Task<T> so here goes my rewrite. Implement a service operation asynchronously In your service contract, declare an asynchronous method pair according to the .NET asynchronous design guidelines. The Begin method takes a parameter, a callback object, and a state object, and returns a System.IAsyncResult and a matching End method that takes a System.IAsyncResult and returns the return value
Here is the original:
How to: Implement a WCF Asynchronous Service Operation with Task<T>


