All Downloads are FREE. Search and download functionalities are using the official Maven repository.

csharp.RetryConfiguration.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
{{>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