using Polly; {{#useRestSharp}} using RestSharp; {{/useRestSharp}} {{#useHttpClient}} using System.Net.Http; {{/useHttpClient}} namespace {{packageName}}.Client { /// /// Configuration class to set the polly retry policies to be applied to the requests. /// public class RetryConfiguration { {{#useRestSharp}} /// /// Retry policy /// public static Policy RetryPolicy { get; set; } /// /// Async retry policy /// public static AsyncPolicy AsyncRetryPolicy { get; set; } {{/useRestSharp}} {{#useHttpClient}} /// /// Retry policy /// public static Policy RetryPolicy { get; set; } /// /// Async retry policy /// public static AsyncPolicy AsyncRetryPolicy { get; set; } {{/useHttpClient}} } }