Slide 57
Slide 57 text
Retries
public static async Task Retries(DurableOrchestrationContext context)
{
await context.CallActivityAsync("BookConference", "Codemotion Milan");
var options = new RetryOptions(
firstRetryInterval: TimeSpan.FromMinutes(1),
maxNumberOfAttempts: 3);
options.BackoffCoefficient = 2.0;
await context.CallActivityWithRetryAsync("BookFlight", options, itinerary);
await context.CallActivityAsync("BookHotel", stay);
}