Search Results for

    Show / Hide Table of Contents
    View Source

    Class FixedInterval

    A retry strategy with a specified number of retry attempts and a default fixed time interval between retries.

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

    Constructors

    View Source

    FixedInterval()

    Initializes a new instance of the FixedInterval class.

    Declaration
    public FixedInterval()
    View Source

    FixedInterval(Int32)

    Initializes a new instance of the FixedInterval class.

    Declaration
    public FixedInterval(int retryCount)
    Parameters
    Type Name Description
    System.Int32 retryCount

    The number of retry attempts.

    View Source

    FixedInterval(Int32, TimeSpan)

    Initializes a new instance of the FixedInterval class.

    Declaration
    public FixedInterval(int retryCount, TimeSpan retryInterval)
    Parameters
    Type Name Description
    System.Int32 retryCount

    The number of retry attempts.

    TimeSpan retryInterval

    The time interval between retries.

    View Source

    FixedInterval(String, Int32, TimeSpan)

    Initializes a new instance of the FixedInterval class.

    Declaration
    public FixedInterval(string name, int retryCount, TimeSpan retryInterval)
    Parameters
    Type Name Description
    System.String name

    The retry strategy name.

    System.Int32 retryCount

    The number of retry attempts.

    TimeSpan retryInterval

    The time interval between retries.

    View Source

    FixedInterval(String, Int32, TimeSpan, Boolean)

    Initializes a new instance of the FixedInterval class.

    Declaration
    public FixedInterval(string name, int retryCount, TimeSpan retryInterval, bool firstFastRetry)
    Parameters
    Type Name Description
    System.String name

    The retry strategy name.

    System.Int32 retryCount

    The number of retry attempts.

    TimeSpan retryInterval

    The time interval 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
      • FixedInterval()
      • FixedInterval(Int32)
      • FixedInterval(Int32, TimeSpan)
      • FixedInterval(String, Int32, TimeSpan)
      • FixedInterval(String, Int32, TimeSpan, Boolean)
    • Methods
      • GetShouldRetry()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX