Including Asynchronous Calls
With .NET asynchronous programming, a call is made to a .NET class method while the program continues execution, until either the specified callback is made or, if the callback is not provided, until blocking or polling or waiting for the call to complete. For example, a program can call a method, which enumerates a large list, while the main program continues to execute. When the enumeration is complete, a callback is made, and the program addresses it.
Asynchronous programming is a feature supported by many areas of the .NET Framework, including:
- File IO, Stream IO, Socket IO
- Networking: HTTP, TCP
- Remoting channels (HTTP, TCP) and proxies
- XML Web services created using ASP.NET
- ASP.NET Web Forms
- Message Queuing using the MessageQueue Class.
- Asynchronous delegates
In This Section
- Asynchronous Programming Overview
- Provides sample code demonstrating the four ways to call ordinary synchronous methods asynchronously.
- Asynchronous Programming Design Pattern
- Discusses asynchronous design patterns, which provide an efficient and consistent programming model to deal with asynchronous operations.
- Asynchronous Delegates
- Describes asynchronous delegates, which provide the ability to call a synchronous method in an asynchronous manner.
- AsyncCallback Delegate
- Discusses the AsyncCallback delegate programming reference.