Visual C# How Do I Videos
This feed keeps you up to date on new tutorial videos produced by the Visual C# team. Check these out for guidance on how to use Visual C# to its fullest.
Aktualisiert: vor 3 Stunden 31 Minuten
Refactoring Functionality into a Library
In this video, the existing application will be modified to move functionality into a separate assembly. Proper naming conventions will be discussed, as well as the ConfigureAwait method, which can be used to avoid unnecessary marshaling of data to the UI thread.
Kategorien: Programmieren
Polling and Cancellation
In this video, the existing application will be modified to add cancellation support. For each HREF link found, a method will be called which will enter into an infinite loop, periodically downloading the HTML content of that link, looking for changes using the TaskEx.Delay method. In addition, a CancellationToken will be passed through each method, allowing the user to cancel out of the process at any time.
Kategorien: Programmieren
Offloading Work with TaskEx.Run
In this video, the existing application will once again be modified to offload the work of searching through the HTML using the TaskEx.Run method. This will allow that work to be done on a background thread.
Kategorien: Programmieren
Concurrent Downloading with TaskEx.WhenAll
In this video, the application created in the first segment will be modified to download the content of each HREF link concurrently using the TaskEx.WhenAll method and the await keyword. The length of the returned content will then be appended to each item in the ListBox.
Kategorien: Programmieren
Introduction to the Async CTP
In this video, we will create a simple application to download the HTML content of the MSDN home page, and then use a regular expression to search through that HTML, looking for any HREF links. They will be pulled out and displayed in a ListBox. The application will be written the “old” way without any asynchronous calls, and will then be modified to use the Async CTP.
Kategorien: Programmieren