Show / Hide Table of Contents

    Class TransientOperationOptions

    Specifies options that is related to TransientOperation handling.

    Inheritance
    System.Object
    TransientOperationOptions
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public class TransientOperationOptions

    Constructors

    | Improve this Doc

    TransientOperationOptions()

    Initializes a new instance of the TransientOperationOptions class.

    Declaration
    public TransientOperationOptions()
    Remarks

    The following table shows the initial property values for an instance of TransientOperationOptions.

    PropertyInitial Value
    RetryAttemptsDefaultRetryAttempts
    EnableRecoveryRetryAttempts > 0
    RetryStrategyretry + 2^ to a maximum of 5; eg. 1, 2, 4, 8, 16 to a total of 31 seconds
    DetectionStrategyexception => false
    MaximumAllowedLatency5 minutes

    Properties

    | Improve this Doc

    DefaultRetryAttempts

    Gets or sets the default amount of retry attempts for transient faults. Default is 5 attempts.

    Declaration
    public static byte DefaultRetryAttempts { get; set; }
    Property Value
    Type Description
    System.Byte

    The default amount of retry attempts for transient faults.

    | Improve this Doc

    DetectionStrategy

    Gets or sets the callback function delegate that determines if an System.Exception contains clues that would suggest a transient fault.

    Declaration
    public Func<Exception, bool> DetectionStrategy { get; set; }
    Property Value
    Type Description
    System.Func<System.Exception, System.Boolean>

    A System.Func<TResult> that determines if an System.Exception contains clues that would suggest a transient fault.

    Remarks

    Default implementation is fixed to none-transient failure.

    | Improve this Doc

    EnableRecovery

    Gets or sets a value indicating whether a transient operation should be attempted gracefully recovered in case of a transient fault or simply be invoked like a normal operation.

    Declaration
    public bool EnableRecovery { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if a transient operation should be attempted gracefully recovered in case of a transient fault; otherwise, false.

    Remarks

    For testing or diagnostic purposes, it can sometimes come in handy to turn off transient fault recovery.

    | Improve this Doc

    MaximumAllowedLatency

    Gets or sets the maximum allowed latency before a LatencyException is raised.

    Declaration
    public TimeSpan MaximumAllowedLatency { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    A System.TimeSpan defining the maximum allowed latency.

    | Improve this Doc

    RetryAttempts

    Gets or sets the amount of retry attempts for transient faults. Default value is DefaultRetryAttempts.

    Declaration
    public int RetryAttempts { get; set; }
    Property Value
    Type Description
    System.Int32

    The retry attempts for transient faults.

    | Improve this Doc

    RetryStrategy

    Gets or sets the callback function delegate that determines the amount of time to wait for a transient fault to recover gracefully before trying a new attempt.

    Declaration
    public Func<int, TimeSpan> RetryStrategy { get; set; }
    Property Value
    Type Description
    System.Func<System.Int32, System.TimeSpan>

    A System.Func<TResult> that determines the amount of time to wait for a transient fault to recover gracefully.

    Remarks

    Default implementation is System.Int32 + 2^ to a maximum of 5; eg. 1, 2, 4, 8, 16 to a total of 32 seconds.

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)

    See Also

    TransientOperation
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX