Timers

Sometimes, you might want to schedule work after a specific delay. While using traditional functions, you have to 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")]public static async Task Orchestration_Start([OrchestrationTrigger] DurableOrchestrationContext context, TraceWriter ...

Get Hands-On Azure for Developers 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.