private static async Task Main() { Console.WriteLine("Starting program execution..."); var policy = ExponentialRetryPolicy.GetPolicy(); try { await policy.ExecuteAsync(CallApi); } catch (HttpRequestException) { Console.WriteLine("Oh no! The call failed."); } }