Click or drag to resize

IRetryPolicy Interface

Describes the behavior of an operation retry policy. These are used to retry operations that have failed due to transient errors.

Namespace:  Neon.Retry
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
Syntax
public interface IRetryPolicy

The IRetryPolicy type exposes the following members.

Properties
  NameDescription
Public propertyTimeout
Returns the optional policy timeout. When present, this specifies the maximum time the policy will continue retrying the operation.
Top
Methods
  NameDescription
Public methodClone
Returns a copy of the retry policy.
Public methodInvoke(Action)
Retries a synchronous action that returns no result when it throws exceptions due to transient errors. The classification of what is a transient error, the interval between the retries as well as the number of times the operation are retried are determined by the policy implementation.
Public methodInvokeTResult(FuncTResult)
Retries a synchronous action that returns a result when it throws exceptions due to transient errors. The classification of what is a transient error, the interval between the retries as well as the number of times the operation are retried are determined by the policy implementation.
Public methodInvokeAsync(FuncTask)
Retries an asynchronous action that returns no result when it throws exceptions due to transient errors. The classification of what is a transient error, the interval between the retries as well as the number of times the operation are retried are determined by the policy implementation.
Public methodInvokeAsyncTResult(FuncTaskTResult)
Retries an asynchronous action that returns TResult when it throws exceptions due to transient errors. he classification of what is a transient error, the interval between the retries as well as the number of times the operation are retried are determined by the policy implementation.
Top
See Also