RetryParams Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Wrapper class that defines a retrying behavior.
public class RetryParams
type RetryParams = class
Public Class RetryParams
- Inheritance
-
RetryParams
Constructors
RetryParams() |
Initializes a new instance of the RetryParams class. |
RetryParams(TimeSpan, Boolean) |
Initializes a new instance of the RetryParams class. |
Properties
RetryAfter |
Gets or sets a value indicating the time interval to wait between retry attempts. |
ShouldRetry |
Gets or sets a value indicating whether the retry action should be performed. |
StopRetrying |
Gets the property that stops retrying. |
Methods
DefaultBackOff(Int32) |
Evaluates if the current retry count is less than the maximum number of retries allowed, and returns a new RetryParams object if true, or sets the StopRetrying property to false if false. |