WorkflowInvoker Class
TOC
Collapse the table of content
Expand the table of content

WorkflowInvoker Class

.NET Framework (current version)
 

Provides a means for invoking a workflow as if it were a method call.

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

System.Object
  System.Activities.WorkflowInvoker

public sealed class WorkflowInvoker

NameDescription
System_CAPS_pubmethodWorkflowInvoker(Activity)

Initializes a new instance of the WorkflowInvoker class.

NameDescription
System_CAPS_pubpropertyExtensions

Gets the Collection<T> of extensions that are available to workflows invoked by a WorkflowInvoker instance.

NameDescription
System_CAPS_pubmethodBeginInvoke(AsyncCallback, Object)

Invokes a workflow asynchronously using the specified AsyncCallback and user-provided state.

System_CAPS_pubmethodBeginInvoke(IDictionary<String, Object>, AsyncCallback, Object)

Invokes a workflow asynchronously using the specified IDictionary<TKey, TValue> of input parameters, AsyncCallback, and user-provided state.

System_CAPS_pubmethodBeginInvoke(IDictionary<String, Object>, TimeSpan, AsyncCallback, Object)

Invokes a workflow asynchronously using the specified IDictionary<TKey, TValue> of input parameters, time-out interval, AsyncCallback, and user-provided state.

System_CAPS_pubmethodBeginInvoke(TimeSpan, AsyncCallback, Object)

Invokes a workflow asynchronously using the specified time-out interval, AsyncCallback, and user-provided state.

System_CAPS_pubmethodCancelAsync(Object)

Attempts to cancel the workflow that was invoked with the specified userState.

System_CAPS_pubmethodEndInvoke(IAsyncResult)

Returns the results of a workflow that was invoked using one of the BeginInvoke overloads.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInvoke()

Invokes a workflow synchronously using the workflow definition passed to the WorkflowInvoker constructor.

System_CAPS_pubmethodSystem_CAPS_staticInvoke(Activity)

Invokes a workflow synchronously using the specified workflow definition.

System_CAPS_pubmethodSystem_CAPS_staticInvoke(Activity, IDictionary<String, Object>)

Invokes a workflow synchronously using the specified workflow definition and IDictionary<TKey, TValue> of input parameters.

System_CAPS_pubmethodSystem_CAPS_staticInvoke(Activity, IDictionary<String, Object>, TimeSpan)

Invokes a workflow synchronously using the specified workflow definition, IDictionary<TKey, TValue> of input parameters, and time-out interval.

System_CAPS_pubmethodSystem_CAPS_staticInvoke(Activity, TimeSpan)

Invokes a workflow synchronously using the specified workflow definition and time-out interval.

System_CAPS_pubmethodInvoke(IDictionary<String, Object>)

Invokes the activity passed to the WorkflowInvoker constructor synchronously with the specified IDictionary<TKey, TValue> of input parameters.

System_CAPS_pubmethodInvoke(IDictionary<String, Object>, TimeSpan)

Invokes the activity passed to the WorkflowInvoker constructor synchronously with the specified IDictionary<TKey, TValue> of input parameters and the specified time-out interval.

System_CAPS_pubmethodInvoke(TimeSpan)

Invokes a workflow synchronously with the specified time-out interval.

System_CAPS_pubmethodSystem_CAPS_staticInvoke<TResult>(Activity<TResult>)

Invokes a workflow synchronously using the workflow definition passed to the WorkflowInvoker constructor.

System_CAPS_pubmethodSystem_CAPS_staticInvoke<TResult>(Activity<TResult>, IDictionary<String, Object>)

Invokes a workflow synchronously using the specified workflow definition and IDictionary<TKey, TValue> of input parameters.

System_CAPS_pubmethodSystem_CAPS_staticInvoke<TResult>(Activity<TResult>, IDictionary<String, Object>, IDictionary<String, Object>, TimeSpan)

Invokes a workflow synchronously using the specified workflow definition, IDictionary<TKey, TValue> of input parameters, IDictionary<TKey, TValue> of additional output parameters, and time-out interval.

System_CAPS_pubmethodSystem_CAPS_staticInvoke<TResult>(Activity<TResult>, IDictionary<String, Object>, TimeSpan)

Invokes a workflow synchronously using the specified workflow definition, IDictionary<TKey, TValue> of input parameters, and time-out interval.

System_CAPS_pubmethodInvokeAsync()

Invokes a workflow asynchronously.

System_CAPS_pubmethodInvokeAsync(IDictionary<String, Object>)

Invokes a workflow asynchronously using the specified IDictionary<TKey, TValue> of input parameters.

System_CAPS_pubmethodInvokeAsync(IDictionary<String, Object>, Object)

Invokes a workflow asynchronously using the specified IDictionary<TKey, TValue> of input parameters and a unique identifier.

System_CAPS_pubmethodInvokeAsync(IDictionary<String, Object>, TimeSpan)

Invokes a workflow asynchronously with the specified IDictionary<TKey, TValue> of input parameters and the specified time-out interval.

System_CAPS_pubmethodInvokeAsync(IDictionary<String, Object>, TimeSpan, Object)

Invokes a workflow asynchronously with the specified IDictionary<TKey, TValue> of input parameters, the specified time-out interval, and a unique identifier.

System_CAPS_pubmethodInvokeAsync(Object)

Invokes a workflow asynchronously using the specified unique identifier.

System_CAPS_pubmethodInvokeAsync(TimeSpan)

Invokes a workflow asynchronously with the specified time-out interval.

System_CAPS_pubmethodInvokeAsync(TimeSpan, Object)

Invokes a workflow asynchronously with the specified time-out interval and a unique identifier.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventInvokeCompleted

Occurs when the workflow invoked by one of the InvokeAsync overloads is completed or canceled.

WorkflowInvoker contains both instance and static methods for invoking workflows synchronously, and instance methods for invoking workflows asynchronously.

WorkflowInvoker does not allow instance control such as persisting, unloading, or resuming bookmarks. If instance control is desired, use WorkflowApplication instead.

To execute workflows synchronously with no instance control, call the Invoke method. To execute a workflow asynchronously with no instance control, use the BeginInvoke and EndInvoke method pairs, or the InvokeAsync method.

The following example synchronously invokes a workflow consisting of a single WriteLine activity using WorkflowInvoker.

Activity wf = new WriteLine
{
    Text = "Hello World."
};

WorkflowInvoker.Invoke(wf);

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft