Sdílet prostřednictvím


WorkflowControlClient.Suspend Metoda

Definice

Pozastaví zadanou instanci pracovního postupu.

Přetížení

Suspend(Guid)

Pozastaví zadanou instanci pracovního postupu.

Suspend(Guid, String)

Pozastaví zadanou instanci pracovního postupu.

Suspend(Guid)

Pozastaví zadanou instanci pracovního postupu.

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

Parametry

instanceId
Guid

Instance pracovního postupu, která se má pozastavit.

Příklady

Následující příklad ukazuje, jak pozastavit instanci pracovního postupu pomocí 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);

Platí pro

Suspend(Guid, String)

Pozastaví zadanou instanci pracovního postupu.

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)

Parametry

instanceId
Guid

Instance pracovního postupu, která se má pozastavit.

reason
String

Důvod pozastavení instance pracovního postupu

Příklady

Následující příklad ukazuje, jak pozastavit instanci pracovního postupu pomocí 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");

Platí pro