Asynchronous Programming in C#
1hAdvanced2023-08-04
Authors

Brice Wilson
Course details
If you’re looking to incorporate asynchronous programming into your applications, this course was designed for you. Join instructor Brice Wilson as he covers the fundamentals of asynchronous programming in the C# programming language using the task-based asynchronous pattern (TAP). Explore the Task and Task classes and how to use them to perform asynchronous work. Brice shows you the ins and outs of using continuations and the async/await keywords, handling asynchronous exceptions, canceling tasks, and reporting task progress. Upon completing this course, you’ll be ready to confidently use modern techniques and C# language features to build more responsive .NET applications.
Skills covered
C#AdvancedProgramming LanguagesMicrosoftSoftware Development
Concepts
0. Introduction
- 01 - Create happier users with asynchronous C#
- 02 - What you should know
1. Understanding Asynchronous Programming
- 03 - What is asynchronous programming
- 04 - When and why to write asynchronous code
- 05 - Patterns for asynchronous programming in C#
2. Working with Tasks
- 06 - Creating and executing tasks
- 07 - Waiting for tasks to complete
- 08 - Using continuations
- 09 - Updating the user interface
- 10 - Challenge - Create and continue a task
- 11 - Solution - Create and continue a task
3. Using async and await
- 12 - Benefits of using async and await
- 13 - Awaiting a task
- 14 - Handling exceptions
- 15 - Challenge - Await HTTP requests
- 16 - Solution - Await HTTP requests
4. Task Cancellation and Progress Monitoring
- 17 - Using cancellation tokens
- 18 - Implementing timeout cancellations
- 19 - Reporting task progress
- 20 - Challenge - Cancel a slow HTTP request
- 21 - Solution - Cancel a slow HTTP request
Conclusion
- 22 - Next steps