RunEpisodeAsync Method (WorkflowApplication, UnhandledExceptionAction, TimeSpan)

MS Activities Extensions

Collapse imageExpand ImageCopy imageCopyHover image
Runs a workflow until the activity is Closed, Faulted, Idle or Timeout

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

Parameters

workflowApplication
Type: System.Activities..::..WorkflowApplication
The workflow application.
unhandledExceptionAction
Type: System.Activities..::..UnhandledExceptionAction
The unhandledExceptionAction.
timeout
Type: System..::..TimeSpan
The timeout.

Return Value

A task that will run the workflow

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