Orchestrator functions

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 ...

Get Mastering Azure Serverless Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.