示例#1
0
 // TODO: Make this a built-in API
 public static async Task <DurableOrchestrationStatus> WaitForCompletionAsync(
     this IDurableOrchestrationClient client,
     string instanceId,
     TimeSpan timeout)
 {
     using CancellationTokenSource cts = new CancellationTokenSource(timeout);
     return(await client.WaitForCompletionAsync(instanceId, cts.Token));
 }