Learning .NET High-performance Programming by 2015

Learning .NET High-performance Programming by 2015

Author:2015
Language: eng
Format: epub
Publisher: Packt Publishing


This simple implementation gives us the ability to understand how EAP works. The pattern asks us to add some naming conventions such as the syntax Async at the end of the method or the syntax Completed for the acknowledgement event.

The pattern itself, in its pure version, is more verbose than how it was just seen. It also requires a specific Delegate declaration for each method (although all with the same sign), cancellation support, process state notification (the percentage or completion), and a busy indicator. It is at the discretion of the programmer whether to implement a pure pattern or a simplified one, as visible in the example just given.

The BackgroundWorker is a component that supports a full EAP with the ability to run in an asynchronous way and synchronize the UI access by itself (discussed later in this chapter in the Task UI synchronization section).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.