Export (0) Print
Expand All

WorkflowInvoker.Invoke Method

Invokes a workflow synchronously and returns a dictionary of the root activity’s OutArgument and InOutArgument values keyed by argument name that represent the outputs of the workflow.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Invoke() Invokes a workflow synchronously using the workflow definition passed to the WorkflowInvoker(Activity) constructor.
Public method Static member Invoke(Activity) Invokes a workflow synchronously using the specified workflow definition.
Public method Static member Invoke<TResult>(Activity<TResult>) Invokes a workflow synchronously using the workflow definition passed to the WorkflowInvoker(Activity) constructor.
Public method Invoke(IDictionary<String, Object>) Invokes the activity passed to the WorkflowInvoker(Activity) constructor synchronously with the specified IDictionary<TKey, TValue> of input parameters.
Public method Invoke(TimeSpan) Invokes a workflow synchronously with the specified time-out interval.
Public method Static member Invoke(Activity, IDictionary<String, Object>) Invokes a workflow synchronously using the specified workflow definition and IDictionary<TKey, TValue> of input parameters.
Public method Static member Invoke(Activity, TimeSpan) Invokes a workflow synchronously using the specified workflow definition and time-out interval.
Public method Static member Invoke<TResult>(Activity<TResult>, IDictionary<String, Object>) Invokes a workflow synchronously using the specified workflow definition and IDictionary<TKey, TValue> of input parameters.
Public method Invoke(IDictionary<String, Object>, TimeSpan) Invokes the activity passed to the WorkflowInvoker(Activity) constructor synchronously with the specified IDictionary<TKey, TValue> of input parameters and the specified time-out interval.
Public method Static member Invoke(Activity, IDictionary<String, Object>, TimeSpan) Invokes a workflow synchronously using the specified workflow definition, IDictionary<TKey, TValue> of input parameters, and time-out interval.
Public method Static member Invoke<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.
Public method Static member Invoke<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.
Top

This method blocks until the workflow has completed, including idle time. All workflow execution is guaranteed to execute on the invoking thread. To configure a time-out interval in which the workflow must complete, use one of the Invoke() overloads that take a TimeSpan.

Community Additions

ADD
Show:
© 2014 Microsoft