Guest User

Untitled

a guest
Mar 17th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. [FunctionName(“DurableFunctions”)]
  2. public static async Task<List<string>> RunOrchestrator(
  3. [OrchestrationTrigger] DurableOrchestrationContextBase context)
  4. {
  5. var outputs = new List<string>();
  6. // Replace “hello” with the name of your Durable Activity Function.
  7. outputs.Add(await context.CallActivityAsync<string>(“DurableFunctions_Hello”, “Tokyo”));
  8. outputs.Add(await context.CallActivityAsync<string>(“DurableFunctions_Hello”, “Seattle”));
  9. outputs.Add(await context.CallActivityAsync<string>(“DurableFunctions_Hello”, “London”));
  10. // returns [“Hello Tokyo!”, “Hello Seattle!”, “Hello London!”]
  11. return outputs;
  12. }
Add Comment
Please, Sign In to add comment