string message = await context.CallActivityWithRetryAsync("MyActivityFunction", new RetryOptions(TimeSpan.FromSeconds(10), 3), input);
await context.CallActivityWithRetryAsync("MyActivityFunction", new RetryOptions(TimeSpan.FromMinutes(1), 5), request);In this example, the CallActivityWithRetryAsync() method calls "MyActivityFunction" with request parameters and retry options set to try 5 times with a delay of 1 minute. Package Library: Microsoft.Azure.WebJobs.Extensions.DurableTask In summary, the IDurableOrchestrationContext.CallActivityWithRetryAsync method is a useful feature of Durable Functions that enables developers to call activity functions with retry logic in C#.