RunEpisodeAsync Method (WorkflowApplication, Func(WorkflowApplicationIdleEventArgs, String, Boolean), UnhandledExceptionAction)

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 Task<WorkflowEpisodeResult> RunEpisodeAsync(
	this WorkflowApplication workflowApplication,
	Func<WorkflowApplicationIdleEventArgs, string, bool> idleEventCallback,
	UnhandledExceptionAction unhandledExceptionAction
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function RunEpisodeAsync ( _
	workflowApplication As WorkflowApplication, _
	idleEventCallback As Func(Of WorkflowApplicationIdleEventArgs, String, Boolean), _
	unhandledExceptionAction As UnhandledExceptionAction _
) As Task(Of WorkflowEpisodeResult)
Visual C++
public:
[ExtensionAttribute]
static Task<WorkflowEpisodeResult^>^ RunEpisodeAsync(
	WorkflowApplication^ workflowApplication, 
	Func<WorkflowApplicationIdleEventArgs^, String^, bool>^ idleEventCallback, 
	UnhandledExceptionAction unhandledExceptionAction
)

Parameters

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

Return Value

A task for running the workflow episode

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