Show / Hide Table of Contents

    Class StopConsumerErrorPolicy

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Inheritance
    object
    ErrorPolicyBase
    StopConsumerErrorPolicy
    Implements
    IErrorPolicy
    IEquatable<ErrorPolicyBase>
    IEquatable<StopConsumerErrorPolicy>
    Inherited Members
    ErrorPolicyBase.Build(IServiceProvider)
    ErrorPolicyBase.ExcludedExceptions
    ErrorPolicyBase.IncludedExceptions
    ErrorPolicyBase.MaxFailedAttempts
    ErrorPolicyBase.ApplyRule
    ErrorPolicyBase.MessageToPublishFactory
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Silverback.Messaging.Consuming.ErrorHandling
    Assembly: Silverback.Integration.dll
    Syntax
    public record StopConsumerErrorPolicy : ErrorPolicyBase, IErrorPolicy, IEquatable<ErrorPolicyBase>, IEquatable<StopConsumerErrorPolicy>

    Constructors

    StopConsumerErrorPolicy(StopConsumerErrorPolicy)

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    protected StopConsumerErrorPolicy(StopConsumerErrorPolicy original)
    Parameters
    Type Name Description
    StopConsumerErrorPolicy original

    Properties

    EqualityContract

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    protected override Type EqualityContract { get; }
    Property Value
    Type Description
    Type
    Overrides
    ErrorPolicyBase.EqualityContract

    Methods

    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)

    Equals(ErrorPolicyBase?)

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    public override sealed bool Equals(ErrorPolicyBase? other)
    Parameters
    Type Name Description
    ErrorPolicyBase other
    Returns
    Type Description
    bool
    Overrides
    ErrorPolicyBase.Equals(ErrorPolicyBase?)

    Equals(StopConsumerErrorPolicy?)

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    public virtual bool Equals(StopConsumerErrorPolicy? other)
    Parameters
    Type Name Description
    StopConsumerErrorPolicy other
    Returns
    Type Description
    bool

    Equals(object?)

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ErrorPolicyBase.Equals(object?)

    GetHashCode()

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ErrorPolicyBase.GetHashCode()

    PrintMembers(StringBuilder)

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    protected override bool PrintMembers(StringBuilder builder)
    Parameters
    Type Name Description
    StringBuilder builder
    Returns
    Type Description
    bool
    Overrides
    ErrorPolicyBase.PrintMembers(StringBuilder)

    ToString()

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ErrorPolicyBase.ToString()

    Operators

    operator ==(StopConsumerErrorPolicy?, StopConsumerErrorPolicy?)

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    public static bool operator ==(StopConsumerErrorPolicy? left, StopConsumerErrorPolicy? right)
    Parameters
    Type Name Description
    StopConsumerErrorPolicy left
    StopConsumerErrorPolicy right
    Returns
    Type Description
    bool

    operator !=(StopConsumerErrorPolicy?, StopConsumerErrorPolicy?)

    This is the default policy and it stops the consumer when an exception is thrown during the message processing.

    Declaration
    public static bool operator !=(StopConsumerErrorPolicy? left, StopConsumerErrorPolicy? right)
    Parameters
    Type Name Description
    StopConsumerErrorPolicy left
    StopConsumerErrorPolicy right
    Returns
    Type Description
    bool

    Implements

    IErrorPolicy
    IEquatable<T>
    IEquatable<T>
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini