Table of Contents

Class SkipMessageErrorPolicy

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

This policy skips the message that failed to be processed.

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

Constructors

SkipMessageErrorPolicy(SkipMessageErrorPolicy)

protected SkipMessageErrorPolicy(SkipMessageErrorPolicy original)

Parameters

original SkipMessageErrorPolicy

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(SkipMessageErrorPolicy?)

public virtual bool Equals(SkipMessageErrorPolicy? other)

Parameters

other SkipMessageErrorPolicy

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 ==(SkipMessageErrorPolicy?, SkipMessageErrorPolicy?)

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

Parameters

left SkipMessageErrorPolicy
right SkipMessageErrorPolicy

Returns

bool

operator !=(SkipMessageErrorPolicy?, SkipMessageErrorPolicy?)

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

Parameters

left SkipMessageErrorPolicy
right SkipMessageErrorPolicy

Returns

bool