IdeaBlade DevForce 2010 Help Reference
Coroutine Class
Members  See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : Coroutine Class



Provides for serial and parallel execution of multiple asynchronous actions.

Syntax

Visual Basic (Declaration) 
Public MustInherit NotInheritable Class Coroutine 
Visual Basic (Usage)Copy Code
Dim instance As Coroutine
C# 
public static class Coroutine 
C++/CLI 
public ref class Coroutine abstract sealed 

Remarks

Replaces the AsyncSerialTask and AsyncParallelTask classes, which are obsolete and will be removed from the product in early 2011.

Use Coroutine.Start to start serial execution of the asynchronous, and synchronous, actions within an "iterator". The iterator is a function which returns an System.Collections.IEnumerable of objects implementing the INotifyCompleted interface. All asynchronous operations within DevForce return a sub-typed BaseOperation, which implements this interface. The Coroutine waits for each operation to complete, either sucessfully or not, and then moves to the next action within the iterator.

Use Coroutine.StartParallel to start parallel execution of the asynchronous actions within an iterator. When run in parallel, the Coroutine starts each asynchronous action, and then waits for all actions to complete.

For a detailed discussion of the Coroutine and its flow, see the DevForce Resource Center.

Inheritance Hierarchy

System.Object
   IdeaBlade.EntityModel.Coroutine

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.