O'Reilly logo

Visual Studio 2012 and .NET 4.5 Expert Development Cookbook by Abhishek Sur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to perform background transfers of data in Windows 8 style tiles applications

For long running downloads or uploads, HttpClient gets requests that are not sufficient enough to handle. Windows 8 style apps are subjected to its life cycle events, and thus when the transfers are long running, the application life cycle can pretty much hamper the transfer operation.

For instance, while downloading data from server, if the user switches between apps, the app that launches the transfer may go to a dormant stage called suspended , where all threads on the app will get blocked and hence any transfer that has been invoked by the application will also stop. Thus big file downloads cannot be handled by the foreground transfer techniques.

To overcome ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required