Table of Contents

Class StopConsumerErrorPolicy

Namespace
Silverback.Messaging.Consuming.ErrorHandling
Assembly
Silverback.Integration.dll

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

public record StopConsumerErrorPolicy : ErrorPolicyBase, IErrorPolicy, IEquatable<ErrorPolicyBase>, IEquatable<StopConsumerErrorPolicy>
Inheritance
StopConsumerErrorPolicy
Implements
Inherited Members

Constructors

StopConsumerErrorPolicy(StopConsumerErrorPolicy)

protected StopConsumerErrorPolicy(StopConsumerErrorPolicy original)

Parameters

original StopConsumerErrorPolicy

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

BuildCore(IServiceProvider)

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

protected override ErrorPolicyImplementation BuildCore(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

The IServiceProvider to be used to build the error policy.

Returns

ErrorPolicyImplementation

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

Equals(ErrorPolicyBase?)

public override sealed bool Equals(ErrorPolicyBase? other)

Parameters

other ErrorPolicyBase

Returns

bool

Equals(StopConsumerErrorPolicy?)

public virtual bool Equals(StopConsumerErrorPolicy? other)

Parameters

other StopConsumerErrorPolicy

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(StopConsumerErrorPolicy?, StopConsumerErrorPolicy?)

public static bool operator ==(StopConsumerErrorPolicy? left, StopConsumerErrorPolicy? right)

Parameters

left StopConsumerErrorPolicy
right StopConsumerErrorPolicy

Returns

bool

operator !=(StopConsumerErrorPolicy?, StopConsumerErrorPolicy?)

public static bool operator !=(StopConsumerErrorPolicy? left, StopConsumerErrorPolicy? right)

Parameters

left StopConsumerErrorPolicy
right StopConsumerErrorPolicy

Returns

bool