Click or drag to resize

RecoveryDelay Class

Class which handles calculation of the next delay period (in seconds) based on parameters contained within the class. As defaults it uses for maximumDelay: 30 seconds, for delayParameter: 2 and for delayType: RecoveryStrategyDelayType.Exponential.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.DBDriverCoreRecoveryDelay

Namespace:  SD.LLBLGen.Pro.DBDriverCore
Assembly:  SD.LLBLGen.Pro.DBDriverCore (in SD.LLBLGen.Pro.DBDriverCore.dll) Version: 5.10.0.0 (5.10.0)
Syntax
public class RecoveryDelay

The RecoveryDelay type exposes the following members.

Constructors
  NameDescription
Public methodRecoveryDelay
Initializes a new instance of the RecoveryDelay class.
Public methodRecoveryDelay(TimeSpan, Int32, RecoveryStrategyDelayType)
Initializes a new instance of the RecoveryDelay class.
Top
Properties
  NameDescription
Public propertyCustomDelayCalculatorFunc
Gets or sets the custom delay calculator function. Used when the delaytype is 'Custom'. Input is (a, b), where a is the attempt number (so first retry is 1, next is 2 etc.), b is the delayParameter.
Top
Methods
  NameDescription
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 methodGetNextDelayPeriod
Gets the next delay period. Calculates based on the delay type and the delay parameter the next delay for the attempt specified.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
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