Skip to content

Instantly share code, notes, and snippets.

@mikhailshilkov
Created December 7, 2018 11:34
Show Gist options
  • Save mikhailshilkov/21af5f1f1cfb8d4297191935720db389 to your computer and use it in GitHub Desktop.
Save mikhailshilkov/21af5f1f1cfb8d4297191935720db389 to your computer and use it in GitHub Desktop.
[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