WF4.0 Basic Articles (24) Async activity

Source: Internet
Author: User
Tags abstract

Project Description:

Async activity

Async means asynchronous, but one thing to be aware of is that it is not literally understood that the function of the activity is to invoke the asynchronous method in a synchronized manner.

We have seen the [WF4.0 Basic article (13) InvokeMethod call method], and then look at this article

Class name System.Activities.AsyncCodeActivity
File System.Activities.dll
Structure description Inheriting activity

is an abstract class

Override [CacheMetadata Method]

provides two abstract methods [Beginexecute],[endexecute]
Function description The main purpose of the asynccodeactivity is to implement the problem of how to wait for an asynchronous operation to be executed down after asynchrony, that is, how to turn parallelism into serial
Class name System.activities.asynccodeactivity<tresult>
File System.Activities.dll
Structure description Inherit activity<tresult>

is an abstract class

Override [CacheMetadata Method]

provides two abstract methods [Beginexecute],[endexecute]
Function description With asynccodeactivity, return value can be returned in the [EndExecute] method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.