Overview

This is a wrapper library for Microsoft's Visual Studio Async CTP and Async Targeting Pack for Visual Studio 11. Using this library greatly facilitates async calls in Silverlight and Windows Phone projects.

Programming in Silverlight and Silverlight for Windows Phone requires a lot of asycronous calls to various services, which normally can be a painful task and results in a very complicated, spagetti-like, horrible code!
By using this library writing async code is as easy as normal (sync) code. All you want to do is to call Invoke method and all the magic happens by itself!

How to get it?

There are two versions of this product. These are Nuget packages and you need Nuget to add them to your project.

How to use it?

It's pretty simple to use:

 

private async void Button_Click(object sender, RoutedEventArgs e)
{
    WebClient client = new WebClient();
    TextBlock1.Text = await Async.Invoke<DownloadStringCompletedEventArgs, string, Uri>(
        client.DownloadStringAsync, new Uri("http://www.ismotgroup.com"));
}

 

How to call WCF Service Methods?

Please refer to How to use Async Helper for calling WCF Service methods?

Last edited Oct 28, 2012 at 7:34 AM by khavaran, version 12