Skip to content

Instantly share code, notes, and snippets.

@jongio
Created March 19, 2016 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jongio/d77d3edf23cc958626a7 to your computer and use it in GitHub Desktop.
Save jongio/d77d3edf23cc958626a7 to your computer and use it in GitHub Desktop.
public class GreetingsOrchestration : TaskOrchestration<string,string>
{
public override async Task<string> RunTask(OrchestrationContext context, string input)
{
string user = await context.ScheduleTask<string>(typeof(GetUserTask));
string greeting = await context.ScheduleTask<string>(typeof(SendGreetingTask), user);
return greeting;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment