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 |