RunEpisodeAsync Method (WorkflowApplication, UnhandledExceptionAction, CancellationToken)

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,
	UnhandledExceptionAction unhandledExceptionAction,
	CancellationToken token
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function RunEpisodeAsync ( _
	workflowApplication As WorkflowApplication, _
	unhandledExceptionAction As UnhandledExceptionAction, _
	token As CancellationToken _
) As Task(Of WorkflowEpisodeResult)
Visual C++
public:
[ExtensionAttribute]
static Task<WorkflowEpisodeResult^>^ RunEpisodeAsync(
	WorkflowApplication^ workflowApplication, 
	UnhandledExceptionAction unhandledExceptionAction, 
	CancellationToken token
)

Parameters

workflowApplication
Type: System.Activities..::..WorkflowApplication
The workflow application.
unhandledExceptionAction
Type: System.Activities..::..UnhandledExceptionAction
The unhandled Exception Action.
token
Type: System.Threading..::..CancellationToken
The cancellation token.

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