Skip to content

Instantly share code, notes, and snippets.

@mikhailshilkov
Created December 7, 2018 11:41
Show Gist options
  • Save mikhailshilkov/139e90a9fdb4a6e14672bea03c2aad89 to your computer and use it in GitHub Desktop.
Save mikhailshilkov/139e90a9fdb4a6e14672bea03c2aad89 to your computer and use it in GitHub Desktop.
[FunctionName("ParallelWorkflow")]
public static async Task Parallel([OrchestrationTrigger] DurableOrchestrationContext context)
{
var amsterdam = context.CallSubOrchestratorAsync("BookTrip", serverlessDaysAmsterdam);
var hamburg = context.CallSubOrchestratorAsync("BookTrip", serverlessDaysHamburg);
var expenses = await Task.WhenAll(amsterdam, hamburg);
await context.CallActivityAsync("ReportExpenses", expenses);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment