WorkflowInvoker Class
Provides a means for invoking a workflow as if it were a method call.
Assembly: System.Activities (in System.Activities.dll)
The WorkflowInvoker type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Extensions | Gets the Collection<T> of extensions that are available to workflows invoked by a WorkflowInvoker instance. |
| Name | Description | |
|---|---|---|
![]() | BeginInvoke(AsyncCallback, Object) | Invokes a workflow asynchronously using the specified AsyncCallback and user-provided state. |
![]() | BeginInvoke(IDictionary<String, Object>, AsyncCallback, Object) | Invokes a workflow asynchronously using the specified IDictionary<TKey, TValue> of input parameters, AsyncCallback, and user-provided state. |
![]() | BeginInvoke(TimeSpan, AsyncCallback, Object) | Invokes a workflow asynchronously using the specified time-out interval, AsyncCallback, and user-provided state. |
![]() | BeginInvoke(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. |
![]() | CancelAsync | Attempts to cancel the workflow that was invoked with the specified userState. |
![]() | EndInvoke | Returns the results of a workflow that was invoked using one of the BeginInvoke() overloads. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Invoke() | Invokes a workflow synchronously using the workflow definition passed to the WorkflowInvoker(Activity) constructor. |
![]() ![]() | Invoke(Activity) | Invokes a workflow synchronously using the specified workflow definition. |
![]() | Invoke(IDictionary<String, Object>) | Invokes the activity passed to the WorkflowInvoker(Activity) constructor synchronously with the specified IDictionary<TKey, TValue> of input parameters. |
![]() | Invoke(TimeSpan) | Invokes a workflow synchronously with the specified time-out interval. |
![]() ![]() | Invoke(Activity, IDictionary<String, Object>) | Invokes a workflow synchronously using the specified workflow definition and IDictionary<TKey, TValue> of input parameters. |
![]() ![]() | Invoke(Activity, TimeSpan) | Invokes a workflow synchronously using the specified workflow definition and time-out interval. |
![]() | 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. |
![]() ![]() | 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. |
![]() ![]() | Invoke<TResult>(Activity<TResult>) | Invokes a workflow synchronously using the workflow definition passed to the WorkflowInvoker(Activity) constructor. |
![]() ![]() | Invoke<TResult>(Activity<TResult>, IDictionary<String, Object>) | Invokes a workflow synchronously using the specified workflow definition and IDictionary<TKey, TValue> of input parameters. |
![]() ![]() | 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. |
![]() ![]() | 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. |
![]() | InvokeAsync() | Invokes a workflow asynchronously. |
![]() | InvokeAsync(Object) | Invokes a workflow asynchronously using the specified unique identifier. |
![]() | InvokeAsync(IDictionary<String, Object>) | Invokes a workflow asynchronously using the specified IDictionary<TKey, TValue> of input parameters. |
![]() | InvokeAsync(TimeSpan) | Invokes a workflow asynchronously with the specified time-out interval. |
![]() | InvokeAsync(IDictionary<String, Object>, Object) | Invokes a workflow asynchronously using the specified IDictionary<TKey, TValue> of input parameters and a unique identifier. |
![]() | InvokeAsync(IDictionary<String, Object>, TimeSpan) | Invokes a workflow asynchronously with the specified IDictionary<TKey, TValue> of input parameters and the specified time-out interval. |
![]() | InvokeAsync(TimeSpan, Object) | Invokes a workflow asynchronously with the specified time-out interval and a unique identifier. |
![]() | InvokeAsync(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. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | InvokeCompleted | 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(AsyncCallback, Object) and EndInvoke(IAsyncResult) method pairs, or the InvokeAsync(IDictionary<String, Object>) method.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
