WorkflowControlClient.Unsuspend(Guid) 方法

定义

取消挂起指定的工作流实例。

public:
 void Unsuspend(Guid instanceId);
public void Unsuspend (Guid instanceId);
member this.Unsuspend : Guid -> unit
Public Sub Unsuspend (instanceId As Guid)

参数

instanceId
Guid

要取消挂起的工作流实例。

示例

下面的示例演示如何使用 Unsuspend 方法取消挂起工作流实例。

IWorkflowCreation creationClient = new ChannelFactory<IWorkflowCreation>(new BasicHttpBinding(), "http://localhost/DataflowControl.xaml/Creation").CreateChannel();

// Start a new instance of the workflow
Guid instanceId = creationClient.CreateSuspended(null);
WorkflowControlClient controlClient = new WorkflowControlClient(
    new BasicHttpBinding(),
    new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));
controlClient.Unsuspend(instanceId);

适用于