Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft