RunEpisode Method (WorkflowApplication, Func(WorkflowApplicationIdleEventArgs, String, Boolean))

MS Activities Extensions

Collapse imageExpand ImageCopy imageCopyHover image
Returns a task that runs a workflow episode

Namespace: Microsoft.Activities.Extensions
Assembly: Microsoft.Activities.Extensions (in Microsoft.Activities.Extensions.dll) Version: 2.0.6.9 (2.0.6.9)

Syntax

C#
public static WorkflowEpisodeResult RunEpisode(
	this WorkflowApplication workflowApplication,
	Func<WorkflowApplicationIdleEventArgs, string, bool> idleEventCallback
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function RunEpisode ( _
	workflowApplication As WorkflowApplication, _
	idleEventCallback As Func(Of WorkflowApplicationIdleEventArgs, String, Boolean) _
) As WorkflowEpisodeResult
Visual C++
public:
[ExtensionAttribute]
static WorkflowEpisodeResult^ RunEpisode(
	WorkflowApplication^ workflowApplication, 
	Func<WorkflowApplicationIdleEventArgs^, String^, bool>^ idleEventCallback
)

Parameters

workflowApplication
Type: System.Activities..::..WorkflowApplication
The workflow application.
idleEventCallback
Type: System..::..Func<(Of <(<'WorkflowApplicationIdleEventArgs, String, Boolean>)>)>
The idle event callback.

Return Value

The episode result

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WorkflowApplication. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also