How to: Implement a Component That Supports the Event-based Asynchronous Pattern

 

The following code example implements a component with an asynchronous method, according to the Event-based Asynchronous Pattern Overview. The component is a prime number calculator that uses the Sieve of Eratosthenes algorithm to determine if a number is prime or composite.

There is extensive support for this task in Visual Studio. For more information, see Walkthrough: Implementing a Component That Supports the Event-based Asynchronous Pattern.

For an example client that uses the PrimeNumberCalculator component, see How to: Implement a Client of the Event-based Asynchronous Pattern.

No code example is currently available or this language may not be supported.

No code example is currently available or this language may not be supported.

AsyncOperation
AsyncOperationManager
WindowsFormsSynchronizationContext
Walkthrough: Implementing a Component That Supports the Event-based Asynchronous Pattern

Show: