Created
December 7, 2018 11:34
-
-
Save mikhailshilkov/21af5f1f1cfb8d4297191935720db389 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("SequentialWorkflow")] | |
public static async Task Sequential([OrchestrationTrigger] DurableOrchestrationContext context) | |
{ | |
var conference = await context.CallActivityAsync<ConfTicket>("BookConference", "ServerlessDays"); | |
var flight = await context.CallActivityAsync<FlightTickets>("BookFlight", conference.Dates); | |
await context.CallActivityAsync("BookHotel", flight.Dates); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment