コード例 #1
0
 /// <summary>
 /// Create an Exponential Backoff RetryPolicy using 
 /// a HttpTransientErrorDetectionStrategy detection strategy.
 /// </summary>
 /// <returns></returns>
 public static RetryPolicy MakeHttpRetryPolicy(int retryCount)
 {
     var strategy = new HttpTransientErrorDetectionStrategy();
     return Exponential(strategy, retryCount);
 }
コード例 #2
0
        /// <summary>
        /// Create an Exponential Backoff RetryPolicy using
        /// a HttpTransientErrorDetectionStrategy detection strategy.
        /// </summary>
        /// <returns></returns>
        public static RetryPolicy MakeHttpRetryPolicy(int retryCount)
        {
            var strategy = new HttpTransientErrorDetectionStrategy();

            return(Exponential(strategy, retryCount));
        }