From the course: Asynchronous Programming in C#

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Patterns for asynchronous programming in C#

Patterns for asynchronous programming in C# - C# Tutorial

From the course: Asynchronous Programming in C#

Patterns for asynchronous programming in C#

- The C# programming language was created around the year 2000. Rarely do technology survive and thrive that long without their creators being willing to evolve them and focus on continuous improvement. The patterns used for asynchronous programming in C# have evolved a lot over the years. In this course, I'm only going to focus on the pattern currently recommended by Microsoft, but I want you to be aware that other older patterns do exist, because you will likely encounter them in older books, blog posts, and other training materials. The first I'll mention is the Event-Based Asynchronous Pattern. As the name suggests, this pattern makes use of event handler delegates and types derived from EventArg to manage the asynchronous processes. You can usually spot this pattern based on the method names used. They employ a common set of suffixes such as Async, completed, and AsyncCancel. Microsoft no longer recommends this…

Contents