Created
December 7, 2018 11:41
-
-
Save mikhailshilkov/139e90a9fdb4a6e14672bea03c2aad89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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