Skip to content

Instantly share code, notes, and snippets.

@laur3d
Created September 11, 2020 07:02
Show Gist options
  • Save laur3d/d7e09893b7b998c3061de530171d66f7 to your computer and use it in GitHub Desktop.
Save laur3d/d7e09893b7b998c3061de530171d66f7 to your computer and use it in GitHub Desktop.
v2
public class DynamicOrchestrator
{
[FunctionName(nameof(DynamicOrchestrator))]
public async Task<string> Run([OrchestrationTrigger] IDurableOrchestrationContext context,
ExecutionContext executionContext)
{
var input = context.GetInput<OrchestratorInput>();
return await context.CallSubOrchestratorAsync<string>(
await context.CallActivityAsync<string>(
nameof(DetermineOrchestratorToRunActivity), input.Name)
,input);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment