-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrchestratorFunctions.cs
More file actions
26 lines (23 loc) · 984 Bytes
/
OrchestratorFunctions.cs
File metadata and controls
26 lines (23 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.DurableTask;
using Microsoft.Azure.WebJobs.Host;
namespace DurableFunctionApp
{
public static class OrchestratorFunctions
{
[FunctionName("VideoProcessorOrchestrator")]
public static async Task<List<string>> RunOrchestrator(
[OrchestrationTrigger] IDurableOrchestrationContext context)
{
var outputs = new List<string>();
// Replace "hello" with the name of your Durable Activity Function.
outputs.Add(await context.CallActivityAsync<string>("Activity1", "Tokyo"));
outputs.Add(await context.CallActivityAsync<string>("Activity1", "Seattle"));
outputs.Add(await context.CallActivityAsync<string>("Activity1", "London"));
// returns ["Hello Tokyo!", "Hello Seattle!", "Hello London!"]
return outputs;
}
}
}