Kampute.Resilience Namespace
This namespace provides retry strategies, retry policies that run operations with retries, and retry sessions for retry loops that you write yourself.
Classes
| RetryPolicy | Represents a retry policy: a strategy that decides whether and when to retry, the exceptions that are retried, and callbacks for each retry. |
| RetryPolicyExtensions | Provides extension methods for retry policies whose configuration depends on the result type. |
| RetryPolicy<T> | Represents a retry policy for operations returning T: a strategy that decides whether and when to retry, the exceptions and results that are retried, and callbacks for each retry. |
| RetrySession | Represents the retry state of one operation that a retry strategy governs. |
| RetryStrategies | Provides factory methods for the built-in retry strategies. |
| RetryStrategyExtensions | Provides extension methods for IRetryStrategy to limit its retries, cap and spread its delays, create retry policies, start sessions, and run operations with retries. |
Structs
| RetryContext | Describes a failed attempt and the delay before the operation is retried. |
| RetryContext<T> | Describes a failed attempt of an operation that returns a value, and the delay before the operation is retried. |
Interfaces
| IRetrySession | Represents the retry state of one operation: it decides whether the operation is retried after a failure, and waits before the retry. |
| IRetryStrategy | Defines a strategy for calculating the delay duration between retry attempts based on elapsed time and the number of retries already made. |