The orchestrator function is the function responsible for the orchestration process: its code describes how the functions are executed and their order.
The orchestrator function is triggered by a special trigger called OrchestratorTrigger:
[FunctionName(FunctionNames.OrderWorkflowFunction)] public static async Task Run([OrchestrationTrigger] DurableOrchestrationContext context, ILogger log){ // Orchestration code}
The DurableOrchestrationContext class allows you to call other functions or manage the payload passed from the client that calls the orchestrator function. Its structure is shown in the following screenshot:
The most important methods exposed by this class are the following:
- CallActivityAsync and CallActivityWithRetryAsync ...