WorkflowControlClient 类
定义
允许客户端向 WorkflowServiceHost 承载的工作流服务发送控制操作。Allows a client to send control operations to a workflow service hosted with WorkflowServiceHost.
public ref class WorkflowControlClient : System::ServiceModel::ClientBase<System::ServiceModel::Activities::IWorkflowInstanceManagement ^>
public class WorkflowControlClient : System.ServiceModel.ClientBase<System.ServiceModel.Activities.IWorkflowInstanceManagement>
type WorkflowControlClient = class
inherit ClientBase<IWorkflowInstanceManagement>
Public Class WorkflowControlClient
Inherits ClientBase(Of IWorkflowInstanceManagement)
- 继承
注解
使用此类可以控制工作流实例。Use this class to control a workflow instance.
构造函数
属性
| Channel |
获取用于将消息发送到不同配置的服务终结点的内部通道。Gets the inner channel used to send messages to variously configured service endpoints. (继承自 ClientBase<TChannel>) |
| ChannelFactory |
获取基础 ChannelFactory<TChannel> 对象。Gets the underlying ChannelFactory<TChannel> object. (继承自 ClientBase<TChannel>) |
| ClientCredentials |
获取用于调用操作的客户端凭据。Gets the client credentials used to call an operation. (继承自 ClientBase<TChannel>) |
| Endpoint |
获取 WCF 客户端可连接的服务的目标终结点。Gets the target endpoint for the service to which the WCF client can connect. (继承自 ClientBase<TChannel>) |
| InnerChannel |
获取基础 IClientChannel 实现。Gets the underlying IClientChannel implementation. (继承自 ClientBase<TChannel>) |
| State |
获取 ClientBase<TChannel> 对象的当前状态。Gets the current state of the ClientBase<TChannel> object. (继承自 ClientBase<TChannel>) |
方法
| Abandon(Guid) |
放弃指定的工作流实例。Abandons the specified workflow instance. |
| Abandon(Guid, String) |
放弃指定的工作流实例。Abandons the specified workflow instance. |
| AbandonAsync(Guid) |
开始一个异步操作,该操作将放弃指定的工作流实例。Begins an asynchronous operation that abandons the specified workflow instance. |
| AbandonAsync(Guid, Object) |
开始一个异步操作,该操作将放弃具有指定的用户定义数据的指定工作流实例。Begins an asynchronous operation that abandons the specified workflow instance with the specified user-defined data. |
| AbandonAsync(Guid, String) |
开始一个异步操作,该操作将基于指定的原因放弃指定的工作流实例。Begins an asynchronous operation that abandons the specified workflow instance with the specified reason. |
| AbandonAsync(Guid, String, Object) |
开始一个异步操作,该操作将基于指定的原因,放弃具有指定的用户定义数据的指定工作流实例。Begins an asynchronous operation that abandons the specified workflow instance with the specified reason and user-defined data. |
| Abort() |
使 ClientBase<TChannel> 对象立即从其当前状态转换到关闭状态。Causes the ClientBase<TChannel> object to transition immediately from its current state into the closed state. (继承自 ClientBase<TChannel>) |
| BeginAbandon(Guid, AsyncCallback, Object) |
开始一个异步操作,该操作将放弃指定的工作流实例。Begins an asynchronous operation that abandons the specified workflow instance. |
| BeginAbandon(Guid, String, AsyncCallback, Object) |
开始一个异步操作,该操作将放弃指定的工作流实例。Begins an asynchronous operation that abandons the specified workflow instance. |
| BeginCancel(Guid, AsyncCallback, Object) |
开始一个异步操作,该操作将取消指定的工作流实例。Begins an asynchronous operation that cancels the specified workflow instance. |
| BeginRun(Guid, AsyncCallback, Object) |
开始一个异步操作,该操作将运行指定的工作流实例。Begins an asynchronous operation that runs the specified workflow instance. |
| BeginSuspend(Guid, AsyncCallback, Object) |
开始一个异步操作,该操作将挂起指定的操作。Begins an asynchronous operation that suspends the specified operation. |
| BeginSuspend(Guid, String, AsyncCallback, Object) |
开始一个异步操作,该操作将挂起指定的操作。Begins an asynchronous operation that suspends the specified operation. |
| BeginTerminate(Guid, AsyncCallback, Object) |
开始一个异步操作,该操作将终止工作流实例。Begins an asynchronous operation that terminates a workflow instance. |
| BeginTerminate(Guid, String, AsyncCallback, Object) |
开始一个异步操作,该操作将终止工作流实例。Begins an asynchronous operation that terminates a workflow instance. |
| BeginUnsuspend(Guid, AsyncCallback, Object) |
开始一个异步操作,该操作将取消挂起工作流实例。Begins an asynchronous operation that unsuspends a workflow instance. |
| Cancel(Guid) |
取消指定的工作流实例。Cancels the specified workflow instance. |
| CancelAsync(Guid) |
开始一个异步操作,该操作将取消指定的工作流实例。Begins an asynchronous operation that cancels the specified workflow instance. |
| CancelAsync(Guid, Object) |
开始一个异步操作,该操作将取消具有指定的用户定义数据的指定工作流实例。Begins an asynchronous operation that cancels the specified workflow instance with the specified user-defined data. |
| Close() |
使 ClientBase<TChannel> 对象从其当前状态转换到关闭状态。Causes the ClientBase<TChannel> object to transition from its current state into the closed state. (继承自 ClientBase<TChannel>) |
| CreateChannel() |
返回新的服务通道。Returns a new channel to the service. (继承自 ClientBase<TChannel>) |
| DisplayInitializationUI() |
指示内部通道显示在使用通道之前初始化通道时所需的用户界面。Instructs the inner channel to display a user interface if one is required to initialize the channel prior to using it. (继承自 ClientBase<TChannel>) |
| EndAbandon(IAsyncResult) |
完成异步放弃操作。Completes an asynchronous abandon operation. |
| EndCancel(IAsyncResult) |
完成异步取消操作。Completes an asynchronous cancel operation. |
| EndRun(IAsyncResult) |
完成异步运行操作。Completes an asynchronous run operation. |
| EndSuspend(IAsyncResult) |
完成异步挂起操作。Completes an asynchronous suspend operation. |
| EndTerminate(IAsyncResult) |
完成异步终止操作。Completes an asynchronous terminate operation. |
| EndUnsuspend(IAsyncResult) |
完成异步取消挂起操作。Completes an asynchronous unsuspend operation. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetDefaultValueForInitialization<T>() |
复制 C# 中默认关键字的行为。Replicates the behavior of the default keyword in C#. (继承自 ClientBase<TChannel>) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| InvokeAsync(ClientBase<TChannel>.BeginOperationDelegate, Object[], ClientBase<TChannel>.EndOperationDelegate, SendOrPostCallback, Object) |
为实现基于事件的异步模式提供支持。Provides support for implementing the event-based asynchronous pattern. 有关详细信息,请参阅基于事件的异步模式概述。For more information about this pattern, see Event-based Asynchronous Pattern Overview. (继承自 ClientBase<TChannel>) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| Open() |
使 ClientBase<TChannel> 对象从已创建状态转换到已打开状态。Causes the ClientBase<TChannel> object to transition from the created state into the opened state. (继承自 ClientBase<TChannel>) |
| Run(Guid) |
运行指定的工作流实例。Runs the specified workflow instance. |
| RunAsync(Guid) |
开始一个异步操作,该操作将运行指定的工作流实例。Begins an asynchronous operation that runs the specified workflow instance. |
| RunAsync(Guid, Object) |
开始一个异步操作,该操作将运行具有指定的用户定义状态数据的指定工作流实例。Begins an asynchronous operation that runs the specified workflow instance with the user-defined state data. |
| Suspend(Guid) |
挂起指定的工作流实例。Suspends the specified workflow instance. |
| Suspend(Guid, String) |
挂起指定的工作流实例。Suspends the specified workflow instance. |
| SuspendAsync(Guid) |
开始异步挂起操作。Begins an asynchronous suspend operation. |
| SuspendAsync(Guid, Object) |
使用指定的工作流实例 ID 和用户定义的状态数据开始异步挂起操作。Begins an asynchronous suspend operation with the specified workflow instance ID and user-defined state data. |
| SuspendAsync(Guid, String) |
使用指定的工作流实例 ID 和原因开始异步挂起操作。Begins an asynchronous suspend operation with the specified workflow instance ID and reason. |
| SuspendAsync(Guid, String, Object) |
使用指定的工作流实例 ID、原因和用户定义的状态数据开始异步挂起操作。Begins an asynchronous suspend operation with the specified workflow instance ID, reason, and user-defined state data. |
| Terminate(Guid) |
终止指定的工作流实例。Terminates the specified workflow instance. |
| Terminate(Guid, String) |
基于指定的原因终止指定的工作流实例。Terminates the specified workflow instance with the specified reason. |
| TerminateAsync(Guid) |
开始一个异步操作,该操作将终止指定的工作流实例。Begins an asynchronous operation that terminates the specified workflow instance. |
| TerminateAsync(Guid, Object) |
开始一个异步操作,该操作将终止具有指定的用户定义数据的指定工作流实例。Begins an asynchronous operation that terminates the specified workflow instance with the specified user-defined data. |
| TerminateAsync(Guid, String) |
开始一个异步操作,该操作将基于指定的原因终止指定的工作流实例。Begins an asynchronous operation that terminates the specified workflow instance with the specified reason. |
| TerminateAsync(Guid, String, Object) |
开始一个异步操作,该操作将基于指定的原因,终止具有指定的用户定义数据的指定工作流实例。Begins an asynchronous operation that terminates the specified workflow instance with the specified reason and user-defined data. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| Unsuspend(Guid) |
取消挂起指定的工作流实例。Unsuspends the specified workflow instance. |
| UnsuspendAsync(Guid) |
开始异步取消挂起操作。Begins an asynchronous unsuspend operation. |
| UnsuspendAsync(Guid, Object) |
使用指定的用户定义状态数据开始异步取消挂起操作。Begins an asynchronous unsuspend operation with the specified user-defined state data. |
事件
| AbandonCompleted |
在异步放弃操作完成时发生。Occurs when an asynchronous abandon operation completes. |
| CancelCompleted |
在异步取消操作完成时发生。Occurs when an asynchronous cancel operation completes. |
| RunCompleted |
在异步运行操作完成时发生。Occurs when an asynchronous run operation completes. |
| SuspendCompleted |
在异步挂起操作完成时发生。Occurs when an asynchronous suspend operation completes. |
| TerminateCompleted |
在异步终止操作完成时发生。Occurs when an asynchronous terminate operation completes. |
| UnsuspendCompleted |
在异步取消挂起操作完成时发生。Occurs when an asynchronous unsuspend operation completes. |
显式接口实现
| ICommunicationObject.BeginClose(AsyncCallback, Object) |
开始一个关闭 ClientBase<TChannel> 的异步操作。Begins an asynchronous operation to close the ClientBase<TChannel>. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) |
开始一个在指定超时内关闭 ClientBase<TChannel> 的异步操作。Begins an asynchronous operation to close the ClientBase<TChannel> with a specified timeout. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.BeginOpen(AsyncCallback, Object) |
开始一个打开 ClientBase<TChannel> 对象的异步操作。Begins an asynchronous operation to open the ClientBase<TChannel> object. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) |
开始一个在指定时间间隔内打开 ClientBase<TChannel> 对象的异步操作。Begins an asynchronous operation to open the ClientBase<TChannel> object within a specified interval of time. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.Close() |
使通信对象从其当前状态转换到关闭状态。Causes a communication object to transition from its current state into the closed state. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.Close(TimeSpan) |
使 ClientBase<TChannel> 对象从其当前状态转换到关闭状态。Causes the ClientBase<TChannel> object to transition from its current state into the closed state. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.Closed |
当 ClientBase<TChannel> 对象已经从其当前状态转换到已关闭状态时调用的事件处理程序。The event handler that is invoked when the ClientBase<TChannel> object has transitioned from its current state to the closed state. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.Closing |
当 ClientBase<TChannel> 对象从其当前状态转换到已关闭状态时调用的事件处理程序。The event handler that is invoked when the ClientBase<TChannel> object transitions from its current state to the closed state. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.EndClose(IAsyncResult) |
完成一个关闭 ClientBase<TChannel> 对象的异步操作。Completes an asynchronous operation to close the ClientBase<TChannel> object. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.EndOpen(IAsyncResult) |
完成一个打开 ClientBase<TChannel> 对象的异步操作。Completes an asynchronous operation to open the ClientBase<TChannel> object. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.Faulted |
在对 ClientBase<TChannel> 对象执行操作过程中发生错误时调用的事件处理程序。The event handler that is invoked when a fault occurs while performing an operation on the ClientBase<TChannel> object. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.Open() |
使通信对象从已创建状态转换到已打开状态。Causes a communication object to transition from the created state into the opened state. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.Open(TimeSpan) |
使 ClientBase<TChannel> 对象在指定的时间间隔内从已创建状态转换到已打开状态。Causes the ClientBase<TChannel> object to transition from the created state into the opened state within a specified interval of time. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.Opened |
ClientBase<TChannel> 对象从已创建状态转换为已打开状态时调用的事件处理程序。The event handler that is invoked when the ClientBase<TChannel> object transitions from the created state to the opened state. (继承自 ClientBase<TChannel>) |
| ICommunicationObject.Opening |
ClientBase<TChannel> 对象从已创建状态转换为已打开状态时调用的事件处理程序。The event handler that is invoked when the ClientBase<TChannel> object transitions from the created state to the opened state. (继承自 ClientBase<TChannel>) |
| IDisposable.Dispose() |
Dispose() 方法的显式实现。Explicit implementation of the Dispose() method. (继承自 ClientBase<TChannel>) |