Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WorkflowInvoker.Invoke Method

.NET Framework 4.6 and 4.5

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.

  Name Description
Public method Invoke() Invokes a workflow synchronously using the workflow definition passed to the WorkflowInvoker 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 constructor.
Public method Invoke(IDictionary<String, Object>) Invokes the activity passed to the WorkflowInvoker 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 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.

Show:
© 2015 Microsoft