Timers, external events, and error handling
As we have already mentioned, Durable Functions are implemented in a way that implies some specific patterns. In this section, we will discuss some proper ways of implementing common scenarios, starting with timers.
Timers
Sometimes, you might want to schedule work following a specific delay. While using traditional functions, you must create a custom solution that will somehow trigger a workflow at a specific time. In Durable Functions, it is as easy as writing one line of code. Consider the following example:
[FunctionName("Orchestration_Client")] public static async Task<string> Orchestration_Client( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "start")] HttpRequestMessage input, [OrchestrationClient] DurableOrchestrationClient starter) { return await starter.StartNewAsync("Orchestration", null); } [FunctionName("Orchestration...