共用方式為


RetryStrategy Members

Include Protected Members
Include Inherited Members

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information, see Transient Fault Handling.

The RetryStrategy type exposes the following members.

Constructors

  Name Description
Protected method RetryStrategy
Initializes a new instance of the RetryStrategy class.

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetShouldRetry
Returns the corresponding ShouldRetry delegate.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  Name Description
Public fieldStatic member DefaultClientBackoff
The default amount of time used when calculating a random delta in the exponential delay between retries.
Public fieldStatic member DefaultClientRetryCount
The default number of retry attempts.
Public fieldStatic member DefaultExponential
Returns a default policy that implements a random exponential retry interval configured with DefaultClientRetryCount, DefaultMinBackoff, DefaultMaxBackoff and DefaultClientBackoff parameters. The default retry policy treats all caught exceptions as transient errors.
Public fieldStatic member DefaultFirstFastRetry
The default flag indicating whether or not the very first retry attempt will be made immediately whereas the subsequent retries will remain subject to retry interval.
Public fieldStatic member DefaultFixed
Returns a default policy that implements a fixed retry interval configured with DefaultClientRetryCount and DefaultRetryInterval parameters. The default retry policy treats all caught exceptions as transient errors.
Public fieldStatic member DefaultMaxBackoff
The default maximum amount of time used when calculating the exponential delay between retries.
Public fieldStatic member DefaultMinBackoff
The default minimum amount of time used when calculating the exponential delay between retries.
Public fieldStatic member DefaultProgressive
Returns a default policy that implements a progressive retry interval configured with DefaultClientRetryCount, DefaultRetryInterval and DefaultRetryIncrement parameters. The default retry policy treats all caught exceptions as transient errors.
Public fieldStatic member DefaultRetryIncrement
The default amount of time defining a time increment between retry attempts in the progressive delay policy.
Public fieldStatic member DefaultRetryInterval
The default amount of time defining an interval between retries.
Public fieldStatic member NoRetry
Returns a default policy that does no retries, it just invokes action exactly once.

Properties

  Name Description
Public property FastFirstRetry
Gets or sets a value indicating whether or not the very first retry attempt will be made immediately whereas the subsequent retries will remain subject to retry interval.
Public property Name
Gets the name of the retry strategy.

See Also

RetryStrategy Class

Microsoft.Practices.TransientFaultHandling Namespace