Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RetryDelegatingHandler"/> class using the supplied options.
 /// </summary>
 public RetryDelegatingHandler(HttpRetryPolicyOptions options)
 {
     RetryPolicy = new RetryPolicy(new HttpStatusCodeErrorDetectionStrategy(options), options);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpStatusCodeErrorDetectionStrategy"/> class using the supplied options.
 /// </summary>
 /// <param name="options">The options.</param>
 public HttpStatusCodeErrorDetectionStrategy(HttpRetryPolicyOptions options)
     : this(options.IncludeTimeouts, options.IncludeServerErrors)
 {
 }