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

RetryPolicyRepresents a retry policy: a strategy that decides whether and when to retry, the exceptions that are retried, and callbacks for each retry.
RetryPolicyExtensionsProvides 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.
RetrySessionRepresents the retry state of one operation that a retry strategy governs.
RetryStrategiesProvides factory methods for the built-in retry strategies.
RetryStrategyExtensionsProvides extension methods for IRetryStrategy to limit its retries, cap and spread its delays, create retry policies, start sessions, and run operations with retries.

Structs

RetryContextDescribes 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

IRetrySessionRepresents the retry state of one operation: it decides whether the operation is retried after a failure, and waits before the retry.
IRetryStrategyDefines a strategy for calculating the delay duration between retry attempts based on elapsed time and the number of retries already made.