Search Results for

    Show / Hide Table of Contents
    View Source

    Class DelegateExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class DelegateExtensions

    Methods

    View Source

    RetryUntilSuccessOrMaxAttempts<T>(Func<Int32, Attempt<T>>, Int32, TimeSpan)

    Declaration
    public static Attempt<T> RetryUntilSuccessOrMaxAttempts<T>(this Func<int, Attempt<T>> task, int totalAttempts, TimeSpan pause)
    Parameters
    Type Name Description
    Func<System.Int32, Attempt<T>> task
    System.Int32 totalAttempts
    TimeSpan pause
    Returns
    Type Description
    Attempt<T>
    Type Parameters
    Name Description
    T
    View Source

    RetryUntilSuccessOrTimeout<T>(Func<Attempt<T>>, TimeSpan, TimeSpan)

    Declaration
    public static Attempt<T> RetryUntilSuccessOrTimeout<T>(this Func<Attempt<T>> task, TimeSpan timeout, TimeSpan pause)
    Parameters
    Type Name Description
    Func<Attempt<T>> task
    TimeSpan timeout
    TimeSpan pause
    Returns
    Type Description
    Attempt<T>
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • RetryUntilSuccessOrMaxAttempts<T>(Func<Int32, Attempt<T>>, Int32, TimeSpan)
      • RetryUntilSuccessOrTimeout<T>(Func<Attempt<T>>, TimeSpan, TimeSpan)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX