HttpRetryPolicyExtensions Class

Namespace
Kampute.HttpClient
Assembly
  • Kampute.HttpClient.dll

Definition

Provides extension methods that use an IRetryStrategy for retrying HTTP requests.
public static class HttpRetryPolicyExtensions
Inheritance
  • object
  • HttpRetryPolicyExtensions

Methods

ToHttpRetryPolicy(this IRetryStrategy)

Creates an HTTP retry policy that retries failed requests as the strategy decides.
public static HttpRetryPolicy ToHttpRetryPolicy(this IRetryStrategy source)

Parameters

source IRetryStrategy
The retry strategy of the policy.

Returns

HttpRetryPolicy
A new HttpRetryPolicy for source.

Exceptions

ArgumentNullException
Thrown if source is null.