Search Results for

    Show / Hide Table of Contents
    View Source

    Class Incremental

    A retry strategy with a specified number of retry attempts and an incremental time interval between retries.

    Inheritance
    System.Object
    RetryStrategy
    Namespace: Umbraco.Cms.Infrastructure.Persistence.FaultHandling.Strategies
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class Incremental : RetryStrategy

    Constructors

    View Source

    Incremental()

    Initializes a new instance of the Incremental class.

    Declaration
    public Incremental()
    View Source

    Incremental(Int32, TimeSpan, TimeSpan)

    Initializes a new instance of the Incremental class.

    Declaration
    public Incremental(int retryCount, TimeSpan initialInterval, TimeSpan increment)
    Parameters
    Type Name Description
    System.Int32 retryCount

    The number of retry attempts.

    TimeSpan initialInterval

    The initial interval that will apply for the first retry.

    TimeSpan increment

    The incremental time value that will be used for calculating the progressive delay between retries.

    View Source

    Incremental(String, Int32, TimeSpan, TimeSpan)

    Initializes a new instance of the Incremental class.

    Declaration
    public Incremental(string name, int retryCount, TimeSpan initialInterval, TimeSpan increment)
    Parameters
    Type Name Description
    System.String name

    The retry strategy name.

    System.Int32 retryCount

    The number of retry attempts.

    TimeSpan initialInterval

    The initial interval that will apply for the first retry.

    TimeSpan increment

    The incremental time value that will be used for calculating the progressive delay between retries.

    View Source

    Incremental(String, Int32, TimeSpan, TimeSpan, Boolean)

    Initializes a new instance of the Incremental class.

    Declaration
    public Incremental(string name, int retryCount, TimeSpan initialInterval, TimeSpan increment, bool firstFastRetry)
    Parameters
    Type Name Description
    System.String name

    The retry strategy name.

    System.Int32 retryCount

    The number of retry attempts.

    TimeSpan initialInterval

    The initial interval that will apply for the first retry.

    TimeSpan increment

    The incremental time value that will be used for calculating the progressive delay between retries.

    System.Boolean firstFastRetry

    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.

    Methods

    View Source

    GetShouldRetry()

    Returns the corresponding ShouldRetry delegate.

    Declaration
    public override ShouldRetry GetShouldRetry()
    Returns
    Type Description
    ShouldRetry

    The ShouldRetry delegate.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • Incremental()
      • Incremental(Int32, TimeSpan, TimeSpan)
      • Incremental(String, Int32, TimeSpan, TimeSpan)
      • Incremental(String, Int32, TimeSpan, TimeSpan, Boolean)
    • Methods
      • GetShouldRetry()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX