WorkflowControlClient.Unsuspend(Guid) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Avanvänder den angivna arbetsflödesinstansen.
public:
void Unsuspend(Guid instanceId);
public void Unsuspend(Guid instanceId);
member this.Unsuspend : Guid -> unit
Public Sub Unsuspend (instanceId As Guid)
Parametrar
- instanceId
- Guid
Arbetsflödesinstansen som ska avanvändas.
Exempel
I följande exempel visas hur du avanvänder en arbetsflödesinstans med hjälp av Unsuspend metoden.
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);