WorkflowControlClient.Suspend Methode

Definitie

Onderbreekt het opgegeven werkstroomexemplaren.

Overloads

Name Description
Suspend(Guid)

Onderbreekt het opgegeven werkstroomexemplaren.

Suspend(Guid, String)

Onderbreekt het opgegeven werkstroomexemplaren.

Suspend(Guid)

Onderbreekt het opgegeven werkstroomexemplaren.

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

Parameters

instanceId
Guid

Het werkstroomexemplaren dat moet worden onderbroken.

Voorbeelden

In het volgende voorbeeld ziet u hoe u een werkstroomexemplaren onderbreekt met de WorkflowControlClient.

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);

Van toepassing op

Suspend(Guid, String)

Onderbreekt het opgegeven werkstroomexemplaren.

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)

Parameters

instanceId
Guid

Het werkstroomexemplaren dat moet worden onderbroken.

reason
String

De reden om het werkstroomexemplaren te onderbreken.

Voorbeelden

In het volgende voorbeeld ziet u hoe u een werkstroomexemplaren onderbreekt met de WorkflowControlClient.

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");

Van toepassing op