Created
September 11, 2020 07:02
-
-
Save laur3d/d7e09893b7b998c3061de530171d66f7 to your computer and use it in GitHub Desktop.
v2
This file contains 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
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