GURUUMEDITATION

[responsive-menu menu="HamburgerMenu"]

Async/Await with WCF

A nice little feature of .NET 4.5 is you can use async await with WCF ! The services doesn’t need to be in .NET 4.5, only the client as it is in the proxy.   When you add your service reference be sure to check if the task bases asynchronous operations will be generated by the proxy. Click on advanced And check what kind of asynchronous operation [...]

Async methods return type

  One of the questions I am often asked about the async/await keywords is about the return type. Specifically about the void return type for async method. Here is a small explanation about the three possible return type :   Void If an async method returns void, it can’t be awaited. It is a “fire and forget” mode, where the async method will [...]