Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [FunctionName(“DurableFunctions”)]
- public static async Task<List<string>> RunOrchestrator(
- [OrchestrationTrigger] DurableOrchestrationContextBase context)
- {
- var outputs = new List<string>();
- // Replace “hello” with the name of your Durable Activity Function.
- outputs.Add(await context.CallActivityAsync<string>(“DurableFunctions_Hello”, “Tokyo”));
- outputs.Add(await context.CallActivityAsync<string>(“DurableFunctions_Hello”, “Seattle”));
- outputs.Add(await context.CallActivityAsync<string>(“DurableFunctions_Hello”, “London”));
- // returns [“Hello Tokyo!”, “Hello Seattle!”, “Hello London!”]
- return outputs;
- }
Add Comment
Please, Sign In to add comment