WorkflowControlClient.Suspend Methode

Definition

Hält die angegebene Workflowinstanz an.

Überlädt

Suspend(Guid)

Hält die angegebene Workflowinstanz an.

Suspend(Guid, String)

Hält die angegebene Workflowinstanz an.

Suspend(Guid)

Hält die angegebene Workflowinstanz an.

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

Parameter

instanceId
Guid

Die anzuhaltende Workflowinstanz.

Beispiele

Im folgenden Beispiel wird gezeigt, wie mit dem WorkflowControlClient eine Workflowinstanz angehalten wird.

IWorkflowCreation creationClient = new ChannelFactory<IWorkflowCreation>(new BasicHttpBinding(), "http://localhost/DataflowControl.xaml/Creation").CreateChannel();
Guid instanceId = creationClient.CreateSuspended(null);
WorkflowControlClient controlClient = new WorkflowControlClient(
    new BasicHttpBinding(),
    new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));

// ...

controlClient.Suspend(instanceId);

Gilt für

Suspend(Guid, String)

Hält die angegebene Workflowinstanz an.

public:
 void Suspend(Guid instanceId, System::String ^ reason);
public void Suspend (Guid instanceId, string reason);
member this.Suspend : Guid * string -> unit
Public Sub Suspend (instanceId As Guid, reason As String)

Parameter

instanceId
Guid

Die anzuhaltende Workflowinstanz.

reason
String

Der Grund für das Anhalten der Workflowinstanz.

Beispiele

Im folgenden Beispiel wird gezeigt, wie mit dem WorkflowControlClient eine Workflowinstanz angehalten wird.

IWorkflowCreation creationClient = new ChannelFactory<IWorkflowCreation>(new BasicHttpBinding(), "http://localhost/DataflowControl.xaml/Creation").CreateChannel();
Guid instanceId = creationClient.CreateSuspended(null);
WorkflowControlClient controlClient = new WorkflowControlClient(
    new BasicHttpBinding(),
    new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));

// ...

controlClient.Suspend(instanceId, "Sample to suspend");

Gilt für