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
originalStopConsumerErrorPolicy
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
BuildCore(IServiceProvider)
Returns the actual error policy implementation, built using the provided IServiceProvider.
protected override ErrorPolicyImplementation BuildCore(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProviderThe 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
otherErrorPolicyBase
Returns
Equals(StopConsumerErrorPolicy?)
public virtual bool Equals(StopConsumerErrorPolicy? other)
Parameters
otherStopConsumerErrorPolicy
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(StopConsumerErrorPolicy?, StopConsumerErrorPolicy?)
public static bool operator ==(StopConsumerErrorPolicy? left, StopConsumerErrorPolicy? right)
Parameters
leftStopConsumerErrorPolicyrightStopConsumerErrorPolicy
Returns
operator !=(StopConsumerErrorPolicy?, StopConsumerErrorPolicy?)
public static bool operator !=(StopConsumerErrorPolicy? left, StopConsumerErrorPolicy? right)
Parameters
leftStopConsumerErrorPolicyrightStopConsumerErrorPolicy