Book Image

Visual Studio 2015 Cookbook - Second Edition

By : Jeff Martin
Book Image

Visual Studio 2015 Cookbook - Second Edition

By: Jeff Martin

Overview of this book

Visual Studio 2015 is the premier tool for developers targeting the Microsoft platform. Learning how to effectively use this technology can enhance your productivity while simplifying your most common tasks, allowing you more time to focus on your project. Visual Studio 2015 is packed with improvements that increase productivity, and this book walks you through each one in succession to help you smooth your workflow and get more accomplished. From customization and the interface to code snippets and debugging, the Visual Studio upgrade expands your options — and this book is your fast-track guide to getting on board quickly. Visual Studio 2015 Cookbook will introduce you to all the new areas of Visual Studio and how they can quickly be put to use to improve your everyday development tasks. With this book, you will learn not only what VS2015 offers, but what it takes to put it to work for your projects.
Table of Contents (17 chapters)
Visual Studio 2015 Cookbook Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Understanding asynchrony and Universal Windows Platform apps


When developing the original Windows Runtime for Windows 8.x, Microsoft followed a design guideline in which any synchronous method that might take longer than 50 ms to complete was to be removed and replaced with an asynchronous version. The goal behind this design decision is to dramatically improve the chances of developers building applications that feel smooth and fluid by not blocking threads on framework calls.

In this recipe, you're going to revisit the RSS feed reader concept, just as you did in the Making your code asynchronous recipe, though this time you're going to be creating a UWP application.

There are a few differences between a UWP application and a console one, including differences in the classes available. For example, the WebClient class doesn't exist in WinRT, so you'll be using the HttpClient class instead.

For additional variety, we will be writing this app using Visual Basic, but of course, the concepts are...