csharp.RetryConfiguration.mustache Maven / Gradle / Ivy
{{>partial_header}}
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 static 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}}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy