Show / Hide Table of Contents

    Class RetryErrorPolicy

    This policy retries to process the message that previously failed to be to processed. An optional delay can be specified.

    Inheritance
    object
    ErrorPolicyBase
    RetryableErrorPolicyBase
    RetryErrorPolicy
    Implements
    IErrorPolicy
    Inherited Members
    RetryableErrorPolicyBase.MaxFailedAttempts(int?)
    ErrorPolicyBase.MaxFailedAttemptsCount
    ErrorPolicyBase.ExcludedExceptions
    ErrorPolicyBase.IncludedExceptions
    ErrorPolicyBase.ApplyRule
    ErrorPolicyBase.MessageToPublishFactory
    ErrorPolicyBase.ApplyTo<T>()
    ErrorPolicyBase.ApplyTo(Type)
    ErrorPolicyBase.Exclude<T>()
    ErrorPolicyBase.Exclude(Type)
    ErrorPolicyBase.ApplyWhen(Func<IRawInboundEnvelope, Exception, bool>)
    ErrorPolicyBase.Publish(Func<IRawInboundEnvelope, object>)
    ErrorPolicyBase.Publish(Func<IRawInboundEnvelope, Exception, object>)
    ErrorPolicyBase.Build(IServiceProvider)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Inbound.ErrorHandling
    Assembly: Silverback.Integration.dll
    Syntax
    public class RetryErrorPolicy : RetryableErrorPolicyBase, IErrorPolicy

    Constructors

    | Improve this doc View source

    RetryErrorPolicy(TimeSpan?, TimeSpan?)

    Initializes a new instance of the RetryErrorPolicy class.

    Declaration
    public RetryErrorPolicy(TimeSpan? initialDelay = null, TimeSpan? delayIncrement = null)
    Parameters
    Type Name Description
    TimeSpan? initialDelay

    The optional delay to be applied to the first retry.

    TimeSpan? delayIncrement

    The optional increment to the delay to be applied at each retry.

    Methods

    | Improve this doc View source

    BuildCore(IServiceProvider)

    Returns the actual error policy implementation, built using the provided IServiceProvider.

    Declaration
    protected override ErrorPolicyImplementation BuildCore(IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    IServiceProvider serviceProvider

    The IServiceProvider to be used to build the error policy.

    Returns
    Type Description
    ErrorPolicyImplementation

    An instance of IErrorPolicyImplementation that can be used to handle the processing error.

    Overrides
    ErrorPolicyBase.BuildCore(IServiceProvider)

    Implements

    IErrorPolicy
    • Improve this doc
    • View source
    In this article
    • Constructors
      • RetryErrorPolicy(TimeSpan?, TimeSpan?)
    • Methods
      • BuildCore(IServiceProvider)
    • Implements
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini