The RetryableAction type exposes the following members.

Constructors

  NameDescription
Public methodRetryableAction(Action, String, Int32, TimeSpan)
DotNetNuke.Common.Utilities.Internal.RetryableAction
Public methodRetryableAction(Action, String, Int32, TimeSpan, Single)
DotNetNuke.Common.Utilities.Internal.RetryableAction

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 a hash function for a particular type.
(Inherited from Object.)
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 methodStatic memberRetry5TimesWith2SecondsDelay
Public methodStatic memberRetryEverySecondFor30Seconds
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryIt

Extension Methods

  NameDescription
Public Extension MethodToJson
Extension method on object that serializes the value to Json. Note the type must be marked Serializable or include a DataContract attribute.
(Defined by JsonExtensionsWeb.)

Properties

  NameDescription
Public propertyAction
The Action to execute
Public propertyDelay
The number of milliseconds to wait between retries.

Remarks

The delay period is approximate and will be affected by the demands of other threads on the system.
Public propertyDelayMultiplier
A factor by which the delay is adjusted after each retry. Default is 1.

Remarks

To double the delay with every retry use a factor of 2, retrys will be 1s, 2s, 4s, 8s...

Remarks

To quarter the delay with every retry use a factor of 0.25, retrys will be 1s, 0.25, 0.0625, 0.015625s...
Public propertyDescription
A message describing the action. The primary purpose is to make the action identifiable in the log output.
Public propertyMaxRetries
The maximum number of retries to attempt
Public propertyStatic memberSleepAction
Method that allows thread to sleep until next retry meant for unit testing purposes

See Also