Click or drag to resize

RetryPolicy Class

Base class for used to help implement a IRetryPolicy.
Inheritance Hierarchy
SystemObject
  Neon.RetryRetryPolicy

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

The RetryPolicy type exposes the following members.

Constructors
  NameDescription
Public methodRetryPolicy
Constructor.
Top
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
Protected methodAdjustDelay
Adjusts the delay TimeSpan passed to ensure such that delaying the next retry won't exceed the overall retry timeout (if specified).
Public methodClone
Returns a copy of the retry policy.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
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.
Protected methodLogTransient
Logs a transient exception that will be retried if logging is enabled.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also