C# : Task Parallel Library (TPL) with async await and TaskCompletionSource for async I/O operations

Asynchronous operations have long been a part of C# and the .NET framework. We discussed quite a bit about asynchronous programming using the delegate’s BeginInvoke and EndInvoke methods and Event based Asynchronous Pattern ( EAP ) in our earlier posts. These are quite good and enables the developer to introduce asynchrony in their applications, especially […]

C# : Event Based Asynchronous Pattern In Parallel Computing.

In the article discussing the “Asynchronous Pattern” – C# : ASYNCHRONOUS PROGRAMMING USING BEGININVOKE AND ENDINVOKE METHODS, we saw how to use the BeingInvoke and EndInvoke methods to achieve parallel computing. However, this is not very intuitive and requires you to explicitly call the EndInvoke method to get back the result after you asynchronous call […]

C# : Asynchronous Programming Using BeginInvoke and EndInvoke Methods

There are numerous instances in software development where you would find yourself in a need to build responsive apps, an important part of which is the asynchronous way in which you would need to do certain operations like I/O, intensive DB reads or probably making a call to a third party web service hosted somewhere […]