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

Parameters

workflowApplication
Type: System.Activities..::..WorkflowApplication
The workflow application.
waitForBookmarkName
Type: System..::..String
The bookmark name.
timeout
Type: System..::..TimeSpan
The timeout.
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